WorksheetsThe Debugging Quiz
Total questions: 29
Worksheet time: 30mins
This program is to find what?
Fibonacci Series
Palindrome
Age of Person
Addition of two numbers
This program is for....
rat in trap
To find ASCII value of any character
To display characters from A to Z
To check leap year
Spot the error in the program to find the length of string
LINE 4
LINE 5
LINE 8
LINE 11
What is the syntax of Ternary Operator?
variable=exp1?exp2?exp3;
variable=exp1:exp2/exp3;
variable=exp1<exp2>exp3"
variable=exp1?exp2:exp3;
Spot the error....
line 1
line 2
line 3
line 4
Answer the question
8om
80km
120m
120km
Do-While loop is synonym of...
while loop
for loop
exit control loop
A & C
Better algorithm is....
Bubble Sort
Merge Sort
Quick Sort
Quick Sort
What is the output of the following C code if there is no error in stream fp?
compilation error
1
0
any non-zero value
What is the output?
01
02
08
compile error
The value of (256)0.16*(256)0.09 is
5
16
4
25
What is the following header file is designed for basic mathematical operations?
math.h
conio.h
stdio.h
dos.h
Which function will you choose to join two words?
strcat()
strncon()
strcpy()
memcon
What are the types of Arrays?
int, float, char, double
struct, enum
long
All of the above
What has brought ____ the quarrel in the family?
About
Forth
in
off
Find output
4
3
5
compile error
Find output
2
3
4
5
Find output
3
4
5
6
World War II broke ____ in 1939.
out
of
off
up
Choose the correct assumption.
Assumption 1 is true.
Assumption 2 is true.
Both assumptions 1 and 2 are true.
Neither assumption 1 nor 2 is true.
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?
45%
45.45 %
54.54%
55%
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:
39, 30
41, 32
42, 33
43, 34
If A = x% of y and B = y% of x, then which of the following is true?
A is smaller than B.
A is greater than B
Relationship between A and B cannot be determined.
None of these
This disease caused by a deficiency of protein. Can you identify it from the given options?
Goiter
Kwashiorkor
Hypokalemia
Dermatosis
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.
25%
35%
40%
45%
The number of Union Territories in India is….
5
6
7
8
Which of the following represents the minimum age required to become the member of Rajya Sabha?
25 years
30 years
35 years
There is no age limit as such
Which one will replace the question mark ?
1
4
3
6
The logical gates are categorized into ___
one group
two group
three group
four group
