Search Header Logo

PP_Week4_Batch1

Authored by Narasimha Reddy Soora

Computers

Professional Development

Used 2+ times

PP_Week4_Batch1
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

45 sec • 1 pt

Media Image

Analyze the given code block to find it's output

Emma 20

Emma, 20

Emma, 25

Emma 25

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Analyze the code block to find it's output

15

Error

5 + 10

(5, 10)

3.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Media Image

Given the following function fun1() you are expected to select all correct function calls

  1. fun1("CSM", age=19)

fun1(age=19, name="CSM")

  • fun1(name="CSM", 23)

  • fun1(age =23, "CSM")

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Analyze the given python code block to find output of the display_person() function call

  • TypeError

  • Emma
    25

  • name
    age

None of the options given

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Analyze the given python code block to find it's output. (Hint: Two return statements in function definition)

  • 5

15

  • (5, 10)

  • Syntax Error

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

Analyze the given code to find it's output.

7.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Suppose a function f1() is defined in a module called M1.py. Which of the following code snippets correctly show how to import and use the f1() function? Select all that apply.

from M1 import f1

print(f1())

from M1 import f1

print(M1.f1())

import f1 from M1

print(f1())

import M1

print(M1.f1())

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?