
Quiz 2 - loops, array, pointers, functions
Authored by Nagaratna Harikant
Computers
Professional Development
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way to declare a function in C?
function_name(return_type parameter_list);
return_type function_name(parameter_list);
function_name return_type(parameter_list);
return_type (parameter_list) function_name;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these defines a function without arguments in C?
void func()
void func(void)
void func(arguments)
void func(int x)
3.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
Fill in the blank: What is the default return type of a function in C if not specified?
4.
MULTIPLE CHOICE QUESTION
30 sec • Ungraded
Which of the following loops guarantees execution at least once?
Which of the following loops guarantees execution at least once?
for loop
do while loop
while loop
None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a for loop, which part is executed only once at the beginning?
Condition
Initialization
Increment/Decrement
Loop body
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to get the address of a variable in C?
*
&
->
.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
void main() { int i = 3, *j; j = &i; printf("%d\n", i * *j * i + *j); }
27
3
9
30
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
MGBTIK ALGORITMA PEMROGRAMAN
Quiz
•
Professional Development
14 questions
Web Basic
Quiz
•
Professional Development
10 questions
FSD_Quiz_Level_01
Quiz
•
Professional Development
15 questions
PL/SQL Programming
Quiz
•
Professional Development
10 questions
Mid2 Lab Internal PPS
Quiz
•
Professional Development
12 questions
Chapter 6 : JavaScript Functions & Input/ Output
Quiz
•
Professional Development
10 questions
MS Excel Basics Quiz
Quiz
•
Professional Development
10 questions
SENZ AIOT SAVANTS - JV & JS
Quiz
•
Professional Development
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
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...