
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
SOAL PERAKITAN KOMPUTER
Quiz
•
12th Grade
51 questions
Testout IT Fundamentals Chapter 3
Quiz
•
11th - 12th Grade
48 questions
STARTER - 1D Array Test
Quiz
•
9th - 12th Grade
45 questions
SOAL PSAJ 2024 - KOMPETENSI KEAHLIAN TKJ
Quiz
•
12th Grade
51 questions
Soal Pilihan Ganda informatika
Quiz
•
9th - 12th Grade
50 questions
Repaso PACSADMIN-1
Quiz
•
4th Grade - University
50 questions
MIDTERM EXAM OP1
Quiz
•
12th Grade
47 questions
IT Fundamentals Chapter 6
Quiz
•
8th - 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
