Professional Documents
Culture Documents
Name: Date:
2. Why doesn’t the CPU get data directly from the computer’s main memory?
print(TSS_Eight[4])
def Line(symbol)
Page 1 of 4
print(symbol * 12)
Line(“@”)
testdata = “Rainbow”
openfile.write(testdata)
What is the name of the text file? If you opened the file what text would you see in the text file?
Marks]
1. Explain the main four parts of the CPU. Show how parts of the CPU fit together with a diagram. [5]
Page 2 of 4
2. Write two examples of Logic statements using AND with truth table for each statement. Also write
two examples of Logic statements using OR with truth table for each statement. [5]
Page 3 of 4
3. Write a program using Condition Controlled Loop. Each time the program loops, the user appends a
name to the list. Then the program asks whether the user want to add another name. [5]
Page 4 of 4