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.")

 

 

 

 

?ÿ@

 

Thursday, September 25, 2025

Solved MODEL QUESTION 2082 – COMPUTER SCIENCE – Grade IX

 

Solved MODEL QUESTION 2082 – COMPUTER SCIENCE – Grade IX






Attempt all questions.

Group ‘A'(10 Marks)

Choose the correct answer.                                                      (10x1=10)

 

Group A: Multiple Choice Questions (10 x 1 = 10 marks)

 

1.      Which of the following is the tangible part of a computer?

a. Software                                     b. Freeware      

c. Hardware                                   d. Firmware

 

2.      How many Megabytes are there in 1 Gigabyte?

a. 1024 Megabyte                           b. 1042 Megabyte

c. 2000 Megabyte                            d. 2048 Megabyte

 

3.      Which of the following devices would you use to transfer a file from one computer to another?

a. Hard disk                                    b. Mouse

c. Pen drive                                    d. RAM

 

4.      Which is the character that performs an action on the stage of the Scratch window?

a. Sprite                                         b. Stage

c. Backdrop                                     d. Block

 

5.      Which of the following is an empty tag?

a. <ul>                                            b. <title>

c. <sup>                                         d. <br>

 

6.      Which of the following is the correct syntax for inserting external CSS?

a. <link real="stylesheet" type="text/CSS" href="file.css">

b. <link reel="stylesheet" type="css/text" href="file.css">

c. <link rel="stylesheet" type="text/css" href="css.file">

d. <link rel="stylesheet" type="text/css" href="file.css">

 

7.      What does URL stand for?

a. Unique Resource Location           b. Uniform Resource Locator

c. Universal Reference Link             d. Unified Retrieval Link

 

8.      What advice would you give to a friend who wants to start a blog but doesn't have any ideas?

a. Stop thinking about the blog.

b. Copy content from a similar blog.

c. Write only about your locality.

d. Choose topic and write in own language.

 

9.      Which of the following is an arithmetic operator?

a. >                                     b. **

c. <                                     d. \

 

10.   Why is 3Number an invalid identifier?

a. It has capital N.                                 b. It starts with number.

c. It is a keyword.                                  d. It has only 7 characters.

 

Group ‘B' (20 Marks)

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

 

Group B: Short Answer Questions (10 x 2 = 20 marks)

11.   What are the types of computers based on working principles?

Answer:

a. Analog Computer

b. Digital Computer

c. Hybrid Computer

An analog computer is a type of computer that works with continuous data, like physical quantities that change smoothly over time. It uses measurements of things like temperature or speed.

Example: A thermometer or a speedometer, which give continuous readings.

A digital computer works with data in the form of numbers, typically using binary code (0s and 1s). It is the most common type of computer and can perform a wide range of tasks like calculations, processing text, and running programs.

Example: A personal computer or smartphone.

A hybrid computer combines the features of both analog and digital computers. It can process continuous data (like an analog computer) and also handle digital data for more complex tasks.

Example: A hospital ECG machine that records continuous signals (analog) and displays them digitally.

 

 

 

12.   Write any two differences between impact and non-impact printers.

Answer:

Feature

Impact Printer

Non-Impact Printer

Printing Mechanism

Uses physical contact (pins strike ribbon)

Uses ink spraying (inkjet) or laser technology

Noise

Noisy due to mechanical striking action

Quieter as there is no physical contact

 

13.   Convert (10011)₂ into a decimal number system and (105)₁₀ into an octal number system.

Answer:

o   (10011)₂ = 19₁₀

o   (105)₁₀ = 151₈

 

14.   Perform (1011)₂ - (101)₂ and (1101)₂ + (1100)₂ binary operations.

Answer:

o   (1011)₂ - (101)₂ = 110₂

o   (1101)₂ + (1100)₂ = 11001₂

 

15.   Create a table having two rows and two columns using HTML tags.

Answer:

<table>

  <tr>

    <td>Row 1, Column 1</td>

    <td>Row 1, Column 2</td>

  </tr>

  <tr>

    <td>Row 2, Column 1</td>

    <td>Row 2, Column 2</td>

  </tr>

</table>

 

16.   Define social media. List any two examples of social media platforms.

Answer:

Social media is an online community where people can create, share and interact with content and communicate in real time.

      Examples: Facebook, Instagram

 

 

 

 

17.   What are two major benefits of using a blog in education?

Answer:

      The two major benefits of using a blog in education are:

      Blog enhances the academic writing skill and communication skills.

      Blog promotes collaborative learning.

 

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

      a = 2

      for k in range(1, 8):

          print(a)

          a //= 10

How many times does the loop execute?

      Answer: The loop executes 7 times.

 

List the integer type of variables.

      Answer: a, k

19.   Write the output of the given program and show them in a dry run table.

Answer:

Dry Run:





Output: The final output is 1101.

 

20.   Write a Python program to enter any three numbers and display their average.

Answer:

num1 = float(input("Enter first number"))

num2 = float(input("Enter second number"))

num3 = float(input("Enter third number"))

average = (num1 + num2 + num3) / 3

print(f"The average of {num1}, {num2} and {num3} is {average}")


 

 

 

 

 

Group C: Long Answer Questions (5 x 4 = 20 marks)

 

21.   What is a memory unit? Write any three differences between primary and secondary memories.

Answer:

A memory unit is the part of the computer system used to store data and instructions temporarily or permanently.

Any three differences between primary and secondary memory

Feature

Primary Memory

Secondary Memory

Definition

Memory that stores data temporarily and is directly accessible by the CPU.

Memory used for long-term storage of data.

Speed

Faster (since it is directly connected to the CPU).

Slower (data needs to be fetched from storage devices).

Volatility

Volatile (data is lost when the power is off).

Non-volatile (data is retained even when the power is off).

Example

RAM (Random Access Memory)

Hard drive, SSD (Solid State Drive), CD/DVD

 

 

22.   Arrange the blocks so that the sprite moves to a random position, waits 1 second, and then plays a sound.

Answer:

      The correct order is:

      2. When Green Flag clicked (Event block)

      1. Go to random position (Motion block)

      4. Wait 1 second (Control block)

      3. Start sound Meow (Sound block)

 

23.   Write the HTML code to create the given form.





Answer:

  <form>

        <label for="username">Username:</label>

        <input type="text" id="username" name="username"><br><br>

       

        <label for="password">Password:</label>

        <input type="password" id="password" name="password"><br><br>

       

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

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

    </form>

 

 

 

 

24.   Define cybercrime. Explain any three safe browsing techniques.

Answer:

Cybercrime is illegal activities conducted using computers, the internet, or other digital devices.

      Safe browsing techniques:

v  Avoid suspicious links and websites.

v  Use strong passwords.

v  Keep software and security tools updated.

 

25.   Write a Python program that takes the monthly unit consumption as input and calculates the total bill based on the given criteria.





Answer:

# Input from the user

units_consumed = int(input("Enter the monthly electricity consumption in units: "))

# Initialize the bill variable

bill = 0

# Calculate the total bill based on the given criteria

if units_consumed <= 20:

    bill = 30  # Minimum charge for 0-20 units

elif 21 <= units_consumed <= 45:

    bill = 30 + (units_consumed - 20) * 5  # Rs 5 per unit for 21-45 units

else:

    bill = 30 + (45 - 20) * 5 + (units_consumed - 45) * 7  # Rs 7 per unit for above 45 units

# Output the result

print(f"The total electricity bill for {units_consumed} units is Rs {bill}.")

?ÿ@