AWS Booster Python Day 1

AWS Booster Python Day 1

Professional Development

10 Qs

quiz-placeholder

Similar activities

pyhthon condition statement

pyhthon condition statement

Professional Development

10 Qs

IOAC - ML Batch Pre-Assessment -4th-Feb

IOAC - ML Batch Pre-Assessment -4th-Feb

Professional Development

10 Qs

SAP Quiz

SAP Quiz

Professional Development

10 Qs

Python

Python

Professional Development

10 Qs

Python training series quiz

Python training series quiz

Professional Development

9 Qs

Python

Python

Professional Development

10 Qs

DAY#2

DAY#2

Professional Development

5 Qs

Python LIST

Python LIST

Professional Development

10 Qs

AWS Booster Python Day 1

AWS Booster Python Day 1

Assessment

Quiz

Professional Development

Professional Development

Medium

Created by

CloudThat Technologies

Used 5+ times

FREE Resource

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!")

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?