
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
Exploring Portfolio Strategies and Analysis
Quiz
•
University
20 questions
techy quiz
Quiz
•
University
20 questions
DATASET'24 Quizz (Round 1)
Quiz
•
University
20 questions
SMARTICUS
Quiz
•
University
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
20 questions
Web Development and Programming
Quiz
•
University
20 questions
data structures1
Quiz
•
University
20 questions
Week 5: Test your understanding part 1
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
