mynums=[10,20,30, 40,50]
print(mynums[-1:-2])
python_4_Vivek
Quiz
•
Computers
•
University
•
Hard
VIVEK PANDEY
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
mynums=[10,20,30, 40,50]
print(mynums[-1:-2])
[]
()
none
0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
r=['True',False]
print(max(r))
True
False
error
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
print(list(str(bool(complex(True)))))
true
True
[True]
['T', 'r', 'u', 'e']
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def calculate(a,b):
c=a+b
d=a-b
return c,d
x,y=calculate(5,3)
print(x,y)
2 8
8 2
error
5,3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def addnos(a,b):
c=a+b
return c
def addnos(a,b,c):
d=a+b+c
return d
print(addnos(10,20))
print(addnos(10,20,30))
30 60
60 30
10 20
TypeError
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def find(*names):
max=0
for s in names:
if len(s)>max:
max=len(s)
return max
print(find("January","February","March",'VIVEK PANDEY'))
7
12
8
5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def show(a,b,c=3,d=4):
print(a,b,c,d)
show(10,20,30,40)
10 20 30 4
10 20 3 40
10 20 3 4
10 20 30 40
15 questions
PROGRAMMING IN PYTHON - UNIT II - TEST 1 MCQS
Quiz
•
University
20 questions
Bertelsmann AI Track Quiz Initiative #3
Quiz
•
University - Professi...
20 questions
Python Programming II CSE A
Quiz
•
12th Grade - University
15 questions
PROGRAMMING IN PYTHON - UNIT II - TEST 2 - MCQS
Quiz
•
University
20 questions
Python Strings
Quiz
•
University
16 questions
Python Basics
Quiz
•
KG - University
15 questions
Scope of Variables in Python
Quiz
•
1st Grade - Professio...
15 questions
Python and PseudoCode Quiz
Quiz
•
10th Grade - University
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade