Python Quiz

Python Quiz

9th Grade

20 Qs

quiz-placeholder

Similar activities

Python programming language Quiz - Week 9

Python programming language Quiz - Week 9

9th Grade

15 Qs

HTML CSS JS

HTML CSS JS

9th - 12th Grade

20 Qs

GGHS HTML Test

GGHS HTML Test

7th - 10th Grade

20 Qs

Pseudocode Practice

Pseudocode Practice

9th - 12th Grade

20 Qs

Malware

Malware

9th Grade

20 Qs

IED U 2

IED U 2

9th - 10th Grade

17 Qs

Access - Lesson 8

Access - Lesson 8

9th - 12th Grade

20 Qs

Office 2016 and Windows 10 Module

Office 2016 and Windows 10 Module

9th - 12th Grade

20 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

9th Grade

Hard

Created by

Chris Dunn

Used 963+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What does this code do?

print("Hello world!")

Displays 'Hello world!' in the shell window.

Sends 'Hello world!' to the printer.

Waits for the user to type in 'Hello world!'

Displays 'hello, world.' in the shell window.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What symbol do you type in to add a short comment?

"""

#

@

/

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

True or False:

phone.number is a good name for a variable.

True

False

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does this function do?

input()

Opens the CD tray.

Asks the user to type something in.

Displays the word 'input'.

Exits the program.

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is a variable?

A number such as 25.

Plus, minus, multiply, divide or equals.

An array of text.

A storage location in the program which stores a value.

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

True or False:

5.0 is an example of the 'float' datatype.

True

False

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

You write a program where the user types how many apples they want to buy. The program calculates the total cost and displays it on the screen in pounds. What is the output?

numberOfApples (integer)

totalPrice = numberOfApples*25/100

totalPrice (float)

totalPrice = numberOfApples

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?