Fundamental of Programming Part 5

Fundamental of Programming Part 5

11th Grade

6 Qs

quiz-placeholder

Similar activities

Unit 2 Knowledge Test Make Up

Unit 2 Knowledge Test Make Up

9th - 12th Grade

11 Qs

Python Loops

Python Loops

9th - 12th Grade

10 Qs

AP CSP Worksheet 2

AP CSP Worksheet 2

9th - 12th Grade

10 Qs

Karel Vocabulary Lessons 1-5

Karel Vocabulary Lessons 1-5

9th - 12th Grade

9 Qs

Karel Quiz Week 10/16

Karel Quiz Week 10/16

10th - 12th Grade

10 Qs

Python Turtle

Python Turtle

KG - Professional Development

11 Qs

Computer Science 2: Control Structures

Computer Science 2: Control Structures

8th - 12th Grade

11 Qs

Loops & Conditional Blocks in Scratch

Loops & Conditional Blocks in Scratch

6th - 12th Grade

10 Qs

Fundamental of Programming Part 5

Fundamental of Programming Part 5

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Barbara Froehlich

Used 3+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How can we improve the following program?

Break down this 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 of this program

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In the following code below from the Cleanup Karel example, what is the purpose of If Statement #2?

To move the last time

To pick up the ball that is in the last spot

To pick up the ball that is in the last spot, if there is one

To take the ball from all of the positions that have a ball on them

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 do something while a condition is true

To repeat something a fixed number of times

To make programs run faster

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What makes the following command an invalid Karel command?

turnleft();

It should end in a colon rather than a semicolon

The l should be a capital L

It should start with a capital

This command is correct

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to define a turnRight function in Karel?

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we use functions in programs?

Break down our program into smaller parts

Avoid repeating code

  1. Make our program more readable


All of the above