Search Header Logo

Lesson 34 - Math & OS module

Authored by NotchUp .co

Professional Development, Education

5th - 8th Grade

Used 15+ times

Lesson 34 - Math & OS module
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Random module is which type of module ?

External

inbuilt

both

none

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The function in random used to generate random number within a range and step is ?

randint()

randrange()

random()

all of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code ?

L=[1,2,3,4,5]

random.shuffle(L)

print(L)

[1,2,3,4,6]

[6,2,5,4,1]

[4,3,5,2,1]

none

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

he function in OS module to generate current working directory ?

getcwd

getdir()

cwd()

none

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The function in OS module to change the current working directory ?

chgdir()

chdir()

changedirectory()

none

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The module which makes some system changes is -

random

os

datetime

none

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to find squareroot of the given number in math module ?

sqrt()

root()

squareroot()

none

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?

Discover more resources for Professional Development