
C Programming Quiz on Variables and Constants
Quiz
•
Instructional Technology
•
Professional Development
•
Practice Problem
•
Easy
A Lakshman
Used 1+ times
FREE Resource
Enhance your content in a minute
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to declare an integer variable?
integer x;
x:int;
var x:int;
int x;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many bytes of memory are allocated for a float variable?
4 bytes
2 bytes
8 bytes
1 byte
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid identifier?
1stVariable
variable-name
variable name
variable_name
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum length of an identifier in C?
32 characters
64 characters
128 characters
256 characters
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a keyword in C?
variable
function
return
identifier
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'const' keyword in C?
To create a function
To allocate memory
To declare a variable
To define a constant
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid constant type in C?
Octal constant
String constant
Floating constant
Hexadecimal constant
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
15 questions
BCS Logic and coding
Quiz
•
Professional Development
20 questions
HCI Quiz #1
Quiz
•
Professional Development
20 questions
Lesson 2
Quiz
•
Professional Development
18 questions
08 Vehicle Body Type and Powertrain Layout
Quiz
•
Professional Development
15 questions
AGS 529/ABLE Knowledge Check November 2023
Quiz
•
Professional Development
20 questions
Canva
Quiz
•
Professional Development
17 questions
6219 unit 101 H&S revision
Quiz
•
Professional Development
15 questions
cars
Quiz
•
KG - Professional Dev...
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
