Python: Data Types and Variable Declarations

Quiz
•
Computers
•
6th Grade
•
Medium
Kyd Tantano Masong
Used 99+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which data type is used to store whole numbers in Python?
float
integer
string
boolean
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you declare a variable in Python?
var x = 5
int x = 5
x = 5
declare x = 5
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a valid variable name in Python?
my_variable
_variable
1_variable
variable_1
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of the following expression: 5 + 2.0?
7
7.0
5.2
52
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which data type is used to store a sequence of characters in Python?
integer
boolean
float
string
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you concatenate two strings in Python?
str1.add(str2)
str1.concat(str2)
str1 + str2
concat(str1, str2)
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of the expression: 10 / 3?
3
3.3333333333333335
3.0
3.333
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python: Escape Sequences, Input(), Variables, Math and Numbers

Quiz
•
6th Grade
13 questions
Python Basics Revision

Quiz
•
6th - 8th Grade
16 questions
Some Python basics

Quiz
•
6th - 8th Grade
19 questions
Final Lesson

Quiz
•
6th - 8th Grade
20 questions
Python (The Basics)

Quiz
•
6th - 10th Grade
20 questions
Basic Python Key Terms

Quiz
•
6th - 8th Grade
16 questions
Python Basics

Quiz
•
KG - University
20 questions
Beginner Python vocabulary

Quiz
•
6th 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
Hallway & Bathroom Expectations

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

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

Interactive video
•
6th - 10th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
30 questions
Teacher Facts

Quiz
•
6th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
20 questions
Adding and Subtracting Integers

Quiz
•
6th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade