Adv CS I_Python_Intro to Programming

Adv CS I_Python_Intro to Programming

12th Grade

8 Qs

quiz-placeholder

Similar activities

Karel Quiz Week 10/16

Karel Quiz Week 10/16

10th - 12th Grade

10 Qs

Adv CS- Javascript- Programming with Karel

Adv CS- Javascript- Programming with Karel

12th Grade

10 Qs

Karel If Statement

Karel If Statement

9th - 12th Grade

11 Qs

Karel the Dog Code Quiz

Karel the Dog Code Quiz

9th - 12th Grade

12 Qs

Java

Java

9th - 12th Grade

12 Qs

CodeHS Unit 1-6

CodeHS Unit 1-6

9th - 12th Grade

12 Qs

Vocabulary Review

Vocabulary Review

9th - 12th Grade

8 Qs

Adv CS I_Python_Intro to Programming

Adv CS I_Python_Intro to Programming

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Simone CTA]

Used 1+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with this for loop?

for i in range = 5;

move()

A. The for loop uses a semicolon(;) instead of colon(:)

B. It should say range(5) instead of range = 5

A

B

A and B

The for loop is correct

2.

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

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the mystery function do?

def mystery():

while no_balls_present():

move()

Karel moves until it puts down a ball

Karel moves once if there is no ball present

Karel moves until it is on a ball

Karel checks if there is no ball on the current spot and then moves once

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid condition to go in an if statement for Karel?

balls_present()

front_is_clear()

left_is_blocked()

turn_left()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What condition should be used in this while loop to get Karel to pick up all the tennis balls on the current location?

while ________ :

take_ball()

take_ball()

front_is_clear()

balls_present()

no_balls_present()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we teach Karel new commands?

For loop

While loop

The main function

Define a new function

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Super Karel starts at Street 1, Avenue 1, facing East in a 5x5 world. What will happen after this code runs?

move()

move()

turn_right()

move()

Karel ends on street 1, avenue 3

Karel ends on street 2, avenue 3

This code won’t run because of a syntax error

Karel will crash into a wall

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What makes the following command an invalid Karel command?

It should end in semicolon

It should start with a capital T

This command is correct

The L should be a lower l