Search Header Logo

failure

Authored by Phương Anh Nguyễn Thị

Mathematics

2nd Grade

failure
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

61 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The number of arguments that can be passed to a function is

1

1 or more

0

0 or more

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The two types of functions used in Pythons are

System function

User function and system call

Builts-in and user-defined         

Custom function and user function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The variable defined outside the function is referred as

automatic        

register

global

static

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The default arguments specified in the function header is an

Identifier followed by an #

Identifier followed by the default value within back-ticks

Identifier followed by the default value within []

Identifier followed by an = and the default value

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the output of the following program

Pi = 3.14

Def tt_hinh_non(bk =10, h = 10):

            Print(pi*bk*bk*k)

Print(tt_hinh_non(5,5))

a.      The variable pi is placed outside the function

a.      The arguments are not the same as the default parameter

a.      Two nested print() statements

a.      The function don’t have a return statement

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Guess the value of x with the below code:

Import math

X = math.sqrt(36)

6.0

6

-6

error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A local variable in Python is a variable that is

Defined inside every function

Local to the given program

Accessible from within the function

All of these

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?