Adv CS I_Python_Intro to Programming

Adv CS I_Python_Intro to Programming

12th Grade

8 Qs

quiz-placeholder

Similar activities

To Change or Not to Change?

To Change or Not to Change?

12th Grade

10 Qs

Ofimática básica

Ofimática básica

9th - 12th Grade

10 Qs

Quiz Lec2

Quiz Lec2

KG - University

10 Qs

Threats to Data

Threats to Data

9th - 12th Grade

11 Qs

Google Apps

Google Apps

10th Grade - Professional Development

10 Qs

Tin 12 - Bài 1 - Củng cố

Tin 12 - Bài 1 - Củng cố

12th Grade

10 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

Stepwise Refinement

Stepwise Refinement

11th - 12th Grade

13 Qs

Adv CS I_Python_Intro to Programming

Adv CS I_Python_Intro to Programming

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Simone CTA]

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?