C++Arrays Loops and Functions Review

C++Arrays Loops and Functions Review

University

15 Qs

quiz-placeholder

Similar activities

CSE 102 Exam 2 Practice

CSE 102 Exam 2 Practice

University

15 Qs

DSA - Intro

DSA - Intro

University

10 Qs

Python_2R

Python_2R

KG - Professional Development

20 Qs

Theory CSC301 - Chapter 6 & 7

Theory CSC301 - Chapter 6 & 7

University

20 Qs

DSA Quest 1.0

DSA Quest 1.0

University

19 Qs

JAVA FINAL QUIZ FOR ASSESSMENT

JAVA FINAL QUIZ FOR ASSESSMENT

University

15 Qs

science day competition (computer science)

science day competition (computer science)

University

10 Qs

Java - Revisão I

Java - Revisão I

University

20 Qs

C++Arrays Loops and Functions Review

C++Arrays Loops and Functions Review

Assessment

Quiz

Computers

University

Medium

Created by

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

Media Image

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

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?