wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

TechnoFuzzle

Total questions: 20

Worksheet time: 12mins

Name
Class
Date
1.

What the command chmod 755 file.txt does not do in a Unix-like operating system?

a)

Grant full permissions to everyone

b)

Grant execute permissions to the group

c)

Grant read, write, and execute permissions to the owner

d)

Grant read and write permissions to the owner

2.

How many times does "Infinity 2k24" gets printed?

a)

11 Times

b)

10 Times

c)

0 Times

d)

Infinite Times

3.

Guess the output

a)

4

b)

Invalid type

c)

Any Valid output

d)

2

4.

Trace the output

a)

0 0 0 0

b)

4 3 2 1

c)

1 2 3 4

d)

Error

5.

Which of the followings is correct for a function definition along with storage-class specifier in C language?

a)

int fun(register int arg)

b)

int fun(extern int arg)

c)

int fun(static int arg)

d)

int fun(auto int arg)

6.

Guess the output

a)

{0: 0, 1: 1, 2: 4, 3: 9, 4: 16, 5: 25}

b)

Syntax Error

c)

{1: 1, 2: 4, 3: 9, 4: 16, 5: 25,6:36}

d)

Dictionary comprehension doesn’t exist

7.

Which of the following traversal outputs the data in sorted order in a BST?

a)

Preorder

b)

Inorder

c)

Postorder

d)

Level Order

8.

getc() returns EOF when

a)

getc() returns EOF when

b)

End of files is reached

c)

None of the above

d)

Both of the above

9.

The output is

a)

20,4,4

b)

20,2,2

c)

4,12,12

d)

16,12,12

10.

If a function is friend of a class, which one of the following is wrong?

a)

A function can only be declared a friend by a class itself.

b)

Friend functions are not members of a class, they are associated with it.

c)

Friend functions are members of a class.

d)

It can have access to all members of the class, even private ones.

11.

Predict the height of the BST in the order: 10, 1, 3, 5, 15, 12, 16.(height-maximum distance of a leaf from the root)

a)

2

b)

3

c)

4

d)

6

12.

Which one of the following is an application of Queue Data Structure?

a)

Load Balancing

b)

When data is transferred asynchronously

c)

When a resource is shared among multiple consumers.

d)

All the above

13.

Which of the following sorting algorithms can be used to sort a random linked list with minimum time complexity?

a)

Insertion Sort

b)

Merge Sort

c)

Quick Sort

d)

Heap Sort

14.

Find the Output?

a)

1105110

b)

11511

c)

27

d)

115110

15.

Trace the result

a)

Java Programming

b)

JavaProgramming

c)

Compile time Error

d)

Java

16.

What is a dangling pointer?

a)

Pointer with null value

b)

A type of pointer in C

c)

A pointer pointing to an freed memory

d)

A pointer pointing to a valid memory location

17.

Determine the output?

a)

20

b)

8400

c)

8404

d)

10

18.

How do you open a file in both read and write modes?

a)

fstream file(“data.txt”, ios::readwrite);

b)

fstream file(“data.txt”, ios::in | ios::out);

c)

fstream file(“data.txt”, ios::both);

d)

fstream file(“data.txt”, ios::read | ios::write);

19.

Guess the output?

a)

Result:F

b)

Result:o

c)

Error

d)

Garbage value

20.

Write a command to remove the firstnumber on all lines that start with "@"?

Mention only the command without filename

a)

sed '//@[0-9]//'

b)

sed 's//[0-9]//'

c)

sed 's/@[0-9]//'

d)

sed 's/[0-9]//'