Python Basics

Quiz
•
Computers
•
8th Grade
•
Hard
Ryan Tingle
Used 310+ times
FREE Resource
31 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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...
Syntax error
Logic error
Code error
Run time error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax error with this code:
print”Hello World”
No brackets around "Hello World"
Speech marks are not needed
Colon is not needed
print is spelt incorrectly
Print has a capital P
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax error with this code:
print(“Hello World”);
No brackets around "Hello World"
Speech marks are not needed
Colon is not needed
print is spelt incorrectly
Print has a capital P
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax error with this code:
Print(“Hello World”)
No brackets around "Hello World"
Speech marks are not needed
Colon is not needed
print is spelt incorrectly
Print has a capital P
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax error with this code:
prin(Hello World)
No brackets around "Hello World"
Speech marks are not needed
Colon is not needed
print is spelt incorrectly
Print has a capital P
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When you run this program what will this line of code do?
name = input("Enter your name: ")
Ask you to Enter your name and save your answer to Google Drive
Ask you to Enter your name and save your answer to My Documents
Ask you to Enter your name
Ask you to Enter your name and save your answer as a variable
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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)
"Hello " + name + "Your birthday month is " + month +
" and the day of your birthday this year is " + day
Hello John Smith Your birthday month is June and the day of your birthday this year is Tuesday
Hello John Smith Your birthday month is June and the day of your birthday this year is Monday
"Hello "John Smith "Your birthday month is " + month +
" and the day of your birthday this year is " + day
Create a free account and access millions of resources
Similar Resources on Wayground
26 questions
прикол питон

Quiz
•
8th Grade
29 questions
Hardware devices

Quiz
•
8th Grade
26 questions
Python 6 Класс

Quiz
•
6th - 8th Grade
30 questions
Python Beginner

Quiz
•
6th - 12th Grade
30 questions
Python Programming End of Unit Assessment

Quiz
•
7th - 9th Grade
30 questions
Python - Completo 1e

Quiz
•
8th Grade
31 questions
Python Unit 02 - Libraries and Variables

Quiz
•
6th - 9th Grade
30 questions
TIK - SD

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade