C++Arrays Loops and Functions Review

Quiz
•
Computers
•
University
•
Medium

Anu Joseph
Used 67+ times
FREE Resource
15 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
A loop inside of another loop is called a _____________loop.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times is the following loop body repeated (i.e., how many iterations)?
1
9
10
infinite
Answer explanation
Because the value of i is never changing
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the loop statements always has their body executed at least once.
for loop
while loop
do while loop
if statement
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
0 1 2 3 4
0 1 2 3 4 5
1 2 3 4
1 2 3 4 5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following is an example of a ______________.
answer = min(10, y);
function definition
function call
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Parameters are required
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the variable is declared inside a loop control structure, it cannot be referenced outside the loop.
True
False
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
ARRAYLIST - JAVA

Quiz
•
University
20 questions
Hashing

Quiz
•
University
10 questions
8.2 Arrays Cambridge IGCSE 0478

Quiz
•
10th Grade - University
20 questions
PHP Quiz 1

Quiz
•
University
15 questions
HCI 584 Python quiz

Quiz
•
University
14 questions
Data Structure

Quiz
•
University
15 questions
CSE 102 Exam 2 Practice

Quiz
•
University
20 questions
Python Functions and File Operations Quiz

Quiz
•
University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade