You are on page 1of 4

THE SCIENCE SCHOOL

Class Test – Group B

Name: Date:

Subject: Computer Science Class: VIII Section:

Section – I (Short Q/A) [10 Marks]

1. List four main types of memory.

2. Why doesn’t the CPU get data directly from the computer’s main memory?

3. What is machine code?

4. What is the missing word in this logic statement?

Lives is zero player quits THEN game is over.

5. If the input of a NOT gate is 0, what is the output?

6. What command can we use to find the length of a list?

7. Look at this list and then answer the question:

TSS_Eight = [Grey, Blue, Green, Yellow]

If you give this command what would be the output?

print(TSS_Eight[4])

8. Write the command to generate a random number between 50 to 100?

9. This code defines a procedure:

def Line(symbol)

Page 1 of 4
print(symbol * 12)

If you entered this code what the output would be?

Line(“@”)

10. This test refers to this short Python program.

testdata = “Rainbow”

with open(“tss.txt”, “w”) as openfile

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?

Section – II (Long Q/A) [15

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

You might also like