Python Homework

Python Homework

8th Grade

12 Qs

quiz-placeholder

Similar activities

ICT: WEEK 1

ICT: WEEK 1

8th Grade

10 Qs

COMPUTER  BASIC

COMPUTER BASIC

6th - 8th Grade

10 Qs

QBASIC Programming

QBASIC Programming

5th - 10th Grade

10 Qs

Kiểm tra 15' tin 8 lần 2

Kiểm tra 15' tin 8 lần 2

8th Grade

10 Qs

7.02 going online

7.02 going online

4th - 9th Grade

10 Qs

hardware and software(g3)

hardware and software(g3)

2nd - 10th Grade

10 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

CE4 - Health and Green IT

CE4 - Health and Green IT

7th - 11th Grade

12 Qs

Python Homework

Python Homework

Assessment

Quiz

Computers

8th Grade

Practice Problem

Medium

Created by

Elizabeth Pike

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If I wrote print("I am happy!") in Python, what would show on the screen when I ran the code?

print("I am happy!")

I am happy

I am happy!

Syntax error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why won't my code work in Python?

print(I love Ice cream)

The p needs to be a capital letter

It needs an exclamation mark after ice cream

There needs to be a gap in between print and the brackets

I have missed " " marks around I love Ice cream

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If I typed the following in Python and ran it, what would show on the screen?

team=input("What is your favourite team?")

print(team + " are a great team")

It would ask you your favourite team and then reply with your team name are a great team.

It would print team are a great team

Syntax error

It would ask your favourite team then stop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If I typed print("3+4") in Python and then ran the program, what would show on screen?

7

3+4

12

Syntax Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

age = int(input("What is your age?"))


Why have I included int before the brackets?

It is a mistake and should say input

It tells Python it is a question

It converts a number into words

The answer will be an integer

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the mistakes in this code?

name=int("What is your name?)

print(Hello + name)

Int should be written as input

Int should be written input, and speech marks should be added after name on the second line and around Hello

Speech marks are missing around Hello

Int needs to be input and you need double brackets.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the correct command for outputting the text string Hello World?

print("Hello World")
print = "Hello World"
print = (Hello World)
PRINT(Hello World)

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?