Search Header Logo

Python structure Vocab quiz 1

Authored by Jennifer Silva

9th Grade

Used 9+ times

Python structure Vocab quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Boolean is

True/False Value

a lopsided ghost

a science term

a number system

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

A ___________ is the process of converting the value of one datatype (integer, string, float, etc.) to another data type.

data type

list

type conversion

does not pertain to coding

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following is not a valid value for a boolean?

True

False

yes

All are valid

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Predict the outcome for the code: (assume typed correctly)

has_cat = False
print("Has a cat? " + str(has_cat))

Error

Has a dog?

False

Has a cat? False

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which operator checks if a value is equal to another value?

+

=

==

!=

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

a data type than can have one of two values: True or False

boolean
variable
modulo
interpreter

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of these is true?

A syntax error will stop a program running

A logic error will stop a program running

A syntax error will let the program run but may have unexpected outcomes

The program will always show an error message for a logic error

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?