Comp Sci Unit 3 #11

Quiz
•
Computers
•
11th Grade
•
Easy
Nick Nessralla
Used 9+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider a game in which a player flips a fair coin three times. If all three coin flips have the same result (either all heads or all tails) the player wins. Otherwise, the player loses.
Which of the following code segments best simulates the behavior of the game?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a certain science experiment, 75 percent of trials are expected to be successful and 25 percent of trials are expected to be unsuccessful. The program below is intended to simulate the results of repeated trials of the experiment.
Which of the following can be used to replace <Missing Code> so that the simulation works as intended?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following question uses a robot in a grid of squares. The robot is represented as a triangle, which is initially in the bottom left square of the grid and facing right.
Consider the following code segment, which moves the robot in the grid.
Which of the following shows the location of the robot after running the code segment?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following spinner, which is used to determine how pieces are to be moved on a game board. The region labeled "Move 1 space" is six times as large as each of the other two regions.
Which of the following code segments can be used to simulate the behavior of the spinner?
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
The question below uses a robot in a grid of squares. The robot is represented as a triangle, which is initially in the bottom-right square of the grid and facing toward the top of the grid.
Which of the following code segments can be used to move the robot to the gray square?
Select two answers.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
Which of the following CANNOT be displayed as a result of executing the code segment?
1 1 1 1
1 2 3 2
1 2 3 4
1 3 2 4
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following program.
Which of the following describes the result of executing the program?
The program displays the sum of the even integers from 0 to 10.
The program displays the sum of the even integers from 0 to 20.
The program displays the sum of the odd integers from 1 to 9.
The program displays the sum of the odd integers from 1 to 19.
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
C++ - Loops and Random Numbers

Quiz
•
9th - 12th Grade
10 questions
Java Code Tracing Practice A

Quiz
•
9th - 12th Grade
10 questions
CP Pseudocode Review #3

Quiz
•
11th Grade
11 questions
APCSP Final Exam Coding Practice

Quiz
•
9th - 12th Grade
7 questions
Java Basics #2

Quiz
•
10th - 12th Grade
11 questions
Casting in Java

Quiz
•
9th - 12th Grade
13 questions
APCSA Unit 3 Review

Quiz
•
9th - 12th Grade
8 questions
Question Type: Pseudocode

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade