1) What will be the output of the following Python code?
def fn(var1):
var1.pop(1)
var1=[1,2,3]
fn(var1)
print(var1)
Technical Training III_B
Quiz
•
Science
•
1st Grade
•
Hard
Dev Kiran
Used 1+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1) What will be the output of the following Python code?
def fn(var1):
var1.pop(1)
var1=[1,2,3]
fn(var1)
print(var1)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1) What will be the output of the following Python code?
def fn(var1):
var1.append(4)
var1=[1,2,3]
fn(var1)
print(var1)
[1, 2, 3, 4]
[1, 2, 3]
[1, 2, 4]
[1, 3, 4]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2) What is the output of the following Python code?
def func(a, b):
return a * b
result = func(3, 4)
print(result)
12
7
34
None
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3) What will be the output of the following Python code?
def square(x):
return x ** 2
result = square(5)
print(result)
10
25
5
15
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following function convert an integer to an Unicode character in python?
ord(x)
unichr(x)
hex(x)
char()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
'A' + 'B' if '12'.isdigit() else 'X' + 'Y'
A+B
X+Y
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is correctly evaluated for this function?
pow(x,y,z)
27 questions
Spring data
Quiz
•
1st Grade
25 questions
Оғыз мемлекеті
Quiz
•
1st - 3rd Grade
25 questions
Sources of Light
Quiz
•
1st - 3rd Grade
27 questions
1° ANO BIOLOGIA SE LIGA 2° TRIMESTRE
Quiz
•
1st Grade
25 questions
STEM QUIZ 4
Quiz
•
1st - 8th Grade
25 questions
STATITIKA DASAR
Quiz
•
1st - 10th Grade
27 questions
try to guess
Quiz
•
KG - Professional Dev...
30 questions
KUIZ PENGETAHUAN AM SAINS
Quiz
•
1st - 3rd Grade
20 questions
math review
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions
Interactive video
•
6th - 8th Grade
19 questions
Math Review
Quiz
•
3rd Grade
45 questions
7th Grade Math EOG Review
Quiz
•
7th Grade