Christmas songs
von Neumann
Python
more von Neumann
Potpourri
100

Not an actual Christmas song, but played this time of year. 

What is Hallelujah?

100

This assembly command copies the contents of the register to a memory cell.

What is STORE?

100

This key word is used before all function definitions.

What is def ?

100

The value of R after the following command is executed:
            SUBTRACT 9

When R: 15      CCR: 010     #9: 2000      #10 44

What is -1985?

100

Increasing the amplitude of a sound does this.

What is gets louder?

200

This type of memory is volatile.

What is RAM?

200

This assembly command modifies the CCR.

What is COMPARE?

200

Every function must include these three things.

What are def, parentheses and colon?

200

These assembly language command(s) can change the program counter.

What is JUMP, JUMPGT, JUMPLT, JUMPEQ?

200

Increasing the frequency of a sound does this.

What is increases (or higher) pitch?

300

A megabyte is equivalent to this many bytes.

What are 1,048,576 bytes?

300

The language actually executed by the central processing unit of a computer?

What is machine language?

300

When this is placed at the end of one line of a Python program, the following line must be indented.

What is : (colon)?

300

The value of R after the following command is executed:    
        STORE 9

When R: 15     CCR: 010    #9: 2000    #10: 44

What is 15?

300

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.

400

When determining access time, this is the time to move r/w head over specified track.

What is the seek time?

400

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

400

The command below generates this list of random numbers.
num1 = random.randint(6,10)

What is 6, 7, 8, 9?

400

The value of CCR after the following command is executed:    
        COMPARE 9

When R: 15     CCR: 010    #9: 2000    #10: 44

What is 100?

400

This copies one sound (m) into the middle of another sound (s).


copy(m, s, getLength(s)//2)

500

This time is computed as the time for 1 revolution of disk / number of sectors.

What is the transfer time?

500

The interpretation of the instruction:
0011000000001111

What is add the contents of memory address 15 to the contents of the Register?

500

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?

500

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

500

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?