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
15 questions
Python Basics

Quiz
•
University
20 questions
Mastering Python Loops and Functions

Quiz
•
10th Grade - University
15 questions
Exploring Python Fundamentals

Quiz
•
12th Grade - University
15 questions
AITT LAB QUIZ 1

Quiz
•
University
15 questions
Python End of Topic Quiz

Quiz
•
8th Grade - University
10 questions
Conditional and Iterative Statements

Quiz
•
University
12 questions
Phase 01 test

Quiz
•
University
15 questions
Round 4 - Harvest

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade