Not an actual Christmas song, but played this time of year.
What is Hallelujah?
This assembly command copies the contents of the register to a memory cell.
What is STORE?
This key word is used before all function definitions.
What is def ?
The value of R after the following command is executed:
SUBTRACT 9
When R: 15 CCR: 010 #9: 2000 #10 44
What is -1985?
Increasing the amplitude of a sound does this.
What is gets louder?
This type of memory is volatile.
What is RAM?
This assembly command modifies the CCR.
What is COMPARE?
Every function must include these three things.
What are def, parentheses and colon?
These assembly language command(s) can change the program counter.
What is JUMP, JUMPGT, JUMPLT, JUMPEQ?
Increasing the frequency of a sound does this.
What is increases (or higher) pitch?
A megabyte is equivalent to this many bytes.
What are 1,048,576 bytes?
The language actually executed by the central processing unit of a computer?
What is machine language?
When this is placed at the end of one line of a Python program, the following line must be indented.
What is : (colon)?
The value of R after the following command is executed:
STORE 9
When R: 15 CCR: 010 #9: 2000 #10: 44
What is 15?
If a function is used as follows:
x = funName(x, y, z)
We know this about the last line of the function
What is has a return.
When determining access time, this is the time to move r/w head over specified track.
What is the seek time?
This is how the Python code can be written in assembly:
z = x – z + (y – w)
What is ?
LOAD X
SUBTRACT Z
ADD Y
SUBTRACT W
STORE Z
The command below generates this list of random numbers.
num1 = random.randint(6,10)
What is 6, 7, 8, 9?
The value of CCR after the following command is executed:
COMPARE 9
When R: 15 CCR: 010 #9: 2000 #10: 44
What is 100?
This copies one sound (m) into the middle of another sound (s).
copy(m, s, getLength(s)//2)
This time is computed as the time for 1 revolution of disk / number of sectors.
What is the transfer time?
The interpretation of the instruction:
0011000000001111
What is add the contents of memory address 15 to the contents of the Register?
What does this function do?
def something (x, y):
for s in range(0, getLength(x)):
value = getSampleValueAt (x, s)
setSampleValueAt (x, s, value * y)
What is increases the sound by y amount?
The Python equivalent to the following assembly language:
0 LOAD a
1 COMPARE b
2 JUMPGT 8
3 JUMPEQ 8
4 JUMPLT 5
5 LOAD a
6 STORE c
7 JUMP 11
8 LOAD c
9 SUBTRACT a
10 STORE a
11 INCREMENT b
12 HALT
What is…
if b < a:
c=a
else:
a = c - a
b = b + 1
This is the process of breaking a problem down into subproblems. Then each subproblem is divided into subproblems again. Repeats until simple enough to solve.
What is a top-down programming?