Variables and Operators
Circuits and Booleans
Python Code
Algorithm Efficiency
Base Conversions
100

A variable of whole numbers

Integer (Int)

100

Operator that reverses the value of a boolean

Not

100
The function that returns the highest value in a list

max()

100
Using solutions that are concise or unobvious.

What is Elegance?

100

2+7 in Binary

10+111=1001

200

The operator that return the remainder if the two numbers either side of it were divided.

Modulus (Mod/%)

200

The output of (T and F or T)

True

200

What will be the value of i when the following stops looping?

S=piddinpapodool

L=addromatchinus

i=0

while(S[i]!='d' and L[i]!='i'):

      i=i+1

i=10

200

The order of efficiency that Selection Search is

Order(N)

200

15 in Hex

F

300

The markers at the beginning and end of a value that denote it as a string

quotes (' ' or " ")

300

The output of Not((T and T) or F and Not T)

False

300

In what case would a program do the steps under the elif tag?

The conditional(s) of the primary if and any preceding elifs are False, and its conditonal is True.

300

A piece of code's ability to be understood by programmers that aren't its author.

Readability/Ease of Understanding

300

1101101 in Decimal

109

400

A category of variables that hold multiple values.

Sequence types

400

The physical difference between AND and OR circuits

AND Circuits have one pathway with 2 gates, OR circuits have 2 pathways, each with 1 gate.

400

What is the following function doing?

def function(B,e):

       t=0

       for i in str:

           t= t+str(B)[i]**e

       return(t)

The function takes each digit of a number B, takes it to the power of e, and adds them all together.
400

The search algorithm that will find the number 5 in an ordered list of 0 to 100 first.

Selection Search

400

24 in hex and binary

16/10110

500

A sequence variable that can be changed

List

500

The Circuit of Not((a and b) or Not((a or c) and (b and c)))

I can't upload an image without paying, but I'll check your work.

500

What will return from the following statement?

age=input('Please input age:')

if (age%2=0):

      age = age**2

return(age)

It will return an error, for 2 reasons. Without any conversion, values from input() are strings, and as such cannot be numerically manipulated. An assignment tag(=) was also used in the if conditional instead of an equals tag(==)

500

The graph of Order(n^2) as compared to Order(n)

Order(n) is linear, Order(n^2) is a parabola that starts less efficient than Order(n), but as n grows, it becomes more efficient.

500

3B1 in Decimal

780

M
e
n
u