Friday, September 26, 2025

Solved Machhapuchchhre IB World School Kusunti, Lalitpur SECOND TERMINAL EXAMINATION 2082 – COMPUTER SCIENCE – Grade IX

 


Solved Machhapuchchhre IB World School

Kusunti, Lalitpur

SECOND TERMINAL EXAMINATION 2082 – COMPUTER SCIENCE – Grade IX

Attempt all questions.

 

Group A (10 Marks)

1.      Which of the following is volatile memory?

      a. Hard Disk                                   b. RAM

      c. ROM                                          d. Flash Drive

 

2.      Which of the following software helps the computer to manage its hardware and provides a platform for application programs?

      a. Application Software                   b. Utility Software

      c. System Software                         d. Antivirus Software

 

3.      Which of the following statements about the CPU is correct?

      a. It stores data permanently

      b. It processes instructions and manages data flow

      c. It only handles input operations

      d. It is used to connect external devices

 

4.      Which of the following blocks is used to repeat an action multiple times in PictoBlox?

      a. forever                                        b. repeat 10 times

      c. if-else                                          d. When green flag clicked

 

5.      On a breadboard, the long vertical lines (power rails) are usually used for:

      a. Placing resistors only

      b. Connecting sensors

      c. Providing + and – power supply across the board

      d. Connecting Arduino pins directly

 

6.      What is the primary purpose of a firewall in network security?

      a. To detect and remove malware from infected devices

      b. To monitor and control incoming and outgoing network traffic

      based on security rules

      c. To encrypt sensitive data transmitted over the internet

      d. To create secure passwords for user accounts

 

 

 

7.      Which HTML tag is used to create a hyperlink?

      a. <a>                                 b. <link>

      c. <hyperlink>                    d. <href>

 

8.      What is the purpose of the <head> section in an HTML document?

      a. To define the main content of the webpage

      b. To include images and videos

      c. To define metadata and links to scripts and stylesheets

      d. To display content on the webpage

 

9.      Which of the following is used to display output in Python?

      a. input()

      b. display()

      c. print()

      d. output()

 

10.   What will be the output of the following code?

a = 15

b = 4

print(a % b)

      a. 3                         b. 4

      c. 11                       d. 15

 

 

Group ‘B' (20 Marks)

Answer the following questions in one sentence:                      (10X2=20)

Short Answer Questions

11.   Explain the role of the Central Processing Unit (CPU) in a computer system.

Answer:

The role of CPU is to receive data from the input unit, processes instructions, and sends results to the output unit.

It performs calculations, logical operations, and decision-making tasks essential for running programs and managing system operations.

 

12.   A student wants to print a document, listen to music, and play a game. Identify one input device and one output device for each task.

      Answer:

      Printing a document:

·        Input device: Keyboard (used to type the document)

·        Output device: Printer (used to print the document)

·         

      Listening to music:

·        Input device: Microphone (if the music is being recorded or created)

·        Output device: Speakers (used to listen to the music)

 

·        Playing a game:

·        Input device: Mouse (used for interaction)

·        Output device: Monitor (displays the game)

 

13.   Convert as indicated:

a. (11011)₂ into decimal

b. (BAD)₆ into octal

14. Perform the binary operations as indicated

a. (1100)₂ + (1111)₂ x (10)

     

b. (1100011)₂ / (111)₂

 

 

15.   Rewrite the Python program after correcting the errors:

# To display even numbers from 1 to 10

print("Even number")

for i in range(1, 10):

    if i % 2 == 0:

        print(a)

 

Debugged Program

# To display even numbers from 1 to 10

print("Even numbers:")

for i in range(1, 11):  # Range should go up to 10 (inclusive)

    if i % 2 == 0:

        print(i)  # Print 'i' instead of 'a'

 

 

16.   Explain in brief the applications of Arduino.

      Answer:

Arduino is an open-source platform used for building digital devices and interactive objects. It is widely used in robotics, automation, home appliances, and education. Applications include controlling sensors, lights, motors, and more.

 

 

 

 

17.   Create a table having two rows and two columns and a paragraph using HTML tags on the topic "Nepal’s current situation".

Answer:

<body>

<table border="1">

  <tr>

    <td>Political Situation</td>

    <td>Economic Challenges</td>

  </tr>

  <tr>

    <td>Transitioning governments</td>

    <td>Growing debt and inflation</td>

  </tr>

</table>

<p>Despite challenges, Nepal is progressing towards economic and political stability.</p>

</body>

 

18.   Study the following Python code and answer the following questions:

c = 1

while c <= 20:

    print("Machhapuchhre School")

    c = c + 1

 

a. List the operators used in the program.

      Answer: <=, =, +

b. What is the purpose of the above program?

Answer: The program prints "Machhapuchhre School" 20 times using a while loop.

 

19.   Find the output of the given program by using dry run table:

total = 0

for i in range(2, 21, 2):

    total += i

print("Final sum =", total)

 

Answer: The program calculates the sum of all even numbers between 2 and 20.

The dry run table:

i

total (sum)

2

2

4

6

6

12

8

20

10

30

12

42

14

56

16

72

18

90

20

110

 

Final sum = 110

 

20. Write a Python program to input the length and breadth of a rectangle and find its perimeter.

 

length = float(input("Enter the length of the rectangle: "))

breadth = float(input("Enter the breadth of the rectangle: "))

perimeter = 2 * (length + breadth)

print("The perimeter of the rectangle is:", perimeter)

 

 

Group C (20 Marks)

21.   Define computer hardware? List any two hardware used in daily life along their functions.

      Answer:

Computer Hardware refers to the physical components of a computer system or any electronic device. It includes all the tangible parts that you can touch and see, such as the computer's central processing unit (CPU), keyboard, monitor, hard drive, motherboard, and peripherals like printers and speakers.

      Examples:

A monitor, also called a Visual Display Unit (VDU), is the most common output device of a computer. It displays processed data as text, images, graphics, and videos on the screen. The output seen on a monitor is known as a soft copy because it is temporary and can only be viewed on screen.

A keyboard is the most common input device used to enter text, numbers, symbols, and commands into a computer. Most common layout = QWERTY (named after first six keys on top row). A standard keyboard has 104 keys (more in multimedia keyboards), grouped into alphabet keys, numeric keys, cursor movement keys, function keys, and special purpose keys

 

 

22.   Study the given script carefully and answer the following questions:

 

 


 

 

·        a. How many steps does the sprite move each time inside the loop?

            Answer: 5 steps.

·        b. Why is the wait 0.1 seconds block important in this code?

Answer: It ensures that the sprite doesn’t move too fast and allows us to see its movement.

·        c. What change would you make to gradually increase the speed of the sprite after each bounce?

Answer: You could decrease the wait time or increase the number of steps after each bounce.

·        d. Why is the forever loop used instead of a repeat loop in this program?

Answer: The forever loop allows the sprite to continuously repeat the action without stopping, which is ideal for this scenario.

 

23.   Discuss the importance of practicing good digital citizenship in online interactions. Provide at least two examples of responsible online behavior and explain how they contribute to a safer and more respectful digital community.

      Answer:

Practicing good digital citizenship means using the internet responsibly and respectfully. It helps keep online spaces safe and friendly for everyone.

Importance:

1.      Respect: Good digital citizenship helps create respectful online communities where everyone feels safe.

2.      Prevention of Harm: It reduces online bullying, spreading false information, and protects privacy.

Examples:

1.      Respecting Privacy: Don't share others' personal information or pictures without permission. This keeps everyone’s information safe.

2.      Being Kind in Discussions: Engage in polite and respectful conversations, even when you disagree. This helps create a positive and welcoming environment online.

 

 


 

 

<html>

<head>

    <title>Cricket Club Registration Form</title>

</head>

<body>

    <h2>Cricket Club Registration Form</h2>

    <form action="#" method="POST">

        Full Name:<br>

        <input type="text" name="full-name" required><br><br>

 

        Age:<br>

        <input type="number" name="age" required><br><br>

 

        Date of Birth:<br>

        <input type="date" name="dob" required><br><br>

 

        Gender:<br>

        <input type="radio" name="gender" value="Male" required> Male

        <input type="radio" name="gender" value="Female" required> Female

        <input type="radio" name="gender" value="Other" required> Other<br><br>

 

        Contact Number:<br>

        <input type="tel" name="contact-number" required><br><br>

 

        Email:<br>

        <input type="email" name="email" required><br><br>

 

        Playing Role:<br>

        <select name="playing-role">

            <option value="Batsman">Batsman</option>

            <option value="Bowler">Bowler</option>

            <option value="Allrounder">Allrounder</option>

        </select><br><br>

 

        Experience Level:<br>

        <input type="radio" name="experience-level" value="Beginner"> Beginner

        <input type="radio" name="experience-level" value="Intermediate"> Intermediate

        <input type="radio" name="experience-level" value="Advanced"> Advanced<br><br>

 

        Address:<br>

        <textarea name="address" rows="4" cols="50" required></textarea><br><br>

 

        <input type="submit" value="Register">

        <input type="reset" value="Clear">

    </form>

</body>

</html>

 

25. Python program that calculates the factorial

# Ask the user to input a number

num = int(input("Enter a number: "))

 

# Check if the number is even

if num % 2 == 0:

    # Calculate the factorial manually

    factorial = 1

    for i in range(1, num + 1):

        factorial *= i

    print(f"The factorial of {num} is {factorial}")

else:

    print("The number is odd, so the factorial will not be calculated.")

 

 

 

 

?ÿ@

 

No comments:

Post a Comment