
C Programming Quiz
Authored by InfiTechLearn Team
Other
University
30 Questions

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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?
&
->
*
@
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
26 questions
DE THI TOAN NANG CAO SO 01
Quiz
•
1st Grade - Professio...
29 questions
Accounting Chapter 7
Quiz
•
10th Grade - University
27 questions
Lesson 1 FOSC
Quiz
•
University
25 questions
ÉRDEKESSÉGEK OLASZORSZÁGRÓL
Quiz
•
6th Grade - Professio...
25 questions
Carbohydrate-PS Dietician
Quiz
•
University
25 questions
Principles of Marketing
Quiz
•
University
25 questions
BizOrgs Review
Quiz
•
University
25 questions
Solar Whiz Quiz: Igniting Minds with Renewable Trivia
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Other
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University