Tynker Python Lesson 3-4

Tynker Python Lesson 3-4

Assessment

Assessment

Created by

Ingrid Cruz

Computers

7th - 10th Grade

5 plays

Medium

Student preview

quiz-placeholder

13 questions

Show all answers

1.

MULTIPLE CHOICE

30 sec • 1 pt

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

2.

MULTIPLE CHOICE

30 sec • 1 pt

The following two pieces of code do the same thing:

if condition :

forward()

# next code

if condition :

forward()

else :

fire()

3.

MULTIPLE CHOICE

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 )?

4.

MULTIPLE CHOICE

30 sec • 1 pt

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

5.

MULTIPLE CHOICE

30 sec • 1 pt

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

6.

MULTIPLE CHOICE

30 sec • 1 pt

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

7.

MULTIPLE CHOICE

30 sec • 1 pt

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

8.

MULTIPLE CHOICE

30 sec • 1 pt

When running this code, what will the character do if there is an enemy?

if not enemy_in_sight() :

fire()

9.

MULTIPLE CHOICE

30 sec • 1 pt

What would the following code do?

while True :

print(“Hello”)

10.

MULTIPLE CHOICE

30 sec • 1 pt

"While" loops always terminate eventually.

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Find a similar activity

Create activity tailored to your needs using

Quizizz AI
Latihan ICT Part 2

10 questions

Latihan ICT Part 2

assessment

10th Grade

Quiz #3 - Chapter 1-3 Review

14 questions

Quiz #3 - Chapter 1-3 Review

assessment

9th - 12th Grade

M5: Does my program work correctly?

16 questions

M5: Does my program work correctly?

assessment

9th Grade

Python Basics for Grade 8

15 questions

Python Basics for Grade 8

assessment

8th Grade

SLR2.2 - Mastering While Loops

14 questions

SLR2.2 - Mastering While Loops

assessment

9th Grade

Iteration

14 questions

Iteration

assessment

9th Grade

Introduction to Computer Science

10 questions

Introduction to Computer Science

assessment

1st - 9th Grade

Iteration - for loop

17 questions

Iteration - for loop

assessment

9th Grade