NEW
Font size
WorksheetsTechnical quiz(Medium-Level)
Total questions: 25
Worksheet time: 8mins
What will be the output of the following Python code?
[1, 2, 3]
[1, 2, 3, 4]
[1, 2, 4]
Error
Which data structure is used for implementing recursion?
Queue
Stack
Linked List
Array
What is the worst-case time complexity of the Quick Sort algorithm?
O(n)
O(n log n)
O(n²)
O(log n)
In SQL, which command is used to remove all records from a table without removing the table structure?
DELETE
DROP
TRUNCATE
REMOVE
Which protocol is used to send email messages from a client to a server?
FTP
SMTP
HTTP
IMAP
Which of the following is a characteristic of a multithreaded process?
Multiple processes with a single thread each
A single process with multiple threads
Multiple processes with multiple threads each
A single process with a single thread
Which of the following is not a valid access modifier in Java?
public
private
protected
internal
Which data structure is used to implement LRU (Least Recently Used) cache?
Stack
Queue
HashMap and Doubly Linked List
Array
Which algorithm is used to find the shortest path in a weighted graph?
Depth-First Search
Breadth-First Search
Dijkstra's Algorithm
Kruskals Algorithm
Which device operates at the Data Link layer of the OSI model?
Router
Switch
Hub
Repeater
Which of the following correctly initializes a pointer in C++?
int ptr = &x;
int *ptr = &x;
int ptr = *x;
int &ptr = x;
Which sorting algorithm is considered stable?
Quick Sort
Heap Sort
Merge Sort
Selection Sort
Which layer of the OSI model is responsible for routing?
Data Link
Transport
Network
Session
What is thrashing in operating systems?
Overheating of CPU
Excessive swapping of processes
Hardware failure
Running multiple threads
Which of the following is used to implement BFS in a graph?
Stack
Queue
Heap
Recursion
Which algorithm is used to detect cycles in a directed graph?
DFS with recursion stack
BFS
Dijkstra
Prim’s algorithm
Which address is used for broadcasting in IPv4?
255.255.255.255
0.0.0.0
127.0.0.1
192.168.0.1
Which of the following is true about virtual memory?
It increases physical RAM
It allows more processes than RAM can hold
It speeds up execution
It disables paging
What is the output of:
python:
pow(2, 3, 5)
8
3
2
1
How many edges does a complete graph with 6 vertices have?
12
15
18
21
What is the binary representation of the decimal number 45?
101101
110101
101011
100011
What is the result of 1010 ^ 1100?
0110
1110
1010
1000
What is the purpose of DNS?
Assigns IP addresses
Translates domain names to IP addresses
Routes data packets
Encrypts HTTP requests
What does the expression n & (n - 1) do in binary?
Sets the MSB to 0
Clears the least significant set bit
Flips all bits
Checks if a number is odd
What will be the output of the following code?
10
11
Address of a
compilation error
