HCI 584 Python quiz

HCI 584 Python quiz

University

15 Qs

quiz-placeholder

Similar activities

PFP191 (Part 5)

PFP191 (Part 5)

University

10 Qs

MLP - ICTAK Skill Quiz - Coding Skills

MLP - ICTAK Skill Quiz - Coding Skills

University

10 Qs

Cybernaut Analysis

Cybernaut Analysis

University

15 Qs

Machine Learning

Machine Learning

University

20 Qs

Python Basics

Python Basics

University

10 Qs

PYTHON PROGRAMMING Q5 ITERATIONS

PYTHON PROGRAMMING Q5 ITERATIONS

University

20 Qs

Python Functions and File Operations Quiz

Python Functions and File Operations Quiz

University

20 Qs

Grade 8 End of Unit Revision

Grade 8 End of Unit Revision

8th Grade - University

15 Qs

HCI 584 Python quiz

HCI 584 Python quiz

Assessment

Quiz

Computers

University

Hard

Created by

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

Media Image

What is the result?

0

1

[5]

5

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?