
Iteration Quiz review part 2

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
David Guy
Used 25+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Consider the following method.
Which of the following method calls will cause "0 10 " to be printed?
printSome(0,20)
printSome(5,10)
printSome(10,5)
printSome(20,5)
printSome(25,5)
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
"appl"
"apple"
"elppa"
"lppa"
Nothing is returned due to a run-time error.
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Consider the following method.
What, if anything, is returned by the method call abMethod("sing the song", "ng")?
"si"
"si the so"
"si the song"
"sig the sog"
Nothing is returned because a is thrown.
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Consider the following code segment. Assume that
Which of the following best describes the contents of as a result of executing the code segment?
The product of num2 and num3
The product of num2 and num3-1
The sum of num2 and num3
The sum of all integers from num2 to num3, inclusive
The sum of all integers from num2 to num3-1, inclusive
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Consider the following code segment.
Which of the following code segments will produce the same output as the code segment above?
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Consider the following code segment. What is printed as a result of executing the code segment?
6
10
12
15
Nothing is printed due to an infinite loop.
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
I only
II only
I and II only
I and III only
I, II and III
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python Revision Tour

Quiz
•
12th Grade
10 questions
DFD- DIAGRAMAS DE FLUJO

Quiz
•
10th Grade
10 questions
Algorithms and Flowcharts

Quiz
•
11th Grade
12 questions
Unit 6 practice Lists, no loops

Quiz
•
12th Grade
11 questions
recap DIN h446

Quiz
•
12th Grade
15 questions
Functions and Parameters Quiz

Quiz
•
9th - 12th Grade
10 questions
AP CSA Unit 1 & 2 Review

Quiz
•
9th - 12th Grade
10 questions
Quiz de Visual Basic Exel

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade