Ch. 10 Exam Review

Ch. 10 Exam Review

8th Grade

20 Qs

quiz-placeholder

Similar activities

Educational Video Creation Quiz

Educational Video Creation Quiz

8th Grade

20 Qs

Exploring Career Paths in CTE

Exploring Career Paths in CTE

8th Grade

25 Qs

BAB I BERPIKIR KOMPUTASIONAL KELAS 8

BAB I BERPIKIR KOMPUTASIONAL KELAS 8

8th Grade

15 Qs

Quiz 3. Struktur Data

Quiz 3. Struktur Data

8th Grade - University

15 Qs

AI Workshop Quiz

AI Workshop Quiz

8th Grade

15 Qs

AI and Machine Learning Quiz - Meet 1

AI and Machine Learning Quiz - Meet 1

8th Grade

20 Qs

Python Syntax and Logic Quiz

Python Syntax and Logic Quiz

8th Grade

24 Qs

Types of Memory in a Computer

Types of Memory in a Computer

8th Grade

19 Qs

Ch. 10 Exam Review

Ch. 10 Exam Review

Assessment

Quiz

Information Technology (IT)

8th Grade

Easy

Created by

Ashley Brown

Used 20+ times

FREE Resource

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)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?