WorksheetsTest-3
Total questions: 15
Worksheet time: 13mins
What will be the output of the following code snippet?
10 30
30 10
10 20
20 10
What will be the value of x in the following code snippet?
10
5
1
0
What will be the output of the following code snippet?
023 23
23 23
19 23
23 19
What will be the result of the following code snippet?
45
36
20
100
What is the default return type if it is not specified in function definition?
float
void
int
double
In C, function parameters are always
Passed by value
Passed by reference
Passed by value result
None of these
What is the output?
10
9
11
None
Which is the complete function?
int fun();
int func(int x)
{
return x=x+1;
}
void fun(int)
{
printf("Hello");
}
void fun(x)
{
printf("Hello");
}
What is the output?
WORLD HELLO
HELLO WORLD
"HELLO WORLD"
Compile error
What is the output?
COUNT=15
COUNT=35
COUNT=0
Error
What will be the output of the following C code?
24
4
12
10
The data structure used to implement recursive function calls _____________
Array
Linked list
Binary tree
Stack
In the absence of a exit condition in a recursive function, the following error is given __________
Compile time error
Run time error
Logical error
No error
What will be the output of the following C code?
++++2
+++++2
+++++
2
How many times is ‘a’ printed when the following C code is executed?
9 times
10 times
0 times
Infinite number of times
