wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ROUND 2

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

Which of these is not a correct variable data type?

a)

int

b)

float

c)

real

d)

char

2.

C is a

a)

Low level language

b)

Assembly language

c)

Medium level language

d)

High level language

3.

Which punctuation ends most of the lines of C code?

a)

.

b)

;

c)

,

d)

" "

4.

The starting point of C execution at

a)

==

b)

main()

c)

function()

d)

!=

5.

Type four arithmetic operators sorting by their operation name *without space(like addition a first, so '+')

(a)  

6.

Prewritten packages are imported to program by using which symbol

Hint: Header Files

a)

%

b)

-

c)

#

d)

//

7.

Find if the condition is True or False where int x=10; y=12;

x == y

a)

1 (True)

b)

0 (False)

8.

Find if the condition is True or False where int x=10; y=12;

x < y

a)

1 (True)

b)

0 (False)

9.

What do you think is the output for the below code snippet?

int main(){

int a=10,b=20;

printf("%d", b/a);

}

a)

Error

b)

0.2

c)

2

d)

30

10.

What do you need to import stdio.h a header file?

a)

Just a waste of time

b)

To run the code

c)

It helps in compilation to binary coded file

d)

To perform input and output operations