
Quiz on C Programming
Quiz
•
Computers
•
University
•
Medium
Rashmi Upadhyay
Used 3+ times
FREE Resource
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.
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Python Basics
Quiz
•
KG - University
16 questions
Understanding the Evolution of Programming Languages-Quiz
Quiz
•
University
13 questions
C programming-1
Quiz
•
University
12 questions
Python Quiz 1.4
Quiz
•
University
10 questions
Chapter 1 : Introduction to Programming Language
Quiz
•
University
10 questions
Lesson 1 Recap
Quiz
•
University
10 questions
AInnovate
Quiz
•
University
15 questions
C Language Quiz-1
Quiz
•
University - Professi...
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University