Day 3 Python Quiz List and dictionaries

Day 3 Python Quiz List and dictionaries

University

10 Qs

quiz-placeholder

Similar activities

Lý thuyết về Python

Lý thuyết về Python

3rd Grade - University

10 Qs

9SNLTW1

9SNLTW1

University

5 Qs

TOEFL Structure (Problems with Subject/Verb Agreement)

TOEFL Structure (Problems with Subject/Verb Agreement)

9th Grade - Professional Development

10 Qs

TOEFL Structure (Problems with Passive Verbs)

TOEFL Structure (Problems with Passive Verbs)

9th Grade - Professional Development

10 Qs

Deaf Culture and Community Chapter 1

Deaf Culture and Community Chapter 1

University

10 Qs

cement

cement

University

10 Qs

Pecutan Akhir Soalan Objektif PA Sem 1 Set10

Pecutan Akhir Soalan Objektif PA Sem 1 Set10

University

15 Qs

TOEFL Structure (Problems with the Form of the Verb)

TOEFL Structure (Problems with the Form of the Verb)

9th Grade - Professional Development

10 Qs

Day 3 Python Quiz List and dictionaries

Day 3 Python Quiz List and dictionaries

Assessment

Quiz

Education

University

Medium

Created by

Oshi Maga

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Which of the following would give an error?
A. list1=[]
B. list1=[]*3
C. list1=[2,8,7]
D. None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. Which of the following commands will create a list?
A. list1 = []
B. list1 = list()
C. list1 = list([1, 2, 3])
D. All of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. What is the output of the following code
A. PYnative
B. zara

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. Which of the following is True regarding lists in Python?
A. Lists are immutable.
B. size(list1) command is used to find the size of lists.
C. Size of the lists must be specified before its initialization
D. Elements of lists are stored in contagious memory location.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. What is the output when we execute list(“hello”)?
A. [‘llo’]
B. [‘hello’]
C. [‘olleh’]
D. [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. Which of the following creates a tuple?
A. tuple1=(5)*2
B. tuple1=("a","b")
C. tuple1[2]=("a","b")
D. None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Which of the following is a Python tuple?
A. {}
B. {1, 2, 3}
C. [1, 2, 3]
D. (1, 2, 3)

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?