wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Technoquiz..3

Total questions: 15

Worksheet time: 11mins

Name
Class
Date
1.

Which format specifier is often used to print integers?

a)

%f

b)

%s

c)

%d

d)

%c

2.

Which operator can be used to compare two values?

a)

=

b)

><

c)

< >

d)

= =

3.

What is the output of the program?

a)

exhilarating coding challenge!!

b)

Exhilarating coding challenge.!!

c)

exhilarating coding challenge.!!

d)

"exhilarating coding challenge.!!"

4.

..

a)

C

b)

C++

c)

Java

d)

Python

5.

Which of the following is a correct comment?

a)

/*comments*/

b)

*/ comments /*

c)

\\comments\\

d)

#comments

6.

what is the output of the program?

a)

34

b)

32

c)

30

d)

28

7.

What is the output of the program?

a)

0

b)

garbage value

c)

a+b

d)

none of the above

8.

What is the output of the program?

a)

10

b)

8

c)

9

d)

4

9.

What is the extension of C language programming>

a)

.cp

b)

.c

c)

.py

d)

.java

10.

Find error in the following code

a)

;

b)

,

c)

%d

d)

)

11.

What is the output of the program?

a)

20

b)

21

c)

22

d)

23

12.

Find the error in the following program

a)

;

b)

}

c)

%d

d)

(

13.

which is not a predefined data type?

a)

int

b)

char

c)

struct

d)

float

14.

How can you create a variable with the numeric value 5?

a)

num=5;

b)

int num=5;

c)

num=5 int;

d)

val num=5;

15.

What is the output of the program?

a)

0

b)

garbage value

c)

error

d)

none of the above