Font size
WorksheetsClub Excel Selection Round 1
Total questions: 25
Worksheet time: 31mins
Predict the output of the following pseudo-code
3 4 12
3 3 12
4 3 12
3 3 10
What will be the output of the following code snippet?
5 9 10
9 5 10
10 9 5
Error
What will be the output of the following code snippet?
4
5
3
Error
What is the output of the following program?
Compile time error
0 0
-1 -1
None of these
What is the result of the line:
0110&1100
1000
0100
0110
0111
Left shift operation is equivalent to
division by 4
multiplying by 2
adding 2
subtracting 4
Which number system is not understood by C language compiler directly?
Decimal
Octal
Binary
Hexadecimal
How is a string represented in memory in C?
An array of characters
The object of some class
Same as other primitive datatypes
Linked list of characters
What would be the output of the following code snippet?
0 98 67
0 98 55
69 98 67
137 98 55
What is the 16-bit compiler range for integer constant?
-36786 to 32785
-32768 to 32767
-32767 to 32768
-36786 to 32782
What will be the output after evaluating the given expression?
77
66
53
58
What will be the output of the following code?
3 4
3 5
3 3
Compilation error
Point out the error, if any, in the while loop.
The condition in the while loop is a must .
There should be at least a semicolon in the while().
The while loop should be replaced by a for loop.
No error.
Can we use a switch statement to switch on strings?
Yes
No
Suppose a program is divided into three files f1, f2 and f3, and a variable is defined in the file f1 but used in the files f2 and f3. In such a case would we need the external declaration for the variables in the files f2 and f3?
Yes
No
What should be the output of the following program?
3 4
4 3
4 4
Output may vary from compiler to compiler.
What would be the output of the following program?
(a)
Would the following printf()s print the same values for any value of a?
Yes
No
Would the following program compile successfully?
Yes
No
By default any real number is treated as
a float
a double
a long double
depends upon the memory model that you are using
Are the following two statements same?
Yes
No
What error would the following function give on compilation?
Missing parenthesis in return statement.
The function should be defined as int f(int a, int b).
Redeclaration of a.
None of the above.
In C all functions except "main()" can be called recursively.
True
False
How many times the following program would print "Jamboree"?
Infinite number of times.
65535 times.
Till the stack doesn't overflow.
None of the above.
Is it necessary that the header files should have a ".h" extension?
Yes
No
