Python - Printing, Variables and Syntax

Quiz
•
Computers
•
8th Grade
•
Hard
J Sharp
Used 221+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will the output be of this code?
print"Hello World"
Hello World
"Hello World"
Syntax error
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will the output be of this code?
print("Hello World")
Hello World
"Hello World"
Syntax error
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is syntax?
The words in a language
The rules that must be followed in a language
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Name the variable in this code:
name = "Daffy"
print("Hi", name)
Daffy
Hi
Name
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is a variable?
Someone's name
A stored value
Syntax
Iteration
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
How many individual variables are in this code?
name = "Goofy"
age = "21"
holiday = "Disney"
print("Hi", name, "I see you are", age, "would you like to go to" holiday, "?")
1
2
3
4
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is wrong with this code?
name = Daisy
print("Hello", name)
Missing " " on name
Missing ( ) on Daisy
Extra , after Hello
Missing " " on Daisy
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Programming in Python: Sequences

Quiz
•
8th Grade
15 questions
JavaScript basics

Quiz
•
8th Grade - University
10 questions
Python Programming

Quiz
•
7th - 9th Grade
12 questions
Variables and data types

Quiz
•
4th - 12th Grade
10 questions
Java Strings

Quiz
•
1st Grade - Professio...
12 questions
S3 Python 1

Quiz
•
8th - 10th Grade
10 questions
Python

Quiz
•
1st - 10th Grade
15 questions
Python Part 1

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade