
Data Types in Python
Quiz
•
Computers
•
10th - 11th Grade
•
Practice Problem
•
Hard
Sandeep Arora
Used 16+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which if the values below is an integer data type?
1
1.0
1/2
"1"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a String?
A data type that contains whole numbers. eg: 3, 45, 124
Numbers with decimal point. eg: 0.5, 2.45, 56.04
Group of characters between quotation marks. eg: "dog"
Data type that can only be True or False.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an Integer?
A data type that contains whole numbers. eg: 3, 45, 124
Numbers with decimal point. eg: 0.5, 2.45, 56.04
Group of characters between quotation marks. eg: "dog"
Data type that can only be True or False.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is correct?
List is immutable && Tuple is mutable
List is mutable && Tuple is immutable
Both are Mutable
Both are Immutable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose a list with name arr, contains 5 elements. You can get the 2nd element from the list using:
arr[-2]
arr[2]
arr[-1]
arr[1]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is correct with respect to above Python code?
d={"a":3,"b":7}
a dictionary d is created.
a and b are the keys of dictionary d.
3 and 7 are the values of dictionary d
All of the above.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of above Python code?
dict={"Joey":1,"Rachel":2}
dict.update({"Phoebe":2})
print(dict)
{"Joey":1,"Rachel":2,"Phoebe":2}
{"Joey":1,"Rachel":2}
{"Joey":1,"Phoebe":2}
Error
Access all questions and much more by creating a free account
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
12 questions
Кодирование текстовой информации
Quiz
•
8th - 10th Grade
12 questions
ULANGAN HARIAN Semester 2
Quiz
•
10th Grade
13 questions
In For Matics
Quiz
•
11th Grade
21 questions
حاسب 1 نظري
Quiz
•
10th Grade
20 questions
Latihan Jaringan Dasar PSAS
Quiz
•
10th Grade
15 questions
Quis Grade 5
Quiz
•
9th - 12th Grade
13 questions
Direcciones IP v4
Quiz
•
10th - 12th Grade
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
