NEW
Font size
WorksheetsC Programming Unit 1 Quiz - MCQs with Answers
Total questions: 30
Worksheet time: 15mins
Who is considered the father of the C programming language?
Ken Thompson
Dennis Ritchie
Bjarne Stroustrup
James Gosling
In which year was the C language created?
1969
1972
1983
1991
The C language was primarily developed for which operating system?
Windows
Unix
Linux
macOS
Which organization awards the Turing Award?
IEEE
UNESCO
ACM
IETF
What is the file extension for C source files?
.cpp
.java
Which statement prints output in C?
cout
system.out.print
printf
echo
How does every C statement end?
Colon
Comma
Semicolon
Period
Which section in a C program contains comments about the program?
main function
Documentation section
Link section
Subprograms
What does the #include
Link external library
Define macros
Start execution
End program
Which function always exists in a standard C program?
display()
main()
printf()
scan()
Which are reserved words in C that cannot be used as identifiers?
Variables
Keywords
Functions
Constants
Select the basic data type in C.
enum
float
Which function is used to get a single character input?
gets
putchar
getchar
scanf
Which symbol represents the 'Start/End' in flowcharts?
Rectangle
Oval
Diamond
Parallelogram
What does the compiler ignore in a C program?
Statements
Whitespace
Keywords
Identifiers
What is an algorithm?
Mathematical formula
Step-by-step procedure
Variable declaration
Output function
Which of the following is not a basic IO function in C?
printf
scanf
gets
system.out.print
What is the value of main() return after successful execution?
1
0
-1
None
Which is a correct format specifier for integer output in C?
%i
%d
What does 'const' keyword define?
Variable
Function
Constant
Which operator is used for assignment in C?
==
=
:=
++
Which symbol represents a 'decision' in flowcharts?
Diamond
Rectangle
Oval
Circle
Which header file is essential for IO operations in C?
stdlib.h
stdio.h
math.h
string.h
Which of the following is not allowed in identifier names?
Letters
Underscore
Digits as first character
Alphabets
Which type changes one data type to another temporarily?
Enumeration
Type casting
Structure
Union
Which section contains macro definitions in a C program?
Global declaration
Definition section
Which is a logical operator in C?
+
||
!
Both b and c
What does 'gets' function do in C?
Get an integer
Get a single character
Get a string
Get float input
Which section contains the starting point of C program?
main function
Link section
Subprograms
Documentation section
Which of the following is discouraged and not safe in C?
scanf
getch
gets
puts
