Chapter 5 APCSP

Chapter 5 APCSP

9th - 12th Grade

28 Qs

quiz-placeholder

Similar activities

PHP + MySQL

PHP + MySQL

7th Grade - University

25 Qs

Intro to Algorithms

Intro to Algorithms

9th - 12th Grade

23 Qs

INFORMATIKA XI

INFORMATIKA XI

11th Grade

25 Qs

Binary and Search Algorithms Quiz

Binary and Search Algorithms Quiz

9th - 12th Grade

29 Qs

Computer Science quiz

Computer Science quiz

11th Grade - University

28 Qs

Unit 3 Exam

Unit 3 Exam

9th Grade

24 Qs

Year 11 Revision: Unit 2.1-Algorithms

Year 11 Revision: Unit 2.1-Algorithms

10th Grade

31 Qs

TIK 72

TIK 72

7th - 9th Grade

24 Qs

Chapter 5 APCSP

Chapter 5 APCSP

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Alexis Galt

Used 29+ times

FREE Resource

28 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What shape would be drawn with this algorithm?

A triangle with side length 100

A five-sided star

A pentagon with side length 100

A rectangle with side length 500

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How could you change this algorithm with parameters to draw any regular polygon with any side length?

I. Replace the 100 with a parameter for side length

II. Replace the 5 with a parameter for number of sides

III. Replace the 72 with 360 divided by parameter for number of sides

I and II

I, II, and III

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This procedure should draw a square with side legth L, but it has a bug. How can you fix it?

Change the 90 to "get L"

Change the 50 to "get L"

Change the 4 to "get L"

Change the 90 and the 50 to "get L"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What code should be added to the procedure so that increment(x) adds x to the variable z?

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Define a procedure named procTwoParams that multiplies its two parameters and assigns the result to the global variable Z.

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which code would successfully navigate the robot to the shaded square?

moveAndTurn(1, 2)

moveAndTurn(3, 5)

moveAndTurn(0, 3)

moveAndTurn(3, 1)

moveAndTurn(6, 3)

moveAndTurn(3, 1)

moveAndTurn(2, 1)

moveAndTurn(5, 1)

moveAndTurn(2, 1)

moveAndTurn(2, 1)

moveAndTurn(5, 3)

moveAndTurn(2,0)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is a procedure that would NOT take a parameter?

A procedure that greets your user by name

A procedure that draws a line segment of a certain length

A procedure that doubles a number

A procedure that resets all of your global variables to 0

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?