Search Header Logo

Introduction to Python Programming

Authored by Georgios Kakavelakis

Computers

6th - 8th Grade

Used 5+ times

Introduction to Python Programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the print() function do?

Reads input from the user

Saves data to a file

Displays text on the screen

Runs a Python program

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of data does input() return?

String

Integer

Float

Boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which line correctly converts a string to an integer?

int = "5"

score = int("5")

score = input("5")

score = "int(5)"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?

print("Hello", "World")

HelloWorld

Hello World

"Hello", "World"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with this line of code?

print("Hi)

Indentation error

Brackets not closed

Missing quotation mark

Nothing is wrong

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword starts a conditional in Python?

check

if

else

when

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following represents "equal to" in Python?

!=

==

=/=

<>

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?