
2nd Year August Quiz
Authored by Anand Bhasme
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a correct variable name in Python?
1variable
variable_1
variable-1
variable#1
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct way to create a list in Python?
mylist = [1, 2, 3]
mylist = (1, 2, 3)
mylist = {1, 2, 3}
mylist = <1, 2, 3>
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
5
10
15
Error
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the print() function do in Python?
Prints data to the console
Saves data to a file
Converts data to a string
Executes data
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of the pass statement in Python?
To terminate a loop
To skip a block of code
To raise an exception
To indicate no action is required
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
[4, 1, 2, 3]
[1, 2, 3, 4]
None
Error
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following methods is used to add an element at a specific index in a list?
append()
insert()
extend()
add()
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?