Python - Printing, Variables and Syntax

Quiz
•
Computers
•
8th Grade
•
Medium
J Sharp
Used 209+ 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
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
13 questions
Program Development - Python: Errors

Quiz
•
8th - 10th Grade
10 questions
Python Basics

Quiz
•
8th - 10th Grade
13 questions
Python

Quiz
•
7th - 8th Grade
11 questions
Python for Class 7

Quiz
•
7th - 8th Grade
10 questions
Basic Python Programming_Class VIII

Quiz
•
8th Grade
10 questions
Class VIII_Basic Python Programming Quiz

Quiz
•
8th Grade
12 questions
Python

Quiz
•
7th - 8th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
15 questions
Wren Pride and School Procedures Worksheet

Quiz
•
8th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
10 questions
Converting Repeating Decimals to Fractions

Quiz
•
8th Grade