Tynker Python Lesson 3-4

Tynker Python Lesson 3-4

7th - 10th Grade

13 Qs

quiz-placeholder

Similar activities

HTML

HTML

8th - 12th Grade

15 Qs

Y10M2A2 - Selection

Y10M2A2 - Selection

6th - 10th Grade

15 Qs

Programming Lesson 3

Programming Lesson 3

6th - 8th Grade

12 Qs

Networking Quiz

Networking Quiz

8th - 9th Grade

15 Qs

Arduino

Arduino

7th - 9th Grade

15 Qs

TIN HỌC 10 - BÀI 21

TIN HỌC 10 - BÀI 21

10th Grade

10 Qs

Lekcja14 7-8

Lekcja14 7-8

7th - 8th Grade

13 Qs

Tynker Python Lesson 3-4

Tynker Python Lesson 3-4

Assessment

Quiz

Computers

7th - 10th Grade

Medium

Created by

Ingrid Cruz

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following makes the character shoot if there is an enemy ahead? Mark all that apply.

if enemy_in_sight() : long_jump()

if not enemy_in_sight() : fire()

if enemy_in_sight() : fire()

if enemy_in_sight() : forward()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following two pieces of code do the same thing:

if condition :

forward()

# next code

if condition :

forward()

else :

fire()

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are given three variables, A=True, B=False and C=False. What is the value of the expression A and ( B or C )?

True

False

None

I don't know

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which part of a conditional goes after the if keyword and before the colon?

The word “if”

The word “else”

The code to run

The condition

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When would you use an "if-else" statement over an "if" statement?

When you want to stop running code once the condition is false

When you want to run different code if a condition is false

When you want to run code and then check if the condition is true after

They have the exact same function

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

There is no difference between an "if" statement and an "if-else" statement.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you wanted to run different code given different conditions, how would you do that?

Combine all the conditions in one condition using “or”

Use “elif” statements

Put everything in the “else” statement

Create two functions

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?