
C Programming Quiz

Quiz
•
Other
•
University
•
Hard
InfiTechLearn Team
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid declaration in C?
int 2num;
float rate = 5.5.5;
char letter = 'A';
int long = 10;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which format specifier is used for printing unsigned int in C?
%d
%c
%f
%u
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will sizeof('A') return in C?
2
1
4
8
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop is guaranteed to execute at least once?
for loop
do-while loop
while loop
goto
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of printf("%d", 5 + 'A');?
5
ASCII of 'A'
ASCII of 'A' + 5
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct way to declare a pointer to an integer?
int ptr;
int *ptr;
ptr int;
int &ptr;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to access the value at the address pointed by a pointer?
&
->
*
@
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Python Week 1

Quiz
•
University
27 questions
AVT2046 DSR Keyboard, amendments, and strip marking

Quiz
•
University
25 questions
Data Structures

Quiz
•
University
25 questions
Розробка клієнт-серверних застосувань

Quiz
•
University
25 questions
PARCC Review

Quiz
•
KG - University
30 questions
Code Carrer 1st Year

Quiz
•
University
32 questions
Quizz

Quiz
•
University
35 questions
TECHTRIX2025 BUGHUNT FINALS

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University