wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Day 1 C Programming Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

int y = 4;

y is ........

a)

y is a four-digit integer.

b)

y cannot be greater than a four-digit integer.

c)

y is a four-bit integer.

d)

None of the these

2.

char var1[20];

How many characters can a string hold when declared as follows?

a)

18

b)

19

c)

20

d)

None of these

3.

Who invented C Language.?

a)

Charles Babbage

b)

Graham bell

c)

Dennis Ritchie

d)

Steve Jobs

4.

C is a which level language.?

a)

Low Level

b)

Low, High

c)

High Level

d)

None of the above

5.

Find an integer constant

a)

45

b)

45.67

c)

"12"

d)

c12

6.

Find a Character constant

a)

'Phantom'

b)

'Phantom Techlogics'

c)

All of these

d)

"P"

7.

Among the following, which converts the assembly language into machine language

a)

Translator

b)

Compiler

c)

Interpreter

d)

Assembler

8.

_________ translates high level language into machine language

a)

Loader

b)

Compiler

c)

Interpreter

d)

Assembler

9.

The type reserved word ‘short’ is ___

a)

short long

b)

short int

c)

short char

d)

short float

10.

The correct way of commenting a single line from two lines below?

a)

#printf("Hello C..");

b)

/*printf("Hello C..");

c)

//printf("Hello C..");

d)

/printf("Hello C..");/