Python: Data Types and Variable Declarations
Quiz
•
Computers
•
6th Grade
•
Practice Problem
•
Medium
Kyd Tantano Masong
Used 100+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Robotics NXT
Quiz
•
6th - 8th Grade
12 questions
Intro to Scratch 2
Quiz
•
KG - University
15 questions
AV1/R1 1TEC_IP_Introdução à Programação - Aula 01 a 06
Quiz
•
1st Grade - University
12 questions
Variables and data types
Quiz
•
4th - 12th Grade
18 questions
Protect Yourself Online Article Review
Quiz
•
6th - 8th Grade
15 questions
Block Tynker
Quiz
•
6th Grade
12 questions
Variables Unit 3 Scratch Practice
Quiz
•
6th - 8th Grade
20 questions
BZA Python Programming 3
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
42 questions
MAP Math Review
Quiz
•
5th - 6th Grade
20 questions
Thanksgiving Trivia!
Quiz
•
6th - 8th Grade
