0% found this document useful (0 votes)
7 views

class 8 comp mid exam

Uploaded by

hamza Shahid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

class 8 comp mid exam

Uploaded by

hamza Shahid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Angels International College

Mid-Year Exam, 2024


Subject: Computer Science
VIII

Name: ______________________________ Section: _____________ Date: ________________

Time Allowed: Total Marks:

FOR EXAMINER’S USE


READ THESE INSTRUCTIONS FIRST
Question Max. Marks
Candidates must answer all questions on the Question Number Marks Obtained
Paper.
Write in dark blue or black pen.
You may use lead pencil for diagrams, graphs, or rough
work.
Do not use staples, paper clips, highlighters and glue or
correction fluid.
Calculator is not allowed.
At the end of the examination, fasten all your work securely
together.

Total

Percentage

Grade

AIC Mid-Year Exam, 2024 Page 1


_______________________ ______________________

Checked by Rechecked by

Fill in the Blanks (5 marks)


Switch, Ping, parity bits, OR, AND, MAR, PC, parity bytes.

1. A __________ is a type of utility software that checks the connectivity of a network.


2. A __________ works by forwarding data packets between different network segments.
3. The process of checking and correcting errors in transmitted data using an extra bit is called
__________.
4. In the __________ operation, the output is true only if at least one of the inputs is true.
5. The __________ is responsible for fetching instructions for the next task.

Section B:

1. Describe how a chatbot collects and processes data to respond to a user's query. Provide one example of
a chatbot application.

_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________

2. Explain the role of TCP/IP in networking. Why is it essential for communication between devices on
the internet?

_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________

3. In a star topology, all devices are connected to a central switch. Describe the basic architecture of a star
topology and explain how it differs from a ring topology.

_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________

4. Write an algorithm to print multiplication table of a given number by using count controlled loop.

_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
AIC Mid-Year Exam, 2024 Page 2
5. Create Trace Table for the Algorithms below
For x in range (1,6):
Print(x*2)
N=3
Print N
For I from 1 to 3:
N=N+5
Print N

6. Explain how the algorithm uses iteration to calculate the sum.

Input n
total = 0
For i = 1 to n
total = total + i
End For
Display "The total sum is: " + total

_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
AIC Mid-Year Exam, 2024 Page 3
Given Boolean Expression:
(A AND B) OR (NOT C)

1. Draw the circuit diagram for the simplified expression using AND, OR, and NOT gates.
2. Construct the truth table for the given Boolean expression (A AND B) OR (NOT C).

_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________

AIC Mid-Year Exam, 2024 Page 4

You might also like