Search Header Logo

Python First Steps Homework Quiz

Authored by Tracy Mayhead

Computers

7th - 9th Grade

Used 138+ times

Python First Steps Homework Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A set of precise instructions that is meant to solve a problem is .......................

a computer

an algorithm

a program

an interpreter

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used in python to assign values to a variable?

plus +

forward slash /

equals =

asterisk *

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Read the Python program:


When this program is executed, what will be displayed on the screen?


Note: There may be errors in the program and/or it may not behave as expected.

"I live in", location

"I live in", "Leeds"

I live in location

I live in Leeds

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Read the Python program:


When this program is executed, what will be displayed on the screen, as a result of executing line 3?


Note: There may be errors in the program and/or it may not behave as expected.

I’ve never been to and whatever the user has typed at the keyboard

I’ve never been to location

I’ve never been to input()

It is not possible to know the output without executing the program.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which feature of programming involves a decision, but does not involve repeats?

Sequence

Selection

Iteration

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Read the Python program below:


1. answer = 3 + 13 * 3

2. print("The Answer is", answer)


When this program is executed, what will be displayed on the screen?


Note: There may be errors in the program and/or it may not behave as expected.

The Answer is 3 + 13 * 3

The Answer is 42

The Answer is 48

The Answer is answer

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The code you use to receive an input from the keyboard

enter()

receive()

add()

input()

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?