Python 1 hour lesson quiz

Python 1 hour lesson quiz

Assessment

Interactive Video

Computers

12th Grade

Practice Problem

Hard

Created by

Amy Fu

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step to start programming in Python?

Install a code editor

Download the latest version of Python from python.org

Write a 'Hello World' program

Learn about variables

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you read a value from the terminal in Python?

Using the print function

Using the input function

Using the read function

Using the scan function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to check if two values are equal in Python?

<=

==

!=

>=

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'not' operator do in Python?

It checks if two values are equal.

It returns true if at least one expression is true.

It returns true if both expressions are true.

It inverts the boolean value of an expression.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, how do you represent a block of code?

Using curly braces

Using indentation

Using square brackets

Using parentheses

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?