Search Header Logo

Python_3P_Basics

Authored by diego gantiva

Information Technology (IT)

11th Grade

Used 6+ times

Python_3P_Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many variables are there in this program?

2

3

4

5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would be the output of this program if the user input was 10?

22.04

220.4

2204

Error wrong data type

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would be the output of this program if the user entered "yes" then "what"?

Enjoy your day

it is too windy for an umbrella

Take an umbrella

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type represents a decimal number?

Float

Int

Boolean

String

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct code for creating a list of names?

nameList = John, Harry, Jesse, John, Harry, Harry

nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList = [John, Harry, Jesse, John, Harry, Harry]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List items have an index number. In the following list, which item has the index number of 3?

["John", "Harry", "Jesse", "John", "Harry", "Harry"]

"John"

"Harry"

"Jesse"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these pieces of code would return the name "Harry" from the following list?

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList()

nameList[1]

NameList(4)

nameList["4"]

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?