Day 3 Python Quiz List and dictionaries

Day 3 Python Quiz List and dictionaries

University

10 Qs

quiz-placeholder

Similar activities

PECUTAN AKHIR P.AM P1 SET 22

PECUTAN AKHIR P.AM P1 SET 22

University

15 Qs

PECUTAN AKHIR P.AM P1 SET 30

PECUTAN AKHIR P.AM P1 SET 30

University

15 Qs

STPM 2013 P3(U)

STPM 2013 P3(U)

University

15 Qs

六年级历史单元一

六年级历史单元一

1st Grade - University

8 Qs

六年级 数学 第一课 整数与运算(1)

六年级 数学 第一课 整数与运算(1)

KG - Professional Development

10 Qs

Round 1-PixelQuest

Round 1-PixelQuest

University

10 Qs

PECUTAN AKHIR P1 P.AM SET 15

PECUTAN AKHIR P1 P.AM SET 15

University

15 Qs

INTERPRETAÇÃO DO LIVRO DOM CASMURRO - QUIZ

INTERPRETAÇÃO DO LIVRO DOM CASMURRO - QUIZ

2nd Grade - University

11 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?