0% found this document useful (0 votes)
6 views4 pages

Interview Questions

The document outlines a series of technical questions and coding challenges related to programming concepts, data structures, algorithms, and database management systems. It includes topics such as local variable scope, SQL queries, OOP principles, and various coding tasks like finding the maximum area of a triangle and reversing a linked list. Additionally, it covers theoretical concepts like design patterns, HTML elements, and time complexity of data structures.

Uploaded by

Ramya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views4 pages

Interview Questions

The document outlines a series of technical questions and coding challenges related to programming concepts, data structures, algorithms, and database management systems. It includes topics such as local variable scope, SQL queries, OOP principles, and various coding tasks like finding the maximum area of a triangle and reversing a linked list. Additionally, it covers theoretical concepts like design patterns, HTML elements, and time complexity of data structures.

Uploaded by

Ramya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

1. Explain the scope and lifetime of local variables.

2. Puzzles, DBMS, DSA, Project explanation, Operating System


3. Fibonacci series code, pseudo code for classes and objects
4. Project explanation, DBMS related questions ,1 or 2 coding questions to
solve
5. Find the maximum area of the triangle whose base and height are given
and round off the answer to 1 decimal point.
6. quick sort bubble sort some dsa and dbms questions
7. Delete nth node of a linked list
8. What is Javascript and who invented it.
9. What is factory design patterns and give one example for it.
10.What is the use of transactional annotation?
11.Find the frequency of given character in the given string?
12.Find the second largest number in an given array?
13.Design employee database schema.
14.Describe OOPs with a real-world example using your understanding.
15.Pattern Recognition
Question 1: In the series, if the symbols followed by consonants
interchange their positions within the group, which element is third from
the right end?
Series: B@C7NR%5$G6KM&4S#PU5
Answer: To solve this, I focused on the instructions about interchanging
positions:
1. Identify Consonants and Symbols:
Consonants: B, C, N, R, G, K, M, S, P, U
Symbols: @ (after B), % (after N), $ (after R), & (after M), # (after S)
2. Interchanging Positions:
B@ → @B
N% → %N
R$ → $R
M& → &M
S# → #S
After swapping, the series becomes: @BC7%NR5$G6K&4#MSPU5.
3. Finding the Third Element from the Right:
Counting from the right, the modified series shows that the third
element is P.
16.Question 2: Age Calculation
Question: A's age after 15 years would equal 5 times his age 5 years ago.
Find his age 3 years hence.
Answer: Let A's current age be x.
Age after 15 Years: x+15x + 15x+15
Age 5 Years Ago: x−5x - 5x−5
Setting Up the Equation:
x+15=5(x−5)x + 15 = 5(x - 5)x+15=5(x−5)
Solving the equation gives x=10x = 10x=10.
Finding A's Age 3 Years Hence:
10+3=1310 + 3 = 1310+3=13.
So, A's age will be 13 years.
17.Question 3: SQL Query
Question: Write an SQL query to find the top 5 customers with the
highest total order amounts from the table Orders.
Answer:
SELECT CustomerID, SUM(OrderAmount) AS TotalOrderAmount
FROM Orders
GROUP BY CustomerID
ORDER BY TotalOrderAmount DESC
LIMIT 5;
This query aggregates the total order amounts by customer, sorts them
in descending order, and limits the results to the top 5 customers.
18.Question 4: Java Output
Question: What will be the output?
public static void main(String args[])
{
int i = 20 + +9 - -12 + +4 - -13 + +19;
System.out.println(i);
}
Answer: Breaking down the expression, we find that the final value
of i is 77.
19.Question 5: HTML Element
Question: What is an HTML Element?
Answer: An HTML element is a building block of a web page consisting of
an opening tag, content, and a closing tag. For example, <p>This is a
paragraph.</p>.
20.Question 6: Riddle
Question: There are two ducks in front of a duck, two ducks behind a
duck, and a duck in the middle. How many ducks are there?
Answer: There are three ducks arranged in a line.
21. JavaScript Closures
22.Semantic HTML
23.Duplicates in Array
24.React Lifecycle
25.CSS Specificity
26.CSS Position property
27.CSS Display property)
28.Basic array manipulation programs.
29.Program to delete both the consecutive nodes from a linked list.
30.Program to reverse array in O(n) complexity.
31.Identify the duplicate and repeating elements from an array, where the
array size is 100 and elements are from 1 to 100 and only one element is
repeating, and so one is missing. This has to be done in O(n) complexity.
32.OOP concepts in detail
33.SQL queries.
34.Describe the time complexity of different data structures like HashMap,
LinkedList, and Array.
35.How would you reverse a linked list both iteratively and recursively?
36.Explain how a Binary Search Tree (BST) works. How would you find the
height of a BST?
37.How does a priority queue work? Can you implement it with a min-
heap?
38.What is the difference between JOIN and UNION in SQL?
39.Write a query to find the second-highest salary in an employee table.
40.Explain normalization and denormalization in databases. When would
you choose one over the other?
41.How would you perform batch inserts in SQL to optimize performance?
42.Explain the differences between Merge Sort and Quick Sort. When would
you use one over the other?
43.Write code to find the longest palindrome substring in a given string.

You might also like