CodeHS Python Unit 3 Quiz Review

CodeHS Python Unit 3 Quiz Review

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Python Quiz For Starters

Python Quiz For Starters

3rd Grade - Professional Development

17 Qs

EmTech Q2 Post Test 5

EmTech Q2 Post Test 5

11th Grade

15 Qs

Cyber Security Homework 1

Cyber Security Homework 1

7th - 9th Grade

15 Qs

Arduino_Quiz

Arduino_Quiz

12th Grade

20 Qs

Ethical and Social Issues in ICT

Ethical and Social Issues in ICT

10th Grade

15 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Python Syntax II

Python Syntax II

10th Grade

16 Qs

Java by Mr Sam

Java by Mr Sam

10th Grade

16 Qs

CodeHS Python Unit 3 Quiz Review

CodeHS Python Unit 3 Quiz Review

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Katy Fleming

Used 75+ 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

2 mins • 1 pt

Media Image

What is the output of the following program? Assume the user enters “Florence”, then “Fernandez”.

Fernandez Florence

FlorenceFernandez

Florence Fernandez

None of the Above

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What does the following program print?

<type 'str'>

<type 'int'>

<type 'float'>

The program crashes and doesn’t print anything.

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following options is the best way to get a number from the user that you plan to use in a mathematical equation?

num = str(input(“Enter a number: “))

num = number(input(“Enter a number: “))

num = input(“Enter a number: “)

num = int(input(“Enter a number: “))

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which one of the statements below will cause an error?

ans = “hi” * 8

ans = “hi” + 9

ans = “hi” + “hi” + “hi”

ans = (“a” * 4) + “b”

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the difference between a binary operator and a unary operator?

A computer can use binary operators, but it cannot use unary operators.

A unary operator needs two things, while a binary operator only needs one.

A binary operator needs two things, while a unary operator only needs one.

Binary operators are used for arithmetic expressions, while unary operators are for strings.

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the final result of the expression 7 / 2 + 6?

0

9

9.5

0.875

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following choices is a properly formed Python variable name, meaning it is both legal in the Python language and considered good style?

user_age

uSeRaGe

user!age!

1user_age

Create a free account and access millions of resources

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?