
Quiz 2 - loops, array, pointers, functions
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Easy
Nagaratna Harikant
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to declare a function in C?
Which of the following 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 is used to define a function without arguments in C?
Which of these is used to define 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 blanks : What is the default return type of a function in C if not explicitly specified?
Fill in the blanks : What is the default return type of a function in C if not explicitly 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 of the loop?
In a for loop, which part is executed only once at the beginning of the loop?
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?
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, k;
j = &i;
printf("%d\n", i * *j * i + *j);
}
27
3
9
30
Create a free account and access millions of resources
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
15 questions
android
Quiz
•
Professional Development
10 questions
IOT Introduction Quiz
Quiz
•
Professional Development
10 questions
Structure Data Review
Quiz
•
University - Professi...
12 questions
Penilaian Pengetahuan 1 KSK2023
Quiz
•
Professional Development
15 questions
Online threats
Quiz
•
Professional Development
10 questions
Computer Hardware and Software Quiz
Quiz
•
Professional Development
10 questions
Perform Word Processing
Quiz
•
Professional Development
14 questions
DECI - Week 12 - round
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd 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
