
C Programming Quiz
Quiz
•
English
•
Professional Development
•
Practice Problem
•
Medium
Shruthi S M
Used 3+ times
FREE Resource
Enhance your content in a minute
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in C?
1var
var_1
var-1
int
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid identifier?
_main
main_
3main
main3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare a variable in C?
variable
define
int
var
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the default value of a local variable in C if not initialized?
0
Garbage value
NULL
Compilation error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way to declare multiple variables of the same type?
int a, b, c;
int a = b = c = 0;
int a; b; c;
declare int a, b, c;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of int data type in most 32-bit C compilers?
2 bytes
4 bytes
8 bytes
Depends on the system
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store a single character in C?
char
string
character
int
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
33 questions
FAMILY VOCABULARY
Quiz
•
10th Grade - Professi...
40 questions
xxxIELTS Foundation 2nd Ed. Reading p. 116
Quiz
•
12th Grade - Professi...
30 questions
ESL Diagnostic Test
Quiz
•
6th Grade - Professio...
32 questions
Unit 2 Review
Quiz
•
Professional Development
30 questions
Unit 3 Test
Quiz
•
Professional Development
40 questions
L1 Final Test
Quiz
•
Professional Development
36 questions
Industrialization and Immigration
Quiz
•
Professional Development
40 questions
Chapter 7
Quiz
•
12th Grade - Professi...
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
Discover more resources for English
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development
