
HCI 584 Python quiz
Authored by Chris Harding
Computers
University
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Given a list numbers = [1, 2, 3, 4, 5], what is the result of numbers[1:4]?
[1, 2, 3, 4]
[1, 4]
[2, 3, 4]
[4, 3, 2]
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Given the dictionary person = {"name": "Alice", "age": 30}, how would you access Alice's age?
person[age]
person["Alice", "age"]
person.age
person["age"]
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the result?
0
1
[5]
5
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the result?
error! Needs 2 args!
4
8
15
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is the correct way to comment out multiple lines of code in Python?
#
''' '''
<!-- -->
/* */
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following data types is immutable in Python?
list
array
dictionary
string
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does len("Hi Bob") return?
"Howdy!"
2
5
6
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
20 questions
Enviro Quizizz 2021
Quiz
•
University
15 questions
DBC CHAPTER 3 - REVISION
Quiz
•
University
20 questions
Information Management - QUIZ
Quiz
•
University
10 questions
Web-II-Loop and Function
Quiz
•
University
11 questions
Workshop_1
Quiz
•
University
10 questions
Neural Networks Quiz
Quiz
•
University
10 questions
ทำความรู้จักกับภาษาไพทอน
Quiz
•
University
10 questions
Quiz Modul 10 - User Forms (1110)
Quiz
•
University
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