AP CSP Unit 1

AP CSP Unit 1

9th - 12th Grade

40 Qs

quiz-placeholder

Similar activities

Quiz Bilangan dan Algoritma

Quiz Bilangan dan Algoritma

9th Grade

40 Qs

Quiz 1 EmpTech

Quiz 1 EmpTech

11th Grade

35 Qs

KHỐI 9 - GIỮA KÌ 1

KHỐI 9 - GIỮA KÌ 1

9th Grade

36 Qs

MF0973 Grabación de datos

MF0973 Grabación de datos

12th Grade

44 Qs

Latihan Soal AAS Ganjil Kelas 7

Latihan Soal AAS Ganjil Kelas 7

7th Grade - University

40 Qs

Final Revision G12_2T

Final Revision G12_2T

12th Grade

37 Qs

[SMP-IX] ASAS 2024 Ganjil

[SMP-IX] ASAS 2024 Ganjil

9th Grade - University

40 Qs

PRE TEST_OS_MIDTERMS

PRE TEST_OS_MIDTERMS

12th Grade

40 Qs

AP CSP Unit 1

AP CSP Unit 1

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Shane Stockman

Used 106+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

40 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following best describe examples of abstraction?

Select two answers.

A series of steps for creating a model airplane is laid out in a clear order, with specific instructions in great detail for completing each step.

Several developers are working on a program together. In order to complete the work efficiently, they split the program up into several parts, and each work on a section, testing as they proceed. When code is complete they add it to a master program.

A sheet of music for guitar is written as a series of chords (e.g C, Am, G7). Each of these represents multiple notes which are played simultaneously on different strings of a guitar.

A developer writing a program for calculating properties of shapes uses a variable pi to store a decimal approximation of the number π (~3.14159). They use this variable whenever they need to use the number π to calculate an area or volume.

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Rick is in charge of a team developing a program which will be used by businesses to control stock. The team has already consulted with potential clients and developed an idea of what inputs will be required and the likely outputs that will be produced from these inputs. Which of the following should Rick and his team do next?

Write segments of code in different languages to see which language will be most suitable for the job.

Plan the structure of the program and determine how the major algorithms will work.

Make a list of bugs which will occur during development and propose ways these could be fixed.

Decide on the schedule for updates and maintenance of the code.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a simplified but equivalent Boolean expression to the following:

(X > 0 AND X ≤ 20) OR (X > -5 AND X < 15)`

(X < -5) AND (X ≥ 20)

(X > 0) AND (X < 15)

(X < 0) AND (X > 15)

(X > -5) AND (X ≤ 20)

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Consider constructing an algorithm for a robot that can only perform the following three predefined operations.

MOVE_FORWARD ( ): The robot moves one square forward in the direction it is facing.

ROTATE_LEFT ( ): The robot rotates in place 90 degrees counterclockwise (i.e., makes an in-place left turn).

ROTATE_RIGHT ( ): The robot rotates in place 90 degrees clockwise (i.e., makes an in-place right turn).

Which of the following algorithms could successfully cause the robot to trace out a “T”-shaped path as drawn above?

Step 1: MOVE_FORWARD ( )

Step 2: ROTATE_LEFT ( )

Step 3: ROTATE_LEFT ( )

Step 4: MOVE_FORWARD ( )

Step 5: ROTATE_RIGHT ( )

Step 6: MOVE_FORWARD ( )

Step 1: MOVE_FORWARD ( )

Step 2: MOVE_FORWARD ( )

Step 3: ROTATE_LEFT ( )

Step 4: MOVE_FORWARD ( )

Step 5: MOVE_FORWARD ( )

Step 6: ROTATE_RIGHT ( )

Step 7: ROTATE_RIGHT ( )

Step 8: MOVE_FORWARD ( )

Step 1: MOVE_FORWARD ( )

Step 2: MOVE_FORWARD ( )

Step 3: ROTATE_RIGHT ( )

Step 4: MOVE_FORWARD ( )

Step 5: ROTATE_RIGHT ( )

Step 6: ROTATE_RIGHT ( )

Step 7: MOVE_FORWARD ( )

Step 1: MOVE_FORWARD ( )

Step 2: MOVE_FORWARD ( )

Step 3: ROTATE_LEFT ( )

Step 4: ROTATE_LEFT ( )

Step 5: MOVE_FORWARD ( )

Step 6: ROTATE_RIGHT ( )

Step 7: MOVE_FORWARD ( )

Step 8: MOVE_FORWARD ( )

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Jama is creating a program which calculates the square roots of whole numbers. The program will store the results of each square-root as a variable. Which of the following data-types would be best used for this variable?

int

bool

string

float

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Roxanne is writing a program which will be used to display information to passengers on a flight. Some of the variables she will use for her program are as follows.

speed - the current speed of the airplane relative to the ground in meters per second

passengers - the number of passengers on-board the plane

destination - the name of the destination airport of the flight

Which of the following correctly describes the types which would be best used for each of these variables?

speed - string, passengers - int, destination - float

speed - float, passengers - string, destination - int

speed - float, passengers - int, destination - string

speed - int, passengers - float, destination - string

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following describes algorithmic solutions to problems:

I. A set of step by step instructions for assembling a piece of furniture.

II. A flowchart used to make important decisions on which actions to take in an emergency situation

III. A recipe for baking a cake with detailed numbered steps to follow

I, II, and III

I and III only

II and III only

I and II only

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?