Small Review 1 CSP

Small Review 1 CSP

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

SABERES PREVIOS MANTENIMIENTO PC

SABERES PREVIOS MANTENIMIENTO PC

11th Grade

16 Qs

Text and Image representation

Text and Image representation

11th Grade

22 Qs

Kuis PPJ - Materi VLSM

Kuis PPJ - Materi VLSM

11th Grade

15 Qs

Informática 1

Informática 1

10th Grade

20 Qs

Diagnóstico 1er Cuatrimestre - IA II

Diagnóstico 1er Cuatrimestre - IA II

12th Grade

17 Qs

quizz tkinter

quizz tkinter

11th Grade - University

20 Qs

KD 3.1_Aplikasi Pengolah Angka / Spreadsheet

KD 3.1_Aplikasi Pengolah Angka / Spreadsheet

10th Grade

15 Qs

2561-1-ระบบสื่อสารสำหรับเครือข่ายคอมพิวเตอร์

2561-1-ระบบสื่อสารสำหรับเครือข่ายคอมพิวเตอร์

12th Grade

20 Qs

Small Review 1 CSP

Small Review 1 CSP

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Ryan Popa

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

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

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 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.

4.

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.

5.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Which one of the following statements about functions is TRUE?

A function can change names over the course of a program.

Code can be added or removed dynamically from a function while the program is running.

Functions can be called using different names depending on where in the program they are called.

Two functions can be given identical names as long as their code is identical.

Two functions in a single program can have different names but contain identical code.

6.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

 Pulling out specific differences to make one solution work for multiple problems.

Top Down Design
Abstraction
variable
none of the above

7.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

For this scenario related to turtle drawing, indicate whether it is better to write a loop or a function (or a set of functions) to handle the task:


Drawing out the letters of a word "HELLO"

Loop

Function

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?