wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

C Language Quiz-1

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Who is Father of C Language

a)

Bjarne Stroustrup

b)

James A. Gosling

c)

Dennis Ritchie

d)

Dr. E.F. Codd

2.

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

3.

C programs are converted into machine language with the help of

a)

An Editor

b)

A compiler

c)

An operating system

d)

None of these.

4.

Which of the following is not a correct variable type?

a)

float

b)

real

c)

int

d)

char

5.

int main ()

{

int x = 24, y = 39, z = 45;

z = x + y;

y = z - y;

x = z - y;

printf ("%d %d %d", x, y, z);

}

a)

24 39 63

b)

39 24 63

c)

24 39 45

d)

39 24 45

6.
What punctuation is used to indicate the beginning and end of code blocks?
a)
{ }
b)
-> <-
c)
BEGIN and END
d)
( and )
7.

How many loops are there in C

a)

1

b)

3

c)

2

d)

4

8.

C is a ____________ programming language

a)

Object oriented Programming

b)

Procedure oriented Programming

c)

Structured programming language

d)

Structure and Procedure Oriented Programming

9.

_______________to be included to use standard I/O functions : prinf(),scanf()

a)

#include<conio.h>

b)

#include<stdio.h>

c)

#include<string.h>

d)

#include<math.h>

10.

The user can also write one or more statements in one line by separating semicolon (;)

a)

True

b)

False

11.

Which is correct example for variable declaration?

a)

int a;b;c;

b)

Int a,b,c;

c)

int a,b,c;

d)

int a,b;c;

12.

The sizeof operator returns the size of its operand in bytes

a)

True

b)

False

13.

Every C statement ends with ------------?

a)

.

b)

;

c)

,

d)

}

14.

What is the extension of C program?

a)

.cpp

b)

.py

c)

.c

d)

.java

15.

A sequence of instructions form a ------------.

a)

syntax

b)

program

c)

both

d)

none of these