Professional Documents
Culture Documents
GR 8 Computer Science Semester 2 1st Monthly Test Practical
GR 8 Computer Science Semester 2 1st Monthly Test Practical
First Test-Semester 2
February, SY 2022-2023
Grade 8 Subject Computer Science
TIME: 80 minutes
NAME: DATE:
Instructions:
35
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]