HCI 584 Python quiz

Quiz
•
Computers
•
University
•
Hard

Chris Harding
Used 7+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
GirlsWhoML Workshop 0

Quiz
•
University
12 questions
Phase 01 test

Quiz
•
University
15 questions
Python функциялары 7 сынып

Quiz
•
12th Grade - University
15 questions
SCRIPTING PROGRAMMING WITH PYTHON

Quiz
•
University
20 questions
1212 Midterm Review

Quiz
•
University
10 questions
PYTHON_CHAPTER 2

Quiz
•
University
10 questions
Day 4

Quiz
•
12th Grade - University
10 questions
PF Unit 10

Quiz
•
9th Grade - University
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
9/11 Experience and Reflections

Interactive video
•
10th - 12th 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
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University