
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
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
Already have an account?
Similar Resources on Wayground
15 questions
A test of CALL (computer assisted language learning )
Quiz
•
University - Professi...
20 questions
AUT 101 Chapter 16 Test: Week 8
Quiz
•
Professional Development
20 questions
RAS QUIZ
Quiz
•
Professional Development
18 questions
GUL Connected Mode
Quiz
•
Professional Development
20 questions
ITIL4 practice 1
Quiz
•
Professional Development
17 questions
TV shows and movies
Quiz
•
1st Grade - Professio...
15 questions
IRTEC Legeslative
Quiz
•
Professional Development
20 questions
MOODLE LMS
Quiz
•
10th Grade - Professi...
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Instructional Technology
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
