Which of the following will create an empty list-L?

Grade XI Full Syllabus Quiz

Quiz
•
Computers
•
11th Grade
•
Medium
Mirza Baig
Used 5+ times
FREE Resource
75 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
L={}
L[ ]
L=[ ]
L={ ]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Keys of a dictionary must be:
Similar
Unique
Can be similar or unique
All of these
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To create an empty dictionary –d1, we use the statement as:
d1={}
d1=[ ]
d1=()
d1={ )
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following: List1=[‘S’,’P’,’S’,’GHY’] The length of the above list is:
6
5
4
None of these
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following list: list1 =['Red','Green','Blue','Cyan','Magenta','Yellow','Black'] print(list1[1:6:2]) The output is-
['Red', 'Blue', 'Magenta']
['Green', 'Cyan', 'Yellow']
['Green', 'Cyan', 'Yellow',’Black’]
['Red', 'Blue', 'Magenta’,’Black’]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write the output of the following code : L=[1,2,3,4,5,[6,7,8]] print(L[5])
[6, 7, 8]
6, 7, 8
Error
6
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write the output of the following code : L=[‘w’,’e’,’l’,’c’,’o’,’m’,’e’] print(len(L))
7
8
9
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
75 questions
LONG TEST IN ETECH (ICT, ONLINE SAFETFY, WORD, EXCEL)

Quiz
•
11th Grade
70 questions
Python Programming Quiz

Quiz
•
9th - 12th Grade
76 questions
Quiz di Sicurezza Informatica

Quiz
•
9th Grade - University
76 questions
2.2 Programming Techniques

Quiz
•
10th - 12th Grade
80 questions
Ôn tập tin học hk2

Quiz
•
9th - 12th Grade
72 questions
Python Basics

Quiz
•
9th - 12th Grade
72 questions
7-кл, Python тілінде алгоритмдерді программалау

Quiz
•
11th Grade
75 questions
APCS Principles Practice Exam

Quiz
•
8th Grade - University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade