wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

C Programming Unit 1 Quiz - MCQs with Answers

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

Who is considered the father of the C programming language?

a)

Ken Thompson

b)

Dennis Ritchie

c)

Bjarne Stroustrup

d)

James Gosling

2.

In which year was the C language created?

a)

1969

b)

1972

c)

1983

d)

1991

3.

The C language was primarily developed for which operating system?

a)

Windows

b)

Unix

c)

Linux

d)

macOS

4.

Which organization awards the Turing Award?

a)

IEEE

b)

UNESCO

c)

ACM

d)

IETF

5.

What is the file extension for C source files?

a)

.cpp

b)

.java

6.

Which statement prints output in C?

a)

cout

b)

system.out.print

c)

printf

d)

echo

7.

How does every C statement end?

a)

Colon

b)

Comma

c)

Semicolon

d)

Period

8.

Which section in a C program contains comments about the program?

a)

main function

b)

Documentation section

c)

Link section

d)

Subprograms

9.

What does the #include line do in C?

a)

Link external library

b)

Define macros

c)

Start execution

d)

End program

10.

Which function always exists in a standard C program?

a)

display()

b)

main()

c)

printf()

d)

scan()

11.

Which are reserved words in C that cannot be used as identifiers?

a)

Variables

b)

Keywords

c)

Functions

d)

Constants

12.

Select the basic data type in C.

a)

enum

b)

float

13.

Which function is used to get a single character input?

a)

gets

b)

putchar

c)

getchar

d)

scanf

14.

Which symbol represents the 'Start/End' in flowcharts?

a)

Rectangle

b)

Oval

c)

Diamond

d)

Parallelogram

15.

What does the compiler ignore in a C program?

a)

Statements

b)

Whitespace

c)

Keywords

d)

Identifiers

16.

What is an algorithm?

a)

Mathematical formula

b)

Step-by-step procedure

c)

Variable declaration

d)

Output function

17.

Which of the following is not a basic IO function in C?

a)

printf

b)

scanf

c)

gets

d)

system.out.print

18.

What is the value of main() return after successful execution?

a)

1

b)

0

c)

-1

d)

None

19.

Which is a correct format specifier for integer output in C?

a)

%i

b)

%d

20.

What does 'const' keyword define?

a)

Variable

b)

Function

c)

Constant

21.

Which operator is used for assignment in C?

a)

==

b)

=

c)

:=

d)

++

22.

Which symbol represents a 'decision' in flowcharts?

a)

Diamond

b)

Rectangle

c)

Oval

d)

Circle

23.

Which header file is essential for IO operations in C?

a)

stdlib.h

b)

stdio.h

c)

math.h

d)

string.h

24.

Which of the following is not allowed in identifier names?

a)

Letters

b)

Underscore

c)

Digits as first character

d)

Alphabets

25.

Which type changes one data type to another temporarily?

a)

Enumeration

b)

Type casting

c)

Structure

d)

Union

26.

Which section contains macro definitions in a C program?

a)

Global declaration

b)

Definition section

27.

Which is a logical operator in C?

a)

+

b)

||

c)

!

d)

Both b and c

28.

What does 'gets' function do in C?

a)

Get an integer

b)

Get a single character

c)

Get a string

d)

Get float input

29.

Which section contains the starting point of C program?

a)

main function

b)

Link section

c)

Subprograms

d)

Documentation section

30.

Which of the following is discouraged and not safe in C?

a)

scanf

b)

getch

c)

gets

d)

puts