wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CODE JAM

Total questions: 25

Worksheet time: 23mins

Name
Class
Date
1.

a)

:=

b)

=

c)

EQUAL

d)

==

2.

a)

float

b)

real

c)

int

d)

double

3.

a)

*/

comment

*/

b)

**

comment

**

c)

/*

comment

*/

d)

{comment}

4.

WHAT IS THE ONLY FUNCTION ALL C PROGRAM MUST CONTAIN?

a)

start()

b)

main()

c)

system()

d)

program()

5.

By default any real number in i is treated as

a)

a float

b)

a long variable

c)

depends upon memory model that you are using

d)

a double

6.

C program is a

a)

high level language

b)

low level language

c)

high level language with some low level features

d)

low level language with some high level features

7.
a)

ddfd

b)

ffdf

c)

ffff

d)

0000

8.

a)

10 10

b)

10

c)

compilation error

d)

NO OUTPUT

9.

a)

1

b)

12

c)

21

d)

NO OUTPUT

10.

a)

5

b)

Address of x

c)

compile error

d)

Run time error

11.

a)

nullg nullh

b)

g nullh

c)

g h

d)

depends on compiler

12.

a)

32

b)

16

c)

8

d)

4

13.

a)

2

b)

3

c)

4

d)

error

14.

a)

4

b)

8

c)

9

d)

6720

15.

The switch feature

a)

can always be replaced by a nested if then else clause

b)

enhance logical clarity

c)

cannot always be replaced by a nested if then else clause

d)

both (a) and (b)

16.
a)

4 ,36

b)

5, 36

c)

4,45

d)

Error:pointer cannot be substracted from one another

17.

a)

RED WHITE BLUE

b)

RED

c)

RED ERROR

d)

RED WHITE BLUE ERROR

18.

a)

2 0

b)

2 1

c)

1 0

d)

ERROR

19.

a)

2

b)

10

c)

5

d)

7

20.

a)

result in bus error

b)

result in segmentation violation error

c)

will not compile successfully

d)

none of the above

21.

who is know as the father of computer

a)

Charles Babbage

b)

Martin Cooper

c)

W. Rae Young

d)

Mr. Abhinav pandey

22.

who is know as the father of c program?

a)

Bjarne Stroustrup

b)

Dennis Ritchie

c)

James Arthur Gosling

d)

Guido van Rossum

23.

In which year c programming language develop?

a)

1973

b)

1972

c)

1974

d)

1971

24.

1-#include<stdio.h>

2-void main(){

3-printf.("hello world");

4-return 3:

5-}

in which line error is there?

a)

2 and 4

b)

4 and 3

c)

3 and 2

d)

no error

25.

What are reserved words with a programming language?

a)

void

b)

long

c)

else

d)

all of the above