
C Programming Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Ramesh Varma
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
43 questions
INFORMATIKA

Quiz
•
12th Grade
50 questions
Understanding Computer Arithmetic and Control

Quiz
•
12th Grade
50 questions
Computer Department GGDSD College, Hariana (16/02/2023)

Quiz
•
12th Grade
50 questions
Computer Science Multiple Choice Review

Quiz
•
9th - 12th Grade
48 questions
TLE-ICT 7 REVIEW

Quiz
•
7th Grade - University
48 questions
2019 Review - I, IGCSE CS 0478 - dfm

Quiz
•
9th - 12th Grade
44 questions
AP Computer Science Principles Units 1, 2 & 3

Quiz
•
10th - 12th Grade
50 questions
Year 8 - End of year assessment

Quiz
•
7th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade