Unit 1 Review: Python Basics

Unit 1 Review: Python Basics

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Python Lab - Quiz 2

Python Lab - Quiz 2

12th Grade

20 Qs

AQA GCSE Programming

AQA GCSE Programming

10th Grade

25 Qs

Computer Science (Python)

Computer Science (Python)

9th Grade

18 Qs

Python

Python

6th - 10th Grade

17 Qs

Python basics yr7

Python basics yr7

6th - 9th Grade

20 Qs

Coding Basics

Coding Basics

9th - 12th Grade

20 Qs

Python First Steps Homework Quiz

Python First Steps Homework Quiz

7th - 9th Grade

20 Qs

Python Basics Recap

Python Basics Recap

8th - 11th Grade

23 Qs

Unit 1 Review: Python Basics

Unit 1 Review: Python Basics

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Endia Spencer

Used 76+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the following string:

h = "Hello", which code results in an error?

print (h)

print(h.lower())

h = 's'

print(h+1)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

Good Bye

Welcome

An error message

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the input() function return?

an integer value

a string value

a float value

all of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the value of x after the following code is run?

19

20

21

22

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which statements evaluate True and without errors?

"unbothered".isupper()

"Monroe High School".istitle()

5.isdigit()

"animal".islower()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement sets the variable t to a value of "Total Credits: 25"?

t = "Total Credits:" + 25

t = "Total Credits:" + str(25)

t = input("Total Credits:" + str(25))

print("Total Credits", "25")

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is "print" used for?

To input

To make strings

To display output

Non of the above

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?