You are on page 1of 2

MIDDLE & HIGH SCHOOL

First Test-Semester 2
February, SY 2022-2023
Grade 8 Subject Computer Science

TIME: 80 minutes

NAME: DATE:

Instructions:

1. Write your name and date on the space provided.


2. Read carefully the instructions given before you answer the question correctly.
3. This is a closed book assessment. You may only refer to the question paper during the
entire duration of assessment.
4. Carry out every instruction in each step.
5. Download necessary resource files from ManageBac for practical test.
(Teachers may modify the instructions according to their subject requirements)

TOTAL MARKS MARKS OBTAINED PERCENTAGE

35

TEACHER'S SIGNATURE Teacher's Comment:

Checked by: Approved by:

Subject Representative Middle & High School Principal

This paper consists of 2 pages including the cover page

1
Practical
A. You are to create programs in Python. Follow the details below.

1. Write a program to accept a number from 1 to 7 and display the name of the
day. Example, when the user inserts number 1 the program will return
Monday, 2 for Tuesday, and so on. [8]
2. Write a program to accept two numbers and mathematical operators (+, -, *, /,
%, ** and //) and perform operation accordingly. [10]
Example:
Enter First Number: 7
Enter Second Number: 9
Enter Operator: +
Your Answer is: 16
3. Using for loop write a program to print first 10 natural number. [8]
4. Using for loop write a program to display months from January-December, but
exclude June. [9]

You might also like