
PP_Lab_ESE_Batch1_Quiz_2023_24
Authored by Narasimha Reddy Soora
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
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Analyze the code given in the figure and find what does the code do?
Takes an input n, computes the multiplication table of n from 1 to 10, and prints each multiplication
Takes an input n, computes the multiplication table of n from 1 to 11, and prints the final product
Takes an input n, computes the multiplication table of n from 1 to 10, and prints the final product
Takes an input n, initializes i to 1, and prints the multiplication of n and i without any loop
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Analyze the given code snippet to find the number of times "KITS Warangal", "KITS", "Warangal" and i printed respectively.
1, 5, 3, 11
(1, 6, 4, 9)
(0, 6, 4, 10)
(1, 5, 4, 10)
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What happens if you try to add a new key-value pair to a dictionary using a key that already exists in the dictionary?
The new value overwrites the existing value
An error is raised as only unique key is allowed in dictionary
The dictionary becomes immutable
The new value is appended to the existing value
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Analyze the given code snippet to find it's output.
22
21
20
19
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
You have given a reference t1 = (1, 2, 3) and what is the result of t1 + (4)?
(1, 2, 3, 4)
(5, 6, 7)
TypeError: can only concatenate tuple (not "int") to tuple
None of the given options
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Identify the expression to access the value 30 for the given list x shown in the figure.
x[2]["bar"]["z"][3]
x["bar"]["z"]
x[2]["bar"]
x[2]["bar"]["z"]
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code snippet.
b = "Hello 4CSM1"
print(b[-5:-2])
4CSM
4CS
o 4CS
4CSM1
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?