Search Header Logo

Ch. 10 Exam Review

Authored by Ashley Brown

Information Technology (IT)

8th Grade

Used 41+ times

Ch. 10 Exam Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A collection of useful functions is commonly called a _______________.

library
set
group
node

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where can programmers find Python API documentation?

Only in printed books you must purchase

Freely available at Python's website

Only in secured online locations needing a paid subscription to access

You must look at the internal Python source code to figure out how things work

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Using built-in Python modules forces a programmer to re-create functions to handle common tasks.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements will let you use the random library functions in your code?

import random

use random

random.randrange()

rand

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes the output from the following function call?

rand = random.randrange(10,15)

A random integer in the range 10 up to (and including) 15

A random floating point value from 10.0 up through and including 15.0

A random integer from 10 up to (but not including) 15

A random integer from 0 up to (but not including) 5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What can you confidently say about the following code?

random.seed(1)

print(random.randrange(0,10))

The first random number produced will always be 1

It will produce a random integer from 0 up through (but not including) 10

It will produce a random integer from 0 up through (and including) 10

It will print exactly the same value each time the code is run

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given a list named "mystery", which of the following expressions will return a random element in that list?

mystery.choice()

mystery.random()

random(mystery)

random.choice(mystery)

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?