Skill #6 - Modules Python

Skill #6 - Modules Python

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

Digital Design S2 Unit 3 QUIZ review

Digital Design S2 Unit 3 QUIZ review

9th - 12th Grade

13 Qs

Technoloogy

Technoloogy

10th - 12th Grade

10 Qs

Excel Vocab

Excel Vocab

8th - 10th Grade

12 Qs

Engineering Design Process

Engineering Design Process

8th - 10th Grade

8 Qs

Cuerpo humano

Cuerpo humano

7th - 9th Grade

7 Qs

SETTING-UP COMPUTER SERVERS

SETTING-UP COMPUTER SERVERS

12th Grade

10 Qs

Latihan X PPLG

Latihan X PPLG

10th Grade

10 Qs

INFORMATIKA C2

INFORMATIKA C2

9th Grade

10 Qs

Skill #6 - Modules Python

Skill #6 - Modules Python

Assessment

Quiz

Instructional Technology

9th - 12th Grade

Practice Problem

Medium

Created by

Marissa Montes

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

9 questions

Show all answers

1.

DROPDOWN QUESTION

2 mins • 1 pt

You want to create a code that will show the full name of the current month:

​ (a)  

TD = ​ (b)  

print(%B(TD,​ (c)   ))

import datetime
datetime.datetime.strftime
datetime.date.today()
import time
import date
datetime.today()
today()
datetime.time
%M

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Our program begins with the following line.

result = 5**6

Which code can replace it?

result = math.exp(5,6)

result= math.pow(5,6)

import math

result = math.pow(5,6)

result = pow(5,6)

import math

result = math.exp(5,6)

3.

DRAG AND DROP QUESTION

1 min • 1 pt

What those the following modules do?

os.path -> ​ (a)  

sys - > ​ (b)  

os -> ​ (c)  

math - > ​ (d)  

datetime -> ​ ​ (e)  

find files and folders
display system info
create folders
use mathematical functions
use date and time functions

4.

DROPDOWN QUESTION

1 min • 1 pt

We have defines a list using the following code:

a = [16,44,3,87,23,98,1]

Select the proper functions to fill the equations:

​ (a)   (a) = 272

​ (b)   (a) = 1

​ (c)   (a)=98

sum
min
max
mean
median
average

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are writing program that will use a lot of math functions. Which is the proper way to import all of them to avoid typing the name of the library (math) before calling each one?

from math import all

import math.*

from math import *

import math.all

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Select the output that could be generated by the following code:

import random

print(format(random.random(),"1.2f"))

5.65

0.2356

0.99

14.3

0.00

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

You want your code to generate a random integer number larger or equal to 1 and smaller or equal to 25. Select the lines that can complete the code.

random.randint(1,25)

random.randint(1,26)

random.randrange(1,26)

random.randrange(1,25)

int(random.random()*25)

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?