
Quiz on C Programming
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Rashmi Upadhyay
Used 3+ times
FREE Resource
Enhance your content in a minute
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?
Similar Resources on Wayground
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
10 questions
Machine Learning (Introduction)
Quiz
•
University
11 questions
Determining System Requirements
Quiz
•
University
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
10 questions
Planning and Implementation of Information Security
Quiz
•
University
10 questions
INTO Artificial Intelligence
Quiz
•
University - Professi...
14 questions
ITF Chapter 1 Computing Devices
Quiz
•
University
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
