COMP1010 Week 3 Quiz

COMP1010 Week 3 Quiz

University

18 Qs

quiz-placeholder

Similar activities

Quiz on Java

Quiz on Java

University

20 Qs

C Programming Quiz

C Programming Quiz

12th Grade - University

20 Qs

Python introduction

Python introduction

University

15 Qs

Python Basic II

Python Basic II

11th Grade - University

20 Qs

Python Basics 1

Python Basics 1

University

20 Qs

Python Quiz

Python Quiz

University

15 Qs

Python Control Structures

Python Control Structures

University

20 Qs

Python Programming Quiz

Python Programming Quiz

9th Grade - University

20 Qs

COMP1010 Week 3 Quiz

COMP1010 Week 3 Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Ethan Ryoo

Used 5+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following would add the integer 1 to the start of my_list? There may be multiple correct answers.

[1] + my_list

my_list.append(1)

my_list.insert(0, 1)

1 + my_list

2.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

len("my string") = _

3.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

[1, 2, 3, 2, 3, 2, 1]._____(2) = 3

4.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

[1, 2, 3, 2, 3, 2, 1]._____(2) = 1

5.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

[1, 2, 3, 2, 3, 2, 1].______(2) = [1, 3, 2, 3, 2, 1]

6.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

[1, 2, 3, 2, 3, 2, 1].___(2) = [1, 2, 2, 3, 2, 1]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will print([1, 2, 3, 2, 3, 2, 1].remove(2)) print?

[1, 3, 2, 3, 2, 1]

[1, 2, 2, 3, 2, 1]

[1, 3, 3, 1]

None

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?