
Quiz on C Programming
Authored by Rashmi Upadhyay
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Who is the father of C Language?
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
Answer explanation
Dennis Ritchie is recognized as the father of the C Language, having developed it in the early 1970s at Bell Labs. Bjarne Stroustrup created C++, James A. Gosling is known for Java, and Dr. E.F. Codd is famous for relational databases.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Why is C considered a foundational programming language?
It was the first language to support object-oriented programming.
It provides low-level access to memory and system resources.
It was developed as a successor to the A language.
It is the only language that can be used for system programming.
It has a simple syntax that is easy for beginners to learn.
Answer explanation
C is considered foundational because it provides low-level access to memory and system resources, allowing programmers to write efficient code and interact closely with hardware, which is essential for system programming.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is an invalid variable name in C?
myVariable
2ndVariable
_variable
varName
var-name
Answer explanation
In C, variable names cannot start with a digit. Therefore, '2ndVariable' is invalid. The other options are valid as they start with a letter or underscore.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following are C preprocessors?
##define
#define
$define
all of the mentioned
Answer explanation
For a 16-bit computer, integers are typically represented using 16 bits, allowing for a range from -32768 to 32767. This is the correct choice, as the other options either exceed or do not fit within this range.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Standard ANSI C recognizes number of keywords?
30
32
24
36
Answer explanation
Standard ANSI C recognizes 32 keywords, which include control structures, data types, and other essential components of the language. Therefore, the correct answer is 32.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is sizeof in 'C' ?
Operator
Reserved Keyword
Both (a) and (b)
Function
Answer explanation
In C, 'sizeof' is an operator that returns the size of a data type or object in bytes. It is also considered a reserved keyword in the language, making 'Both (a) and (b)' the correct choice.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A C variable cannot start with
Number
special symbol other than underscore
both a and b
alphabet
Answer explanation
A C variable cannot start with a number or a special symbol other than an underscore. Therefore, the correct answer is 'both a and b', as both conditions are not allowed for variable names.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?