WorksheetsQuiz on Basic of C
Total questions: 15
Worksheet time: 8mins
Name
Class
Date
1.
C programming was developed at
a)
Bell Labs
b)
IBM
c)
Microsoft
d)
Google
2.
Which year was C developed?
a)
1969
b)
1972
c)
1978
d)
1985
3.
The C language was primarily developed for
a)
System software development
b)
Web development
c)
Game programming
d)
Database management
4.
Which of the following is NOT a feature of C?
a)
Portability
b)
Structured programming
c)
Object-oriented programming
d)
Rich library functions
5.
C programs are
a)
Machine independent
b)
Platform independent
c)
Not portable
d)
Both a and b
6.
A C program must contain
a)
One main() function
b)
At least one printf() function
c)
At least one header file
d)
Both a and c
7.
Which of the following is the correct structure of a C program?
a)
Documentation → Preprocessor directives → Functions → Main function → Variables
b)
Preprocessor directives → Global declarations → main() → Function definitions
c)
Documentation → Header files → main() → Functions
d)
None of the above
8.
What is the role of #include in C?
a)
Defines macros
b)
Declares standard input-output functions
c)
Starts execution of program
d)
None of the above
9.
The execution of a C program starts from
a)
First line of code
b)
Header file
c)
main() function
d)
Operating system kerne
10.
Which symbol is used to indicate the beginning and end of a block in C?
a)
( )
b)
{ }
c)
[ ]
d)
< >
11.
The // symbol in C indicates:
a)
Preprocessor directive
b)
Single-line comment
c)
Multi-line comment
d)
Logical operator
12.
What does RAPTOR stand for?
a)
Rapid Algorithmic Programming Tool for Object Representation
b)
Rapid Algorithmic Prototyping Tool for Ordered Reasoning
c)
Option 3
d)
None of the above
13.
In RAPTOR, which shape represents the start and stop of a program?
a)
Rectangle
b)
Oval/Ellipse
c)
Diamond
d)
Parallelogram
14.
Before writing a C program, algorithms are often written in
a)
Assembly language
b)
Pseudocode or flowcharts
c)
Machine code
d)
Binary format
15.
What is the main purpose of writing an algorithm before coding in C?
a)
To reduce typing effort
b)
To plan logic and improve clarity
c)
To skip compiling errors
d)
To generate output automatically
100 %
