List with tuple

List with tuple

12th Grade

10 Qs

quiz-placeholder

Similar activities

Soal Ujian Komputer

Soal Ujian Komputer

10th - 12th Grade

10 Qs

HTML -znaczniki 1

HTML -znaczniki 1

7th Grade - University

15 Qs

Sains Komputer Tingkatan 5: Bahasa Penskripan

Sains Komputer Tingkatan 5: Bahasa Penskripan

1st - 12th Grade

10 Qs

Intro to Computer Programming

Intro to Computer Programming

9th - 12th Grade

14 Qs

What is a program slides(6:16)

What is a program slides(6:16)

8th - 12th Grade

10 Qs

Bài tập trắc nghiệm C++(tiếp)

Bài tập trắc nghiệm C++(tiếp)

3rd Grade - University

10 Qs

Java: repetition control structure for & while

Java: repetition control structure for & while

10th - 12th Grade

10 Qs

Linux-2 Quiz 2 -- LAMP

Linux-2 Quiz 2 -- LAMP

1st - 12th Grade

15 Qs

List with tuple

List with tuple

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Kelzang Lethro

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the best description of a list in Python?

A list is a collection of data that has an order and can be changed

A list is a lot of variables

A list is used for shopping

A list is a collection of data that cannot hold duplicated data and cannot be changed

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct code for creating a list of names?

nameList = John, Harry, Jesse, John, Harry, Harry

nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList = [John, Harry, Jesse, John, Harry, Harry]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would this code show on the screen?

7

6

5

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For tuples and list which is correct?

List and tuples both are mutable.

List is mutable whereas tuples are immutable.

List and tuples both are immutable.

List is immutable whereas tuples are mutable

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is a correctly declared tuple?

a = ("orange", "yellow", "red")

a = "orange", "yellow", "red"

a = "orangeyellowred"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If list1=[17,23,41,10]

then list1.append(32) will result in:

[32,17,23,41,10]

[17,23,41,10,32]

[10,17,23,32,41]

[41,32,23,17,10]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would the following code print?

[3, 2, 1]

[2, 0, 2]

[2, 2, 2]

[2, 2, 1]

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers