
C Programming Quiz
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Ramesh Varma
Used 1+ times
FREE Resource
Enhance your content in a minute
48 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct declaration of an integer variable in C?
int 1x
int x1
float x1
char x1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of an int data type in C (assuming a 32-bit system)?
2 bytes
4 bytes
8 bytes
1 byte
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type would you use to store a single character?
int
float
char
double
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to declare a constant variable in C?
constant int x = 10
int const x = 10
const int x = 10
b and c
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? printf("%d", sizeof(char));
4
2
1
8
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid variable name in C?
var1
_var
1var
var_1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of an uninitialized local variable in C?
0
NULL
Garbage value
-1
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
50 questions
Algoritmika 1.
Quiz
•
10th Grade - University
50 questions
SOAL MS WORD
Quiz
•
9th - 12th Grade
50 questions
Ôn tập KTGK2 Tin 11
Quiz
•
9th - 12th Grade
50 questions
Media and Information Literacy 12 Summative Evaluation
Quiz
•
12th Grade
45 questions
Introduction to Typing
Quiz
•
7th - 12th Grade
45 questions
TryOut Ujian Sekolah Pengetahuan - TIK SMP N 1 JEPARA
Quiz
•
12th Grade
44 questions
Movies
Quiz
•
2nd Grade - Professio...
50 questions
Information Technology
Quiz
•
12th Grade
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
