Search Header Logo

Function in Python

Authored by Sỹ Tài

Computers

KG

Used 344+ times

Function in Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

1. What will print?

5

6

1

nothing

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will print?

nothing

7

z

12

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

How many times will Boo print?

3

4

5

none

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will print?

5

6

12

3

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What would the output be from the program shown here? (assuming that the user enters "John" and "Smith"


def printname(firstname, lastname):

name = firstname + " " + lastname

return name

print(printname(Jonh, Smith)

John

Smith

Jonh Smith

Error

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What would the output be for the following program if the user enters 4 and 6?

10

14

16

Error

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Which of the following best describes the order in which these lines are processed in Python?

4, 1, 2

4, 2, 1

1,2 ,3,4

4, 3 ,2, 1

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?