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
Programming and Logic Lesson 4

Quiz
•
6th - 8th Grade
18 questions
python

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

Quiz
•
6th - 10th Grade
15 questions
INTRODUCTION FOR PYTHON

Quiz
•
6th - 8th Grade
19 questions
ProA Desarrollo de Software 3° año

Quiz
•
1st - 12th Grade
15 questions
Python_Exam

Quiz
•
6th - 10th Grade
14 questions
Quiz: Python Intermédiaire Niveau 1

Quiz
•
6th - 8th Grade
15 questions
Аян и Сабыржан

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

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

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
10 questions
Networking Devices and Their Functions

Interactive video
•
5th - 8th Grade
20 questions
Binary Numbers Quiz

Quiz
•
6th - 8th Grade