Basic C Knowledge Exercise
Quiz
•
Computers
•
University
•
Practice Problem
•
Easy
Akym Morgen
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 2 pts
Insert the missing parts of the code:
int ??? ( ) {
??? ("Hello World");
return 0;
}
PS. Put commas if answers are two or more (e.g. alpha, beta)
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Insert missing special characters in writing comments in C:
??? This is a single-line comment
??? This is a multi-line comment ???
// Single-line
// Multi-line //
// Single-line
** Multi-line **
// Single-line
/* Multi-line */
/* Single-line
/* Multi-line */
3.
FILL IN THE BLANK QUESTION
1 min • 2 pts
Create a variable named myNum and assign the value 47 to it.
?? ??? = ??;
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which is the correct specifier to output the value of myNum?
int myNum = 15; printf("???", myNum);
%c
d%
%ld
%d
5.
FILL IN THE BLANK QUESTION
1 min • 2 pts
Display the sum of 17 + 33, using two variables: a and b.
??? ?? = ???;
int b = 33;
printf("%d", a + b);
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which code parts is needed to create three variables of the same type?
??? myNum1 = 10 ? myNum2 = 15 ? myNum3 = 25;
printf("%d", myNum1 + myNum2 + myNum3);
int and comma (,)
int and semi-colon (;)
int and colon (;)
int and ampersand (&)
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Add the correct data type for the following variables:
??? myNum = 6;
??? myFloatNum = 3.1419;
??? myLetter = 'D';
PS. Put commas for multiple answers (e.g. alpha, beta)
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
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
12 questions
R variable Data Type and Flow Control Quiz
Quiz
•
University
11 questions
SAINS KOMPUTER 1.3
Quiz
•
University
10 questions
Planning and Implementation of Information Security
Quiz
•
University
15 questions
SENATIC Parcial Guía 3_PseInt
Quiz
•
10th Grade - University
10 questions
T02: Python - The Basics
Quiz
•
University
10 questions
REVIEW AD KLS 9
Quiz
•
9th Grade - University
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
