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
9 questions
AP CS A Quiz 4 Practice

Quiz
•
9th - 12th Grade
10 questions
10 question quiz on identifying and correcting errors

Quiz
•
9th - 12th Grade
10 questions
Empowerment Technology

Quiz
•
11th Grade
15 questions
Translators

Quiz
•
9th - 12th Grade
8 questions
Lesson 5 Practice Problems

Quiz
•
9th Grade - University
15 questions
Language translators

Quiz
•
11th Grade
15 questions
HTML

Quiz
•
9th - 12th Grade
8 questions
Java Conditionals Unit 3

Quiz
•
9th - 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