wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C Programming

Total questions: 15

Worksheet time: 7mins

Name
Class
Date
1.

C was developed by

a)

Ritchier

b)

Dennis Ritchie

c)

Martin Richard

d)

Ken Thompson

2.

What will happen when the following code is executed?

#include<stdio.h>

void main()

{

printf("MIET");

}

a)

Wrong statement

b)

It will keep on printing MIET

c)

It will print MIET once

d)

None of these

3.

(a)   is the C preprocessor directive

4.

The key used to view the output of the program ______

a)

Alt + F5

b)

Ctrl + F9

c)

Alt + F9

d)

Ctrl+F5

5.

Every C Statement in C must end with ____

a)

;

b)

:

c)

,

d)

.

6.

The logical beginning of a program is _______

a)

#include<stdio.h>

b)

main()

c)

#

d)

{ }

7.

The header file related to clrscr() is (a)  

8.

Language C supports (a)   programming approach.

9.

The statements enclosed within _________ are called a Block.

a)

( )

b)

[ ]

c)

{ }

d)

#

10.

The shortcut key used to compile & run the code __________

a)

Ctrl + F5

b)

Ctrl + F9

c)

Alt + F9

d)

Alt + F5

11.

The shortcut key used to compile the code __________

a)

Alt +F9

b)

Alt + f5

c)

Ctrl + F9

d)

Ctrl + F5

12.

(a)   data type is used to hold individual characters.

13.

Which data type stores maximum of 10+3810^{+38}  

a)

float

b)

char

c)

string

d)

double

14.

A variable in C can have maximum of (a)   characters

15.

___________ is the assignment operator.

a)

>=

b)

=

c)

!=

d)

==