Data Types
Quiz
•
Engineering
•
Professional Development
•
Practice Problem
•
Hard
py thon
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of the following code:
x = 'Welcome'
print(x[3])
Wel
c
Welcome Welcome Welcome
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the follwing repersents list data type?
N={1,2,3}
N=[1,2,3]
N= (1,2,3)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If x = 9, what is a correct syntax to print 'The price is 9 dollars'?
print(f'The price is {x:f} dollars')
print(f'The price is {x} dollars')
print(f'The price is {x:f(2)} dollars')
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of the following code:
prinThe price is 23 dollars
The price is 5 dollars
The price is {2 + 3} dollars
The price is 6 dollars
t(f'The price is {2 + 3} dollars')
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False.
List items cannot be removed after the list has been created.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Whis one of theese is a dictionary?
x = ('apple', 'banana', 'cherry')
x = {'type' : 'fruit', 'name' : 'banana'}
x = ['apple', 'banana', 'cherry']
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False.
Dictionary items cannot be removed after the dictionary has been created.
True
False
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?
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Engineering
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
Disney Characters
Quiz
•
Professional Development
20 questions
Customer Service
Quiz
•
Professional Development
10 questions
Food Idioms
Quiz
•
Professional Development
20 questions
NCCER Power Tools Quiz
Quiz
•
Professional Development
