dic={1:’A’,2:’E’,3:’I’}dic[4]=’O’print(dic)

Python

Quiz
•
Computers
•
Professional Development
•
Hard
Kavya M
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
{1: 'A', 2: 'E', 3: 'I', 4: 'O'}
{1: 'A', 2: 'E', 4: 'O'}
{4: 'O',1: 'A', 2: 'E'}
Error
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code?
list1=[‘a’,’b’,’g’,1,5]
print(list1.pop)
5
['a','b','g',1]
['b','g',1,5]
Syntax error
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following cannot be a Python variable name?
Int_1
true
int-23
Int12
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which Statement is correct?
List is mutable and Tuple is immutable
List is immutable and Tuple is mutable
Both are mutable
Both are immutable
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following operators is used to add elements at the end of list?
add()
join()
append()
insert()
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of following Code?
arr=[1,2,3,4,5,6]
arr[::2]
[2,4,6]
[1,3]
[1,3,5]
[3]
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
print(int(3.9))
4
3.90
3
Error
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Mainstream Development Frameworks

Quiz
•
Professional Development
10 questions
CodeTigers Python 101

Quiz
•
KG - Professional Dev...
10 questions
IT ENGLISH: Research Project Topics - Programming Languages

Quiz
•
Professional Development
15 questions
Entrada e Saída de Dados e Variáveis

Quiz
•
Professional Development
15 questions
Scope of Variables in Python

Quiz
•
1st Grade - Professio...
15 questions
Mastering Python Fundamentals

Quiz
•
Professional Development
10 questions
Modelos en Django

Quiz
•
Professional Development
10 questions
PYTHON

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade