Search Header Logo

AWS Booster Python Day 1

Authored by CloudThat Technologies

Professional Development

Professional Development

Used 5+ times

AWS Booster Python Day 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is a valid Python code comment?

# use comments to describe the function of code

// comments make code easier to update

[comment] comments can provide use instructions for other developers

(comment) warnings can be placed in comment

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which contains only integers? (Ignore the commas)

Q, W, E, R, T, Y, a, s, d, f

-2, -1, -0.5, 0, 0.5, 1, 2

1, 2, 0, -3, 2, -5

3, 2, 1, *, +, =, -

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, strings can contain only letters a-z and A-Z.

True

False

May be

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does type(3.55) return?

float

int

str

all of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does type("Hello World!") return?

all of the below

int

float

str

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is an example of Python string addition that will run without error?

new_string = Hello + World!

new_string = "Hello " + "World!"

new_string = "Hello ' + "World!'

all of the above

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which is a properly formatted Python print() function example?

print("Welcome the", 3, New students!)

print("Welcome the", 3 + New students!)

print("Welcome the", 3, "New students!")

print("Welcome the", 3 + " New students!")

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?

Discover more resources for Professional Development