Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

The Debugging Quiz

Total questions: 29

Worksheet time: 30mins

Name
Class
Date
1.

This program is to find what?

a)

Fibonacci Series

b)

Palindrome

c)

Age of Person

d)

Addition of two numbers

2.

This program is for....

a)

rat in trap

b)

To find ASCII value of any character

c)

To display characters from A to Z

d)

To check leap year

3.

Spot the error in the program to find the length of string

a)

LINE 4

b)

LINE 5

c)

LINE 8

d)

LINE 11

4.

What is the syntax of Ternary Operator?

a)

variable=exp1?exp2?exp3;

b)

variable=exp1:exp2/exp3;

c)

variable=exp1<exp2>exp3"

d)

variable=exp1?exp2:exp3;

5.

Spot the error....

a)

line 1

b)

line 2

c)

line 3

d)

line 4

6.

Answer the question

a)

8om

b)

80km

c)

120m

d)

120km

7.

Do-While loop is synonym of...

a)

while loop

b)

for loop

c)

exit control loop

d)

A & C

8.

Better algorithm is....

a)

Bubble Sort

b)

Merge Sort

c)

Quick Sort

d)

Quick Sort

9.

What is the output of the following C code if there is no error in stream fp?

a)

compilation error

b)

1

c)

0

d)

any non-zero value

10.

What is the output?

a)

01

b)

02

c)

08

d)

compile error

11.

The value of (256)0.16*(256)0.09 is

a)

5

b)

16

c)

4

d)

25

12.

What is the following header file is designed for basic mathematical operations?

a)

math.h

b)

conio.h

c)

stdio.h

d)

dos.h

13.

Which function will you choose to join two words?

a)

strcat()

b)

strncon()

c)

strcpy()

d)

memcon

14.

What are the types of Arrays?

a)

int, float, char, double

b)

struct, enum

c)

long

d)

All of the above

15.

What has brought ____ the quarrel in the family?

a)

About

b)

Forth

c)

in

d)

off

16.

Find output

a)

4

b)

3

c)

5

d)

compile error

17.

Find output

a)

2

b)

3

c)

4

d)

5

18.

Find output

a)

3

b)

4

c)

5

d)

6

19.

World War II broke ____ in 1939.

a)

out

b)

of

c)

off

d)

up

20.

Choose the correct assumption.

a)

Assumption 1 is true.

b)

Assumption 2 is true.

c)

Both assumptions 1 and 2 are true.

d)

Neither assumption 1 nor 2 is true.

21.

A batsman scored 110 runs which included 3 boundaries and 8 sixes. What percent of his total score did he make by running between the wickets?

a)

45%

b)

45.45 %

c)

54.54%

d)

55%

22.

Two students appeared at an examination. One of them secured 9 marks more than the other and his marks was 56% of the sum of their marks. The marks obtained by them are:

a)

39, 30

b)

41, 32

c)

42, 33

d)

43, 34

23.

If A = x% of y and B = y% of x, then which of the following is true?

a)

A is smaller than B.

b)

A is greater than B

c)

Relationship between A and B cannot be determined.

d)

None of these

24.

This disease caused by a deficiency of protein. Can you identify it from the given options?

a)

Goiter

b)

Kwashiorkor

c)

Hypokalemia

d)

Dermatosis

25.

We all know very well that the Pacific Ocean is the earth’s largest ocean. Which of the following represents the percentage area (approximately) of the earth covered by it.

a)

25%

b)

35%

c)

40%

d)

45%

26.

The number of Union Territories in India is….

a)

5

b)

6

c)

7

d)

8

27.

Which of the following represents the minimum age required to become the member of Rajya Sabha?

a)

25 years

b)

30 years

c)

35 years

d)

There is no age limit as such

28.

Which one will replace the question mark ?

a)

1

b)

4

c)

3

d)

6

29.

The logical gates are categorized into ___

a)

one group

b)

two group

c)

three group

d)

four group