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
11 questions
Quiz: Python Débutant Niveau 1

Quiz
•
6th - 8th Grade
14 questions
Zip Class Coding Adventure in Minecraft Education - Python

Quiz
•
6th - 8th Grade
16 questions
thunkable

Quiz
•
4th - 7th Grade
12 questions
Python Fundamentals

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

Quiz
•
6th - 8th Grade
15 questions
Python : Codeathon Competition

Quiz
•
5th - 8th Grade
20 questions
ทดสอบกลางภาค ม.3

Quiz
•
6th - 8th Grade
19 questions
Edublock input and ouput

Quiz
•
6th 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
20 questions
typing

Quiz
•
6th 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
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade