Python Basics

Python Basics

Assessment

Flashcard

Computers

8th Grade

Hard

Created by

Quizizz 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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?