wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

C Quiz

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

Who is known as the father of C Language ?

a)

James A. Sosling

b)

Vjarne Stroustrup

c)

Dennis Ritchie

d)

Dr. E. F. Codd

2.

C Language was developed in the year ____

a)

1970

b)

1975

c)

1985

d)

1980

3.

A C variable name can start with a ____

a)

Number

b)

Plus Sign (+)

c)

Underscore

d)

Asterisk (*)

4.

All keywords in C are in ____________

a)

Lowercase

b)

Uppercase

c)

Camelcase

d)

None of these

5.

A translator which reads an entire program written in a high level language and converts it into machine language code is:

a)

Assembler

b)

Compiler

c)

Linker

d)

Loader

6.

The functions printf() and scanf() are defined in which of the following library file:-

a)

math.h

b)

conio.h

c)

stdio.h

d)

stdlib.h

7.

Which is variable declaration?

a)

int a,b;

b)

c=a+b;

c)

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

d)

scanf("%d%d",&a,&b);

8.

Which is the only function all C programs must contain?

a)

start()

b)

system()

c)

printf()

d)

main()

9.

Which of the following is not a correct variable type?

a)

float

b)

real

c)

int

d)

char

10.

C Language is developed at ___________?

a)

AT & T's Bell Laboratories of USA in 1972

b)

AT & T's Bell Laboratories of USA in 1970

c)

Sun Microsystems in 1973

d)

Cambridge University in 1972

11.

A name having a few letters, numbers and special character _(underscore) is called

a)

keywords

b)

reserved keywords

c)

tokens

d)

identifiers

12.

Find error/ output in following code

int main ()

{

int a = 10, b = 25;

a = b++ + a++;

b= ++b + ++a;

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

}

a)

36 64

b)

35 62

c)

36 63

d)

30 28