Python Variables

Quiz
•
Computers
•
7th - 12th Grade
•
Hard

Janelle Yearwood
Used 89+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of data is the following?: X = "195.67"
Float
String
Boolean
integer
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of variable is the following?: Y = False
Float
String
Integer
Boolean
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following Python program print?
X = "Hello World!"
Y = "I can code "
Z = " In Python"
print( X + Y + Z)
Hello World! I can code In Python
Hello World!I can code In Python
Hello World! I can codeIn Python
Hello World!I can code In Python
Answer explanation
There is a space after the word "code" and before the word "In".
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Variables have three things:
Numeric, string, Boolean
Integer, float, string
name, type, value
function, value, name
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When you want to print something to the screen you should use
The keyboard to type it
The computer Display
A monitor
a print statement
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
print("Python " * 3); will print out what
Python 3 Python 3 Python 3
Python Python Python
PythonPythonPython
Python*3 Python*3 Python*3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one to the following Python programs will not run?
num = 4
greeting = "Hello"
print(num + greeting)
grade = 98.7
letterGrade = "A+"
print(str(grade) + letterGrade
studentNum =80
print("studentNum")
print("Hello World!")
Answer explanation
You cannot concatenate a string and an integer. the integer must be converted to a string.
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
python

Quiz
•
9th Grade
10 questions
My Python : About Me

Quiz
•
6th - 8th Grade
12 questions
Python Homework

Quiz
•
8th Grade
12 questions
Navs Python Quiz

Quiz
•
8th - 10th Grade
10 questions
Python Basics: Operators and Variables

Quiz
•
10th Grade
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
13 questions
Fundamentals of Python

Quiz
•
9th - 12th 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
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade