A variable of whole numbers
Integer (Int)
Operator that reverses the value of a boolean
Not
max()
What is Elegance?
2+7 in Binary
10+111=1001
The operator that return the remainder if the two numbers either side of it were divided.
Modulus (Mod/%)
The output of (T and F or T)
True
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
The order of efficiency that Selection Search is
Order(N)
15 in Hex
F
The markers at the beginning and end of a value that denote it as a string
quotes (' ' or " ")
The output of Not((T and T) or F and Not T)
False
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.
A piece of code's ability to be understood by programmers that aren't its author.
Readability/Ease of Understanding
1101101 in Decimal
109
A category of variables that hold multiple values.
Sequence types
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.
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 search algorithm that will find the number 5 in an ordered list of 0 to 100 first.
Selection Search
24 in hex and binary
16/10110
A sequence variable that can be changed
List
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.
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(==)
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.
3B1 in Decimal
780