Tynker Python Lesson 3-4

Tynker Python Lesson 3-4

7th - 10th Grade

13 Qs

quiz-placeholder

Similar activities

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

OCR Internet Technologies

OCR Internet Technologies

10th - 11th Grade

12 Qs

Hari 3 - Kuis Coding & Perkenalan AI - Fitri Yanti

Hari 3 - Kuis Coding & Perkenalan AI - Fitri Yanti

1st - 12th Grade

12 Qs

bài tập câu lệnh đk

bài tập câu lệnh đk

8th Grade

15 Qs

Networking_Terminology_1

Networking_Terminology_1

8th - 12th Grade

10 Qs

Word 2016 Lesson 1

Word 2016 Lesson 1

9th - 12th Grade

10 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

IT related jobs

IT related jobs

9th Grade

9 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

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?