Search Header Logo

Python Term 2 - Quiz 3

Authored by Tomasz Michalski

Computers

6th - 8th Grade

Python Term 2 - Quiz 3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to check if a variable number has a value of 3?

if number = 3:

if number == 3:

if number is 3:

if number(3):

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the font object from pygame module used for?

for using fonts

for using sounds

pygame does not have a font object

for using images

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is needed to create an object?

a class

a function

a method

a loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a class and an object?

There's no difference

Objects are created from classes

You cannot call objects

Classes cannot have attributes (values)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the keyword used in creating functions?

function

def

try

import

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What instruction is used to display text in the console?

echo

output

print

console.write

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed into the console? print(22 % 3)

7

0

1

5

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?