Python Quiz

Python Quiz

9th Grade

20 Qs

quiz-placeholder

Similar activities

9.1 Homework #3

9.1 Homework #3

9th Grade

20 Qs

B Words GCSE Computer Science

B Words GCSE Computer Science

1st - 10th Grade

15 Qs

computer Lab Manners

computer Lab Manners

5th - 10th Grade

19 Qs

tik kelas 7

tik kelas 7

1st Grade - University

15 Qs

PH SIMKMDIG KD 3.1 Menerapkan Logika dan Algoritma Komputer

PH SIMKMDIG KD 3.1 Menerapkan Logika dan Algoritma Komputer

1st - 10th Grade

20 Qs

BIM1014 Quiz 2

BIM1014 Quiz 2

KG - University

15 Qs

Acceptable Use Policy

Acceptable Use Policy

6th - 9th Grade

16 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

9th Grade

Practice Problem

Hard

Created by

Chris Dunn

Used 987+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?