
Quiz on Keyword, Constants and Variable
Quiz
•
Engineering
•
12th Grade
•
Medium
Seethamani P IT faculty
Used 2+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a keyword in the C programming language?
A keyword in C is a reserved word with a predefined meaning.
A keyword in C is a comment in the code.
A keyword in C is a variable name.
A keyword in C is a user-defined function.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many keywords are there in C?
24
16
32
40
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can keywords in C be used as variable names? Why or why not?
Keywords can be redefined as variable names in C.
Yes, keywords can be used as variable names if they are not reserved.
No, keywords in C cannot be used as variable names.
Keywords can be used as variable names in certain contexts.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the significance of the 'void' keyword in C?
The 'void' keyword indicates a function returns a pointer.
The 'void' keyword signifies that a function does not return a value.
The 'void' keyword is used to declare a variable of any type.
The 'void' keyword is a data type that can hold values.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the role of the 'const' keyword in C?
The 'const' keyword defines constant variables that cannot be modified after their initial assignment.
The 'const' keyword is a data type that represents a variable with a fixed size.
The 'const' keyword is used to declare functions that cannot be called.
The 'const' keyword allows variables to be modified at any time.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does the 'sizeof' keyword work in C?
'sizeof' is used to declare new data types in C.
'sizeof' returns the size in bytes of a data type or variable.
'sizeof' can only be used with integer data types.
'sizeof' calculates the total number of variables in a program.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is not a valid variable name declaration?
int a3;
int 3a;
int _A3;
int a_3
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
Programming & Interface Week 1B
Quiz
•
9th - 12th Grade
15 questions
Procedural and Loop Instructions Quiz
Quiz
•
12th Grade
15 questions
Conceptos de Trabajo y Potencia
Quiz
•
12th Grade
15 questions
Asesmen Diagnostik MM 1
Quiz
•
12th Grade
20 questions
Electronic Devices Quiz
Quiz
•
12th Grade
10 questions
Quiz sobre Protecciones Eléctricas
Quiz
•
12th Grade
10 questions
Distance Sensors: Pros and Cons
Quiz
•
11th Grade - University
15 questions
PIF-Quiz 4
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Engineering
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
16 questions
Subject pronouns in Spanish
Quiz
•
9th - 12th Grade
14 questions
Model and Solve Linear Equations
Quiz
•
9th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
