Which of the following changes will not affect the results when the code segment is executed?

Algorithm Behavior and Search Techniques

Interactive Video
•
Computers
•
9th - 12th Grade
•
Easy

Olivia Brooks
Used 1+ times
FREE Resource
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Changing line three to a is B + 20
Changing line three to B is 20
Changing line three to B is 10
Changing line three to a is B + 10
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of result after running the program with Y as a positive integer?
3 to the Y power
Y + 3
3Y
Y cubed
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes the behavior of the two programs intended to calculate the sum of integers from one to n?
Program two displays the correct sum but program one does not
Program one displays the correct sum but program two does not
Neither one nor two displays the correct sum
Both one and two display the correct sum
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a possible result of the robot's movement?
Directly in the middle of the grid facing up
Facing down in the same spot at the bottom left
Facing in the second to the top row towards the right
Facing to the left in the bottom row
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which initial values for X, Y, and Z can be used to show that the segment does not work as intended?
X = 3, Y = 2, Z = 1
X = 1, Y = 2, Z = 3
X = 1, Y = 3, Z = 2
X = 2, Y = 3, Z = 1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the procedure return when the initial value of number is even?
True
False if the number is greater than two
False
True if the number is greater than two
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes the result of running the procedure with a positive integer parameter?
Returns true if the initial value is even, otherwise false
Returns true if the initial value is two, otherwise false
Returns true if the initial value is greater than two, otherwise false
Returns true if the initial value is odd, otherwise false
Create a free account and access millions of resources
Similar Resources on Quizizz
8 questions
Optimal Binary Search Trees Concepts

Interactive video
•
9th - 12th Grade
11 questions
Understanding Linear Search Algorithm

Interactive video
•
9th - 12th Grade
11 questions
Genetic Algorithms and Eight Queens Problem

Interactive video
•
9th - 12th Grade
11 questions
Game Scoring and Free Response Strategies

Interactive video
•
10th - 12th Grade
11 questions
Game Development Concepts and Practices

Interactive video
•
9th - 12th Grade
11 questions
Understanding Algorithms and Pseudocode

Interactive video
•
10th - 12th Grade
11 questions
Understanding Computer Science Concepts

Interactive video
•
9th - 12th Grade
11 questions
Citing Resources in Projects

Interactive video
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade