PYTHON-MCQ

Quiz
•
Mathematics
•
University
•
Medium
Senthil R
Used 4+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used for function in Python language?
Function
Fun
Define
def
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a mutable data type in Python?
String
Integer
List
Tuple
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following functions is a built-in function in python?
factorial()
print()
seed()
sqrt()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python expression if x=56.236?
print("%.2f"%x)
56.236
56.23
56.00
56.24
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
len(["hello",2, 4, 6])
error
6
4
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
print("abc. DEF".capitalize())
Abc. def
abc. def
Abc. Def
ABC. DEF
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
>>>list1 = [1, 3]
>>>list2 = list1
>>>list1[0] = 4
>>>print(list2)
[1, 4]
[1, 3, 4]
[4, 3]
[1, 3]
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
ÔN TIN GK 2

Quiz
•
University
15 questions
Python

Quiz
•
University
15 questions
Ohio Algebra EOC Practice

Quiz
•
9th Grade - University
20 questions
Equations/Inequalities Quiz

Quiz
•
9th Grade - University
20 questions
Solving Inequalities with Negative Numbers

Quiz
•
9th Grade - University
15 questions
Solving Problems with Inequalities

Quiz
•
9th Grade - University
20 questions
Quiz-1

Quiz
•
University - Professi...
25 questions
ADP KUIS 4

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade