
Quiz-day1-C
Authored by Hoa Van
Other
University
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a built-in function in C?
my_function
printf
display
show
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to print "Hello, World" in C?
printf("Hello, World!");
display("Hello, World!");
write("Hello, World!");
echo("Hello, World!");
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in C?
123_variable
my-variable
my_variable
my variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to get the remainder of a division in C?
/
//
%
**
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which keyword is used to define a conditional statement in C?
if
while
for
switch
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
#include
x is greater than 5
x is less than or equal to 5
The program will encounter an error.
Nothing is printed.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to exit a loop in C?
break
continue
stop
exit
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?