0% found this document useful (0 votes)
15 views10 pages

Computer Science Question Bank

The document is an annual assessment question bank for Computer Science for Class VIII at Loyola International School, Qatar, covering topics such as networking, digital citizenship, AI, and Python programming. It includes various question formats like one-word answers, fill in the blanks, true or false, and detailed questions with answers. The content is structured into lessons, providing a comprehensive review of key concepts and terminology in computer science.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views10 pages

Computer Science Question Bank

The document is an annual assessment question bank for Computer Science for Class VIII at Loyola International School, Qatar, covering topics such as networking, digital citizenship, AI, and Python programming. It includes various question formats like one-word answers, fill in the blanks, true or false, and detailed questions with answers. The content is structured into lessons, providing a comprehensive review of key concepts and terminology in computer science.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

LOYOLA INTERNATIONAL SCHOOL, QATAR

Academic Year 2025 – 2026


Annual- Assessment Question Bank-Answerkey
Subject – Computer Science

Name: _________________________ Roll No. _________ Class & Division: VIII

Lesson-5: Networking and Digital Citizenship


I. Answer in one word:

1. Which device is required to connect to a network?


Ans: Modem
2. What is a network limited to a classroom or a computer lab called?
Ans: LAN (Local Area Network)
3. Which networking device is used to forward data only to the intended computer, reducing network
traffic?
Ans: Switch
4. A student accesses a website hosted in another country. Which type of network makes this possible?
Ans: WAN (Wide Area Network)
5. Which network is best for connecting devices within a very short range like Bluetooth headphones?
Ans: PAN (Personal Area Network)
6. Online classes require which networking service the most?
Ans: Internet connectivity

II. Fill in the blanks


1. A computer network is a collection of computers, and devices connected to share data, instructions,
and information.
2. Protocol is a set of rules that outlines characteristics of how two devices communicate.
3. Workstations contributes equally in the network is also known as Peer.
4. Wi-Fi (Wireless Fidelity) is a popular wireless networking technology that uses radio waves to
provide wireless high-speed network connections
5. Cellular Radio is a wireless transmission medium that is used for mobile communication.
6. Infrared(IR) is a wireless transmission medium that signals using infrared waves.
7. Coaxial cable is widely used in cable TV networks.
8. A computer that uses resources provided by a server is called a client.
III. True or False
1. A network topology has 3 levels- False
2. A file server stores and manages Files-True
3. Network architecture is mainly categorized into three major types. -True
4. In Star topology all the computers and their devices are connected to one single cable. –False

LIS/GR 8/CS/QB/AK/25-26 Page 1 of 10


5. A computer network allows computers to share data and resources. -True
6. Failure of one node in a ring topology can affect the entire network. - True
7. Twisted pair cables are commonly used in LANs and telephone networks –True
8. Sharing false information online is an example of good digital citizenship. –False
9. Wireless transmission media include Wi-Fi and cellular radio.-True

IV. Answer the following Questions:


1. A school computer lab has 30 computers connected to one printer and a central server. Which type of
network is used in this setup and why is it suitable?
Ans: A LAN (Local Area Network) is used because it connects devices within a limited area and
allows resource sharing.
2. A student sends an email with an attachment to her teacher. . Which protocols are used to send the
email and to access it at the receiver’s end?
Ans: SMTP is used to send the email and IMAP is used by the teacher to access the email.
3. Two offices in the same city want to share data through a network. Which type of network is most
suitable for this purpose and why?
Ans: A MAN (Metropolitan Area Network) is suitable because it connects networks within a city.
4. A home Wi-Fi network connects mobile phones, laptops, and a smart TV within a short range. What
type of network is formed in this situation?
Ans: It forms a PAN (Personal Area Network).
5. Why is a switch preferred over a hub in modern networks?
Ans: A switch sends data only to the intended device, making communication faster and more
secure.
6. How do protocols help in network communication?
Ans: Protocols define rules for data transfer, ensuring accurate and reliable communication between
devices.
7. Why is the Internet called the world’s largest WAN?
Ans: Because it connects networks across countries and continents.
8. In star topology, the entire network stops if the hub fails. What does this indicate?
Ans: The hub is the central controlling device, and all communication depends on it.
9. A company wants fast and secure long-distance data transfer. Which type of transmission medium
should be used and why?
Ans: Fiber-optic cable should be used because it provides high-speed and secure transmission.
10. A user accesses emails from multiple devices without downloading them permanently. Which email
protocol allows users to access their emails from multiple devices without permanently downloading
them?
Ans: IMAP allows emails to be stored and accessed directly from the mail server.

LIS/GR 8/CS/QB/AK/25-26 Page 2 of 10


11. What is digital citizenship?
Ans: Digital citizenship is the responsible and ethical use of technology and the Internet.
12. What is the main function of a router?
Ans: A router connects networks and directs data to its correct destination.
13. When is FTP used?
Ans: FTP is used to upload and download files over the Internet.
14. How are devices connected in ring topology?
Ans: Each device is connected to two neighbouring devices in a circular path.
15. Explain the different types of computer networks.
Ans: There are four main types of computer networks:
PAN (Personal Area Network): Connects devices within a very short range, such as Bluetooth
connections.
LAN (Local Area Network): Connects computers within a limited area like a home or school.
MAN (Metropolitan Area Network): Connects multiple LANs within a city or town.
WAN (Wide Area Network): Covers a large geographical area such as countries or continents. The
Internet is the largest WAN.
16. Describe star and ring network topologies.
Ans: In star topology, all devices are connected to a central hub or switch. All data passes through
the central device, making it easy to add or remove nodes, but failure of the hub stops the entire
network.
In ring topology, devices are connected in a circular manner, where each device has exactly two
neighbours. Data travels in one direction around the ring, and failure of one node can disrupt the
whole network.
17. Explain the role of protocols in networking with examples.
Ans: Protocols are a set of rules that control how data is transmitted between devices on a network.
They ensure correct data format, timing, and error-free communication. Examples include TCP/IP
for reliable data transfer over the Internet, FTP for file uploading and downloading, SMTP for
sending emails, and IMAP for accessing emails from a mail server.
18. Riya sends her project report to her teacher through email. The teacher opens the email on a laptop at
school and later checks the same email on a mobile phone at home without downloading it again.
a. Which protocol is used to send the email?
Ans: SMTP (Simple Mail Transfer Protocol)
b. Which protocol allows the teacher to access the email from multiple devices?
Ans: IMAP (Internet Message Access Protocol)

LIS/GR 8/CS/QB/AK/25-26 Page 3 of 10


c. Why is IMAP suitable in this situation?
Ans: IMAP stores emails on the server and allows access from any device.
19. A school has a computer lab where all computers are connected to a central server and share a
common printer and Internet connection. The computers are located within the same building. A
switch is used to connect all systems, and a router connects the lab network to the Internet.
a. Identify the type of network used in the computer lab.
Ans: LAN (Local Area Network)
b. Why is a switch preferred over a hub in this network?
Ans: A switch sends data only to the intended computer, improving speed and security.
20. In a ring topology network, all computers are connected in a circular manner. During work hours,
one computer stops functioning, and the entire network communication is affected.
a. Which topology is used in this network?
Ans: Ring Topology
b. Why does the whole network get affected when one computer fails?
Ans: Because data travels in a circular path and each node depends on the next node.
c. Mention one disadvantage of ring topology.
Ans: Failure of a single node can disrupt the entire network.

Lesson-10: Future Possibilities of AI


I. Answer in one word:

1. The ability of machines to simulate human intelligence is called


Ans: Artificial Intelligence.
2. The AI technology used by Google Translator is
Ans: NLP (Natural Language Processing)
3. The profession that analyses large datasets to extract meaningful information is
Ans: Data Scientist.
4. What is the smallest unit of a digital image?
Ans: Pixel
5. Accepting terms without reading leads to what risk?
Ans: Privacy Risk
6. A student asks questions to a voice assistant like Alexa or Google Assistant. Which AI technology is
used here?
Ans: NLP(Natural Language Processing).
7. John McCarthy first used the term Artificial Intelligence in which year?
Ans:1956
8. At which conference was the term Artificial Intelligence officially introduced?
Ans: Darmouth Conference

LIS/GR 8/CS/QB/AK/25-26 Page 4 of 10


II. Fill in the blanks
1. The AI career responsible for developing and managing ML systems is______
Ans: Machine Learning Engineer
2. The AI career that predicts market trends using data analysis is ______________
Ans: Business Intelligence Developer
3. Using AI responsibly and ethically is known as_____________.
Ans: Ethical AI.
4. Google released its Chatbot in 2023 known as _______________.
Ans: Google Bard
5. The first computer-controlled autonomous vehicle, built in 1979, was known as the
__________________ Ans: Stanford Cart.
6. ___________________ is an application of NLP. Ans: Text Classifier

III. True or False


1. The AI that defeated world champion Ke Jie in the game Go was developed by Amazon- False
2. Erica, the robot news anchor, was introduced in Japan in the year 2018.- True
3. Autonomous vehicles drive with human control. –False
4. Business Intelligence Developer predicts market trends using data.-True
5. In 2019, a gender-neutral voice assistant named R was created. – False

IV. Answer the following Questions:


1. AI is being widely used in fields such as healthcare, transportation, agriculture, and education.
Autonomous vehicles like Tesla use AI to navigate roads safely, while AI helps farmers predict
weather conditions and crop diseases.
a. Name two fields where AI is used in the future.
Ans: Transportation and agriculture.
b. How do autonomous vehicles benefit from AI?
Ans: AI helps them detect obstacles and make driving decisions.
c. State one positive impact of AI in agriculture.
Ans: AI helps predict crop diseases and weather accurately.
2. AI systems collect large amounts of personal data such as phone numbers and email IDs. Many users
accept terms and conditions without understanding privacy risks. AI automation may also replace
human jobs and can be misused by cybercriminals.
a. Identify one privacy concern related to AI.
Ans: Misuse of personal data.
b. What is one job-related concern of AI adoption?
Ans: Job loss due to automation.
c. How can AI be misused in security threats?
Ans: Through hacking, fraud, and data theft.
LIS/GR 8/CS/QB/AK/25-26 Page 5 of 10
3. A self-driving car detects traffic signals and pedestrians. Which AI application is used here?
Ans: Autonomous vehicles
4. Explain future AI career options with required skill sets.
Ans: AI careers include Data Scientist, Machine Learning Engineer, and Business Intelligence
Developer. These careers require skills in programming, data analysis, mathematics, statistics, and
problem-solving. Strong analytical thinking and knowledge of data tools are essential.
5. How does AI improve military training for soldiers?
Ans: AI provides simulation and virtual training experiences to prepare soldiers for real-life
scenarios.
6. Traffic authorities want to automatically detect traffic violations using AI cameras. Describe briefly
how AI can be used in this scenario.
Ans: AI can detect vehicle license plates, match them with the RTO database, generate an e-challan,
and send it to the vehicle owner.

Lesson-8: Python Looping and Lists


I. Answer in one word:

1. Which loop is used when the number of iterations is known?


Ans: For.
2. Which function generates a sequence of numbers in Python?
Ans: range()
3. Which statement is used to exit a loop immediately?
Ans: break
4. Which statement skips the current iteration of a loop?
Ans: continue
5. What data type stores multiple items in Python?
Ans: List
6. What is the index of the first element in a Python list?
Ans:0
7. Which loop executes a block as long as a condition is True?
Ans: while
II. Fill in the blanks:
1. The block of code after a for loop that executes only if there is no break is called ________. Ans:
else
2. To access the third element of a list, we write list [____]. Ans: 2

LIS/GR 8/CS/QB/AK/25-26 Page 6 of 10


3. A while loop executes ______________ a condition is True.
Ans: as long as
4. Range (1,10,2) generates numbers starting from ____ to 10 with step 2.
Ans: 1
5. Traversing a list means visiting ______ element of the list.
Ans: each

III. True or False:


1. Fruits [-1] gives the last element of the list. - True
2. for i in range (12) will iterate 11 times. – False
3. A list can store elements of different data types. –True
4. The break statement skips the current iteration but continues the loop. – False
5. Fruits [0:3] will include elements at index 0,1,2.- True

IV. Answer the following Questions:


1. Write a for loop to print numbers from 1 to 5.
Ans: for i in range (1,6):
print(i)
2. What is the output of list (range(2, 10, 2))?
Ans: [2, 4, 6, 8]
3. What does the continue statement do in a loop?
Ans: It skips the current iteration and moves to the next iteration of the loop.
4. How do you create a list of fruits ["apple", "banana", "mango"] in Python?
Ans: fruits = ["apple", "banana", "mango"]
5. What is the difference between a list and a string?
Ans: A list can store multiple data types, while a string stores only text.
6. Riya wants to print all numbers from 1 to 10 using Python. She also wants to print only even
numbers between 1 and 20.
a. Write a for loop to print numbers from 1 to 10.
Ans: for i in range (1,11):
print(i)

LIS/GR 8/CS/QB/AK/25-26 Page 7 of 10


b. How can Riya use range() to print only even numbers from 2 to 20?
Ans: for i in range (2,21,2):
print(i)
7. Ali wants to print all numbers from 1 to 20. He already knows the exact number of iterations. Which
loop should he use? Why?
Ans: Use a for loop, because the number of iterations is known in advance.
8. Sara wants to keep asking a user to enter a password until the correct password is entered. She
doesn’t know how many attempts it will take. Which loop should she use? Why?
Ans: Use a while loop, because the number of iterations is unknown.
9. A teacher is checking a list of students. He wants to skip absent students but stop the check once he
finds a student named “John”. Which statement should the teacher use in the loop?
Ans: Use continue to skip absent students and break to stop when “John” is found.
10. A student has a list of 10 cities. He wants to print only the first city. Which method should he use:
accessing, slicing, or traversing?
Ans: Use accessing (list[0]).
11. A student wants to keep guessing a secret number until he gets it right. Which loop should be used:
for or while?
Ans: Use a while loop, because the number of attempts is unknown.
12. A teacher wants to display the roll numbers of students in a class, and the total number of students is
already known. Later, the teacher wants to keep checking homework submission until all students
submit it. Which loop is more suitable in each case and why?
Ans: To display the roll numbers of students in a class, and the total number of students is already
known, teacher can use for loop. Because he number of iterations is fixed and known in advance.
For checking homework submission until all students submit it, teacher can use while loop. Because
the number of iterations is not known and depends on a condition being satisfied.
13. Compare between For Loop and While Loop
Ans:
For Loop While Loop
A for loop is used to iterate over a sequence A while loop is used to repeat a block of
of values. code as long as a condition is true.
Used when the number of iterations is Used when the number of iterations is not
known. known.
Syntax: for var in sequence: Syntax: while condition:
statements statements

LIS/GR 8/CS/QB/AK/25-26 Page 8 of 10


Practical Questions
1. A teacher wants to print roll numbers from 1 to 30. Write a Python program to do this.
Ans: for i in range(1, 31):
print(i)
2. Print numbers from 1 to 10 but skip the number 5.
Ans: for i in range(1, 11):
if i = = 5:
continue
print(i)
3. Given a list of subjects, print each subject one by one.
Ans: subjects = ["Math", "Science", "English"]
for x in subjects:
print(x)
4. Print the first three elements from the list numbers = [1,2,3,4,5,6]
Ans: numbers = [1,2,3,4,5,6]
Print(numbers[0:3])
5. Print numbers from 1 to 3 and display "Completed" after the loop ends.
Ans: i = 1
while i <= 3:
print(i)
i=i+1
else:
print("Completed")
6. Print the odd numbers between 1 to 20.1
Ans: odd=1
while odd<20:
print(odd)
odd=odd+2
7. Print the even numbers between 1 to 10.
Ans: even=2
While even<10:
print(even)
even=even+2
8. Program to print all the letters of “Loyola”
Ans: for x in “Loyola”
print(x)
LIS/GR 8/CS/QB/AK/25-26 Page 9 of 10
9. Program to print “Hello World” 6 times.
Ans: for x in range(6)
print(“Hello World”)
10. Program to print first five natural numbers.
Ans: num=1
while num<=20:
print(num)
num=num+1

LIS/GR 8/CS/QB/AK/25-26 Page 10 of 10

You might also like