wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Basics of C Programming

Total questions: 20

Worksheet time: 3mins

Name
Class
Date
1.

Who invented C Language.?

a)

Charles Babbage

b)

Grahambel

c)

Dennis Ritchie

d)

Steve Jobs

2.

C Language is a successor to which language.?

a)

FORTRAN

b)

D Language

c)

BASIC

d)

B Language

3.

C is a which level language.?

a)

Low Level

b)

Low + High

c)

High Level

d)

None

4.

Low level language is .?

a)

Human readable like language.

b)

language with big program size.

c)

language with small program size.

d)

Difficult to understand and readability is questionable.

5.

High level language is a .?

a)

Human readable like language.

b)

language with small program size.

c)

language with big program size.

d)

language which is difficult to understand and not human readable.

6.

Which statement outputs "Hello World.." .?

a)

scanf("Hello World..");

b)

print("Hello World..");

c)

printf("Hello World..");

d)

scan("Hello World..");

7.

C is _______ type of programming language.?

a)

Object Oriented

b)

Procedural

c)

Bit level language

d)

Functional

8.

C language was invented in which laboratories.?

a)

Uniliver Labs

b)

IBM Labs

c)

AT&T Bell Labs

d)

Verizon Labs

9.

C language was invented to develop which Operating System.?

a)

Android

b)

Linux

c)

Ubuntu

d)

Unix

10.

C language was invented in the year.?

a)

1999

b)

1978

c)

1972

d)

1990

11.

C language is used in the development of .?

a)

Databases

b)

Graphic applications

c)

Word Processors

d)

All of the above

12.

A C program is a combination of.?

a)

Statements

b)

Functions

c)

Variables

d)

All of the above

13.

Correct way of commenting a single line is.?

a)

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

b)

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

c)

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

d)

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

14.

What is an Identifier in C Language.?

a)

Name of a Function or Variable

b)

Name of a Macros

c)

Name of Structure or Union

d)

All the above.

15.

Correct way of commenting a multiple line is.?

a)

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

printf("Hello C..");

b)

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

printf("Hello C..");

c)

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

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

d)

/printf("Hello C..");

printf("Hello C..");/

16.

An Identifier may contain.?

a)

Letters a-z, A-Z in Basic character set.

b)

Underscore _ symbol

c)

Numbers 0 to 9

d)

All the above

17.

An Identifier can start with.?

a)

Alphabet

b)

Underscore ( _ ) sign

c)

Any character that can be typed on a keyboard

d)

Option A & Option B

18.

C Programs are used in .?

a)

Any Electronic device which works on some logic and Operating System.

b)

Washing machine

c)

Fridge, Microwave Ovens

d)

All the above.

19.

What are the types of Constants in C Language.?

a)

String Constants

b)

Numeric Constants

c)

Both A and B

d)

Basic Constants and Advanced Constants

20.

Choose correct statements

a)

A constant value does not change and variable value can change according to needs.

b)

A constant can change its values and variable value can not change according to needs.

c)

Constants and Variables can not be used in a singe main function.

d)

There is no restriction on number of values for constants or variables.