
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
26 questions
python programming quiz

Quiz
•
12th Grade - University
30 questions
ICE1111 Revision

Quiz
•
University
30 questions
Tech quiz

Quiz
•
University
30 questions
Arduino Aptitude

Quiz
•
University
30 questions
Java Programming Quiz

Quiz
•
University
30 questions
Section-B MLP LA-1 Quuiz

Quiz
•
University
26 questions
Python Quiz SE 27/10/2023

Quiz
•
University
30 questions
Introduction to Programming - COIT20245 - PASS Session

Quiz
•
University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Other
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University