Search Header Logo

SECURITY: Unit 4 Review

Authored by Allie Costin

Instructional Technology

11th - 12th Grade

Used 7+ times

SECURITY: Unit 4 Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

How can we improve the following program?

Break down the program into more functions

Use a for loop to repeat the move command

Use a while loop to repeat the move command

Fix the indentation and remove a bracket

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In the following code, what happens to Karel if a ball is present?

Karel will put down a ball

Karel will move

Karel will stop

Karel will pick up the ball

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of using a FOR loop in code?

To do something if a condition is true

To repeat something a fixed number of times

To do something if a condition is false

To make the program run faster

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What makes the following command an invalid Karel command?


turnleft();

the semicolon shouldn't be there

the 'l' should be a capital 'L'

it should start with a capital 'T'

the command is correct

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is wrong with this code?

The go function is called twice

The go function has a syntax error

The go function has been defined twice

The go function does not work

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many total times will Karel move in this program?

5

6

7

8

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the proper format for a single line comment in Karel?

// this is a comment

//* this is a comment

# this is a comment

*// this is a comment

Access all questions and much more by creating a free account

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?