Python Basics

Python Basics

Assessment

Flashcard

Computers

8th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

28 questions

Show all answers

1.

FLASHCARD QUESTION

Front

The rules for putting together a correct computer language statement are called Syntax. Therefore if these rules are broken e.g. no brackets, speech marks etc. it is a...

Back

Syntax error

2.

FLASHCARD QUESTION

Front

What is the syntax error with this code: print”Hello World”?

Back

No brackets around "Hello World"

3.

FLASHCARD QUESTION

Front

What is the syntax error with this code: print(“Hello World”);

Back

Colon is not needed

4.

FLASHCARD QUESTION

Front

What is the syntax error with this code: Print(“Hello World”)?

Back

Print has a capital P

5.

FLASHCARD QUESTION

Front

What is the syntax error with this code: prin(Hello World)?

Back

print is spelt incorrectly

6.

FLASHCARD QUESTION

Front

When you run this program what will this line of code do?
name = input("Enter your name: ")

Back

Ask you to Enter your name and save your answer as a variable

7.

FLASHCARD QUESTION

Front

What will this piece of code do when it runs for John Smith born in June and the day of his birthday is Tuesday? print("Hello " + name + "Your birthday month is " + month + " and the day of your birthday this year is " + day)

Back

Hello John Smith Your birthday month is June and the day of your birthday this year is Tuesday

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?