wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Club Excel Selection Round 1

Total questions: 25

Worksheet time: 31mins

Name
Class
Date
1.

Predict the output of the following pseudo-code

a)

3 4 12

b)

3 3 12

c)

4 3 12

d)

3 3 10

2.

What will be the output of the following code snippet?

a)

5 9 10

b)

9 5 10

c)

10 9 5

d)

Error

3.

What will be the output of the following code snippet?

a)

4

b)

5

c)

3

d)

Error

4.

What is the output of the following program?

a)

Compile time error

b)

0 0

c)

-1 -1

d)

None of these

5.

What is the result of the line:

0110&1100

a)

1000

b)

0100

c)

0110

d)

0111

6.

Left shift operation is equivalent to

a)

division by 4

b)

multiplying by 2

c)

adding 2

d)

subtracting 4

7.

Which number system is not understood by C language compiler directly?

a)

Decimal

b)

Octal

c)

Binary

d)

Hexadecimal

8.

How is a string represented in memory in C?

a)

An array of characters

b)

The object of some class

c)

Same as other primitive datatypes

d)

Linked list of characters

9.

What would be the output of the following code snippet?

a)

0 98 67

b)

0 98 55

c)

69 98 67

d)

137 98 55

10.

What is the 16-bit compiler range for integer constant?

a)

-36786 to 32785

b)

-32768 to 32767

c)

-32767 to 32768

d)

-36786 to 32782

11.

What will be the output after evaluating the given expression?

a)

77

b)

66

c)

53

d)

58

12.

What will be the output of the following code?

a)

3 4

b)

3 5

c)

3 3

d)

Compilation error

13.

Point out the error, if any, in the while loop.

a)

The condition in the while loop is a must .

b)

There should be at least a semicolon in the while().

c)

The while loop should be replaced by a for loop.

d)

No error.

14.

Can we use a switch statement to switch on strings?

a)

Yes

b)

No

15.

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?

a)

Yes

b)

No

16.

What should be the output of the following program?

a)

3 4

b)

4 3

c)

4 4

d)

Output may vary from compiler to compiler.

17.

What would be the output of the following program?

(a)  

18.

Would the following printf()s print the same values for any value of a?

a)

Yes

b)

No

19.

Would the following program compile successfully?

a)

Yes

b)

No

20.

By default any real number is treated as

a)

a float

b)

a double

c)

a long double

d)

depends upon the memory model that you are using

21.

Are the following two statements same?

a)

Yes

b)

No

22.

What error would the following function give on compilation?

a)

Missing parenthesis in return statement.

b)

The function should be defined as int f(int a, int b).

c)

Redeclaration of a.

d)

None of the above.

23.

In C all functions except "main()" can be called recursively.

a)

True

b)

False

24.

How many times the following program would print "Jamboree"?

a)

Infinite number of times.

b)

65535 times.

c)

Till the stack doesn't overflow.

d)

None of the above.

25.

Is it necessary that the header files should have a ".h" extension?

a)

Yes

b)

No