Comp Sci Unit 3 #11

Comp Sci Unit 3 #11

11th Grade

10 Qs

quiz-placeholder

Similar activities

Java Code Tracing Practice A

Java Code Tracing Practice A

9th - 12th Grade

10 Qs

APCSP Final Exam Coding Practice

APCSP Final Exam Coding Practice

9th - 12th Grade

13 Qs

AP CSP Pseudo Code

AP CSP Pseudo Code

10th - 12th Grade

8 Qs

APCSP Pseudocode

APCSP Pseudocode

10th - 12th Grade

8 Qs

Java Basics #2

Java Basics #2

10th - 12th Grade

7 Qs

Question Type: Pseudocode

Question Type: Pseudocode

10th - 12th Grade

8 Qs

C++ - Loops and Random Numbers

C++ - Loops and Random Numbers

9th - 12th Grade

14 Qs

For Loop Method

For Loop Method

10th - 12th Grade

10 Qs

Comp Sci Unit 3 #11

Comp Sci Unit 3 #11

Assessment

Quiz

Computers

11th Grade

Easy

Created by

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?

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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?

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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?

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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?

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

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.

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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

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?