NEW
Font size
WorksheetsClub Excel - Core Member Recruitment 2K25
Total questions: 20
Worksheet time: 10mins
Which keyword is used to prevent modification of a variable?
const
static
volatile
final
What is the output of printf("%d", -7 % 4); ?
-3
3
-1
1
Which operator is used to allocate memory dynamically in C?
malloc
alloc
new
calloc
Which function is used to read a character from the user in C?
getchar()
putchar()
gets()
read()
Which data structure uses FIFO?
Tree
Stack
Queue
Graph
Which sorting algorithm is best in average case for random data?
Bubble Sort
Selection Sort
Merge Sort
Insertion Sort
What is the time complexity of binary search?
O(n)
O(log n)
O(n²)
O(1)
Choose the correct option for the given code snippet.
Hello World
This is Error
Compile time Error
Segmentation fault
What is the best time complexity for converting decimal to binary numbers?
O(logn)
O(1)
O(n)
O(nlogn)
Which traversal is used to get the content of a BST in sorted order?
Preorder
Postorder
Inorder
Level-order
What is the output of: print(2 ** 3)
6
8
9
5
Which keyword is used to define a function in Python?
function
define
def
fun
What is the correct file extension for Python files?
.py
.python
.pt
.pyt
What does list.append(5) do?
Adds 5 to the start
Replaces all items with 5
Adds 5 at the end
Deletes 5
Which sorting technique is called divide and conquer?
Merge Sort
Bubble Sort
Selection Sort
Insertion Sort
What is the output of: print(3 > 2 and 2 > 1) ?
False
True
Error
None
What is the output of: print(type(3.14)) in Python?
<class 'int'>
<class 'float'>
<class 'str'>
<class 'double'>
In C, what does the sizeof() operator return?
Memory address
Data type
Number of elements
Number of bytes
Which data structure is used for implementing recursion?
Queue
Stack
Array
Linked List
Which of the following is a mutable data type in Python?
tuple
list
string
int
