Unit 2 Vocabs
Unit 2 More Vocabs
Unit 2 - Calculations
RandQuestion
More CS
100

Command that finds the largest value in a set of values.

Max

100

Command that finds the smallest value in a set of values.

Min

100

What is 4 % 3 ?

100

Name 3 New York Football teams?

Giants, Jets, Bills 

100

How many terabytes is in one petabyte of storage? 

1000

200

The process of storing a value in a variable.

Assignment 

200

A module used to create random numbers in programs. The numbers generated are not really random.

Random 

200

What is 15 % 10? 

200

Capital city of Spain?

Madrid 

200

How many possible outcomes can be generated by the following code?

random.randint(3,11)

8

3 -11

300

A symbol that defines a math operation.

Operator 
300

Command that pulls in code to add functions to your code.

Import 

300

What is output?

a = 5

b = 5

print(a + b / a)

6

300

Who was the first person to fly a plane?

Wilbur and Orville Wright


Wright Brothers

300

To input a decimal you need the ____________ function.

float

400

A calculation which gives the remainder of integers which have been divided

Modular Division 

400

Data sets that are too large and complex for traditional data processing applications.

Big Data 

400

What is the output of the following question?

print (7 * 3 - 4 +3**2)

26

400

What country is the world's largest producer of coffee?

Brazil

400

Which value will print?

print(max("cat", "dog", "iguana", "anteater", "fish", "aardvark"))

iguana 

(Alphabetical max) 

500

A collection of commands given a name, for example, input( ).

Function 

500

A collection of code and functions that perform similar tasks.

Module 

500

Consider the following code. What is the output?

a = 3

b = 3

print(a ** b)

27

(3*3*3)

500

Who invented Google?

Sergey Brin and Larry Page

500

What is the bug in the following code?

animal = random.choice(“cat”, “dog”, “fish”, “snake”)

Missing  square brackets [ ]

animal = random.choice([“cat”, “dog”, “fish”, “snake”])

M
e
n
u