Search Header Logo

PP_Lab_ESE_Batch3_Quiz_2023_24

Authored by Narasimha Reddy Soora

Computers

University

Used 1+ times

PP_Lab_ESE_Batch3_Quiz_2023_24
AI

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

Media Image

Analyze the given code to find how many times i value printed, "Fizz" printed, "Buzz" printed and "FizzBuzz" printed respectively.

11, 5, 3, 1

10, 5, 3, 2

11, 4, 3, 2

None of the given options

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Analyze the given recursive function to find what it is doing. Assume L is non-empty list of positive integers

It returns the total number of odd elements in the list L

It returns the total number of even elements in the list L

It returns the sum of the even elements in the list L

It returns sum of the odd elements in the list L

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Analyze the given code to find it's output

1

3

2

None of the options given

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Choose correct options from the given options which will extract all the vowels from a given string using regular expressions

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of below Python code?

tupl=([2,3],"abc",0,9)

tupl[0][1]=1

print(tupl)

([2,3],"abc",0,9)

([1,3],"abc",0,9)

([2,1],"abc",0,9)

Error

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

In the given code block, when line 17 is executed, identify the line number of the method which starts execution from class A.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of the attached python code?

Function name error

Sum finally

Function name error

Sum finally

Function name error

Sum finally

Invocation finally

Invocation name error

Invocation finally

Sum finally

Invocation name error

Invocation finally

Function name error

Sum finally

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?