
Python - List, Tuples
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Dr.C.P. CSE
Used 3+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following declarations is incorrect in python language?
xyzp = 5,000,000
x y z p = 5000 6000 7000 8000
x,y,z,p = 5000, 6000, 7000, 8000
x_y_z_p = 5,000,000
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
1st_variable
first-variable
first_variable
first variable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements will raise an error in Python?
print('Hello, World!')
if x == 10:
for i in range(5):
print(5/0)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will correctly define a function in Python?
def myFunction():
function myFunction[]:
myFunction() = def:
myFunction: def()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: print(type([]))?
list
array
dict
set
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a built-in data type in Python?
List
Tuple
Dictionary
Character
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: print('Hello' + ' World')?
Hello World
HelloWorld
Hello + World
Error
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Google Quiz
Quiz
•
University
20 questions
9.4.25 Mentoring quiz
Quiz
•
University
20 questions
COA_QUIZ_UNIT I
Quiz
•
University
20 questions
UNIT IV Normalization
Quiz
•
University
20 questions
Data & Signal
Quiz
•
University
20 questions
IT 101 - Quiz 3
Quiz
•
University
20 questions
NACOS Kahoot Session II
Quiz
•
University
20 questions
Quiz 2 : Sistem Informasi Manajemen
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
