Session3L2Quiz

Session3L2Quiz

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Stay safe INTSS

Stay safe INTSS

KG - Professional Development

19 Qs

sister location

sister location

1st - 12th Grade

13 Qs

Teste de apredizagem Inter

Teste de apredizagem Inter

1st - 10th Grade

14 Qs

Welcome to Intel

Welcome to Intel

KG - University

16 Qs

Python Quiz For Starters

Python Quiz For Starters

3rd Grade - Professional Development

17 Qs

U.S. Midterm Prep C

U.S. Midterm Prep C

12th Grade

12 Qs

STIS (TO 15) 1

STIS (TO 15) 1

12th Grade - University

20 Qs

Tobaksfria V.47

Tobaksfria V.47

7th - 12th Grade

12 Qs

Session3L2Quiz

Session3L2Quiz

Assessment

Quiz

Special Education

9th - 12th Grade

Practice Problem

Hard

Created by

Mohamed Hany

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

In Python, a variable must be declared before it is assigned a value:

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

In Python, a variable may be assigned a value of one type, and then later assigned a value of a different type:

True

False

3.

MULTIPLE SELECT QUESTION

30 sec • 10 pts

Which of the following are valid Python variable names:

home_address

route66

4square


ver1.3

Age

4.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Media Image

You are reading Python code, and these statements appear scattered in different locations throughout the code:

These statements refer to the same variable.

These statements refer to different variables.

5.

MULTIPLE CHOICE QUESTION

30 sec • 15 pts

Which of the following statements assigns the value 100 to the variable x in Python:

x == 100

x = 100

x != 100

x << 100

6.

MULTIPLE CHOICE QUESTION

30 sec • 15 pts

What is the output of this code:

var = ["Mohamed","Hany"]

print(var[0][3])

Error

a

Mohamed

h

m

7.

MULTIPLE SELECT QUESTION

30 sec • 10 pts

Which of the following are Python reserved words (keywords):

goto

and

None

default

class

Answer explanation

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?