HCI 584 Python quiz

HCI 584 Python quiz

University

15 Qs

quiz-placeholder

Similar activities

Python Programming - Test 1

Python Programming - Test 1

University - Professional Development

20 Qs

Python_2R

Python_2R

KG - Professional Development

20 Qs

PYTHON PROGRAMMING BASICS

PYTHON PROGRAMMING BASICS

University

13 Qs

python

python

University

19 Qs

ITE 260 LEC

ITE 260 LEC

University

18 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

PYTHON REVISION

PYTHON REVISION

University

20 Qs

Python if statement

Python if statement

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?