
Exam
Authored by Gracjan Kątek
Education
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for declaring a function in C?
funcName();
void funcName();
functionName;
funcName(void);
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to initialize an integer variable in C?
int x = 10;
integer x = 10;
x = 10;
int x;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to access the value at a given memory address in C?
*
&
#
$
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the break statement in a switch statement in C?
To exit the loop.
To skip the current iteration.
To terminate the program.
To exit the switch statement.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet in C?
printf("%d", sizeof("Hello"));
5
6
10
Compiler error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the continue statement in a loop in C?
To exit the loop.
To skip the current iteration.
To terminate the program.
To restart the loop.
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the correct format specifier to print a single character in C?
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
8 questions
Mit o Prometeuszu - klasa 6
Quiz
•
1st Grade - University
12 questions
MANUEL GONZALES PRADA 2023 II
Quiz
•
University
9 questions
SALES G's & S's
Quiz
•
University
15 questions
Foundations of Education Quiz
Quiz
•
University
10 questions
BASIC PROBABILITY
Quiz
•
University
12 questions
PEMENUHAN KEBUTUHAN CAIRAN -KMB I
Quiz
•
University
10 questions
ETIMOLOGÍAS GRECOLATINAS 1 PARCIAL 2
Quiz
•
10th Grade - University
10 questions
Digital Environments Quiz
Quiz
•
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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