PP_Lab_ESE_Batch1_Quiz_2023_24

PP_Lab_ESE_Batch1_Quiz_2023_24

University

10 Qs

quiz-placeholder

Similar activities

Lets explore Java

Lets explore Java

University

14 Qs

Q3 - Info Vis

Q3 - Info Vis

University

12 Qs

Quiz 10

Quiz 10

University

10 Qs

MS Core Java Quiz-2 2023

MS Core Java Quiz-2 2023

University

12 Qs

Java Class vocabulary

Java Class vocabulary

9th Grade - University

12 Qs

CPP Quiz 5

CPP Quiz 5

University

10 Qs

Python Quiz 1.6

Python Quiz 1.6

University

12 Qs

Arrays

Arrays

KG - University

10 Qs

PP_Lab_ESE_Batch1_Quiz_2023_24

PP_Lab_ESE_Batch1_Quiz_2023_24

Assessment

Quiz

Computers

University

Medium

Created by

Narasimha Reddy Soora

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?