AP CSP: Unit 3 - Intro to Programming Test

AP CSP: Unit 3 - Intro to Programming Test

9th - 12th Grade

41 Qs

quiz-placeholder

Similar activities

Module 7 FundIT

Module 7 FundIT

10th Grade

40 Qs

QCAA Digital Solutions 2025 - U3T2: Real-world Problems

QCAA Digital Solutions 2025 - U3T2: Real-world Problems

12th Grade

42 Qs

AP CSP - Unit 4 Code.org Review

AP CSP - Unit 4 Code.org Review

9th - 12th Grade

44 Qs

AP Computer Science Principles Practice

AP Computer Science Principles Practice

10th Grade

40 Qs

Kodu

Kodu

9th Grade

46 Qs

Programming Concepts Quiz Prt 2

Programming Concepts Quiz Prt 2

9th Grade

43 Qs

2.1 PLTW Data Diligence

2.1 PLTW Data Diligence

9th Grade

37 Qs

Edexcel Topic A: ProblemSolving

Edexcel Topic A: ProblemSolving

9th - 12th Grade

40 Qs

AP CSP: Unit 3 - Intro to Programming Test

AP CSP: Unit 3 - Intro to Programming Test

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

ARTHUR DAVIS

Used 49+ times

FREE Resource

41 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

High level programming language
A programming language with many commands and features designed to make common tasks easier to program; encapsulated as combinations of low level commands.
A programming language that captures only the most primitive operations available to a machine. Anything that a computer can do can be represented with combinations of low level commands.
A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or select, whether or not to run a certain block of statements.
The action of doing something over and over again.
a classic method for learning programming with commands to control movement and drawing of an on-screen robot

2.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

Consider the following incorrect program, which is intended to move the robot around the perimeter of a grid, as indicated by the drawing below. The starting position and direction of the robot is indicated in the diagram.


Line 1: 4 TIMES

Line 2: {

Line 3: MOVE_FORWARD()

Line 4: ROTATE_RIGHT()

Line 5: MOVE_FORWARD()

Line 6: MOVE_FORWARD()

Line 7: MOVE_FORWARD()

Line 8: MOVE_FORWARD()

Line 9: ROTATE_RIGHT()

Line 10: }


Given the options below, which lines should be removed so the program will work as intended?

Line 3 and Line 4

Lines 5, 6, 7, 8 and 9

Line 8 and Line 9

Line 9

3.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Which of the following images shows the path and ending location of the robot that will result from executing the code above. The starting location of the robot is shown as dotted triangle for cases where the robot does not start and end at the same location.


REPEAT 4 TIMES {

MOVE_FORWARD()

MOVE_FORWARD()

MOVE_FORWARD()

ROTATE_RIGHT(90)

MOVE_FORWARD()

ROTATE_RIGHT(90)

MOVE_FORWARD()

ROTATE_RIGHT(90)

}

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Algorithm
A precise sequence of instructions for processes that can be executed by a computer
To repeat in order to achieve, or get closer to, a desired goal.
Application Program Interface: a collection of commands made available to a programmer
Putting commands in correct order so computers can read the commands.
Repeating actions that have a predetermined beginning, end, and increment (step interval)

5.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What is one important naming convention of functions?

A function name should indicate how long the function takes to run.

Two functions with similar behavior should be given identical names to indicate the relationship between them.

A function name should be as descriptive as possible to indicate what the function does.

Function names should be organized alphabetically.

The function name should begin with a number that indicates the order in which it should be executed.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Low level programming language
A programming language that captures only the most primitive operations available to a machine. Anything that a computer can do can be represented with combinations of low level commands.
A base-16 number system that uses sixteen distinct symbols 0-9 and A-F to represent numbers from 0 to 15.
Repeating actions that have a predetermined beginning, end, and increment (step interval)
A programming language with many commands and features designed to make common tasks easier to program; encapsulated as combinations of low level commands.
a named group of programming instructions; reusable abstractions that reduce the complexity of writing and maintaining programs

7.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Which of the following is NOT true about functions in programming?

Functions are reusable programming abstractions.

Functions help reduce the complexity of writing and maintaining programs.

Functions cannot make calls to other functions within the same program.

Once defined, a function can be called many times from different parts of a program.

Functions help break a problem into logical chunks.

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?