wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Club Excel - Core Member Recruitment 2K25

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which keyword is used to prevent modification of a variable?

a)

const

b)

static

c)

volatile

d)

final

2.

What is the output of printf("%d", -7 % 4); ?

a)

-3

b)

3

c)

-1

d)

1

3.

Which operator is used to allocate memory dynamically in C?

a)

 malloc

b)

 alloc

c)

new

d)

 calloc

4.

Which function is used to read a character from the user in C?

a)

getchar()

b)

putchar()

c)

gets()

d)

read()

5.

Which data structure uses FIFO?

a)

Tree

b)

Stack

c)

Queue

d)

Graph

6.

Which sorting algorithm is best in average case for random data?

a)

Bubble Sort

b)

Selection Sort

c)

Merge Sort

d)

Insertion Sort

7.

What is the time complexity of binary search?

a)

O(n)

b)

O(log n)

c)

O(n²)

d)

O(1)

8.

Choose the correct option for the given code snippet.

a)

Hello World

b)

This is Error

c)

Compile time Error

d)

Segmentation fault

9.

 

What is the best time complexity for converting decimal to binary numbers?

a)

O(logn)

b)

O(1)

c)

O(n)

d)

O(nlogn)

10.

Which traversal is used to get the content of a BST in sorted order?

a)

 Preorder

b)

Postorder

c)

 Inorder

d)

Level-order

11.

What is the output of: print(2 ** 3)

a)

6

b)

8

c)

9

d)

5

12.

Which keyword is used to define a function in Python?

a)

function

b)

define

c)

def

d)

fun

13.

What is the correct file extension for Python files?

a)

.py

b)

.python

c)

.pt

d)

.pyt

14.

What does list.append(5) do?

a)

Adds 5 to the start

b)

Replaces all items with 5

c)

Adds 5 at the end

d)

Deletes 5

15.

Which sorting technique is called divide and conquer?

a)

Merge Sort

b)

Bubble Sort

c)

Selection Sort

d)

Insertion Sort

16.

What is the output of: print(3 > 2 and 2 > 1) ?

a)

False

b)

True

c)

Error

d)

None

17.

What is the output of: print(type(3.14)) in Python?

a)

<class 'int'>

b)

<class 'float'>

c)

<class 'str'>

d)

<class 'double'>

18.

In C, what does the sizeof() operator return?

a)

Memory address

b)

Data type

c)

Number of elements

d)

Number of bytes

19.

Which data structure is used for implementing recursion?

a)

Queue

b)

Stack

c)

Array

d)

Linked List

20.

Which of the following is a mutable data type in Python?

a)

tuple

b)

list

c)

string

d)

int