Data structures, algorithms, C, Java and Python basics, OOP, DBMS and SQL, operating systems and computer networks. Try each question first, then open Show answer to check your work.
Answer: B. O(log n)
Each step halves the search space, so it takes about log2(n) steps.
Answer: B. Stack
In a stack the last element pushed is the first one popped.
Answer: C. O(n^2)
When the pivot is always the smallest or largest element, partitions are unbalanced and it takes O(n^2).
Answer: A. 1
The C standard defines sizeof(char) as 1.
Answer: B. 3
// is floor division, so 7 // 2 = 3.
Answer: D. Compilation
The pillars are encapsulation, abstraction, inheritance and polymorphism. Compilation is not one.
Answer: B. TRUNCATE
TRUNCATE empties the table; DROP deletes the table itself.
Answer: C. Its values must be unique and not NULL
A primary key uniquely identifies each row, so it must be unique and not NULL.
Answer: C. 3NF
Third normal form (3NF) removes transitive dependencies on the key.
Answer: B. Network
Routing and logical (IP) addressing belong to the network layer (layer 3).
Answer: C. 443
HTTPS uses port 443; plain HTTP uses port 80.
Answer: D. Preemption
The conditions are mutual exclusion, hold and wait, NO preemption and circular wait.
Answer: B. extends
A class uses "extends" for a class and "implements" for an interface.
Answer: C. Merge sort
Merge sort keeps equal elements in their original order.
Answer: B. n - 1
A tree is connected and acyclic, which needs exactly n - 1 edges.
Answer: A. 11001
25 = 16 + 8 + 1, which is 11001 in binary.
Answer: B. 3
The nested list counts as one element, so there are 3 elements.
Answer: B. 2
Integer division drops the fractional part, giving 2.
Answer: D. Tree
Trees are hierarchical; arrays, stacks and queues are linear.
Answer: B. ARP
ARP (Address Resolution Protocol) maps an IP address to a MAC address on a local network.
Take a free full-length placement mock with a timer, score and detailed analysis on TestMyIndia.
Take the free placement mockThese are original practice questions written by Intmat Edtech in the style of campus placement tests. They are not copied from any company's question paper.
INTMAT EDTECH (OPC) PRIVATE LIMITED
No - 16, Javaraiahna Doddi, Mysore Road,
Bengaluru Urban, BENGALURU,
Karnataka 560098, India
contact@intmatedtech.com