Computer Science
Full Book MCQ Test
Practice all seven textbook units with direct and real-life scenario questions, instant marking and explanations.
- Attempt all 60 questions. Select one option for each question.
- Each correct answer earns 0.5 mark. There is no negative marking.
- Choose an option, then select Check answer to see the explanation.
- Suggested examination time: 1 hour 20 minutes.
Practice Questions
Choose your answer, then open the explanation to check it.
1. Which technology replaced vacuum tubes in second-generation computers?
- Transistors
- Integrated circuits
- Microprocessors
- Magnetic tapes
Show answer and explanation
Transistors
Second-generation computers (1956–1963) used transistors instead of vacuum tubes.
2. Which generation introduced integrated circuits (ICs)?
- First generation
- Second generation
- Third generation
- Fourth generation
Show answer and explanation
Third generation
Third-generation computers (1963–1971) introduced integrated circuits.
3. In which generation were microprocessors developed?
- First generation
- Second generation
- Third generation
- Fourth generation
Show answer and explanation
Fourth generation
The fourth generation began with the development of microprocessors.
4. What is the main function of the motherboard?
- To store files permanently
- To connect and integrate hardware components
- To print output
- To provide internet access
Show answer and explanation
To connect and integrate hardware components
The motherboard connects and allows communication among major computer components.
5. Which memory retains data when the computer is turned off?
- RAM
- ROM
- Cache
- Register
Show answer and explanation
ROM
ROM is non-volatile memory and retains data without power.
6. Which component of the CPU performs arithmetic and logical operations?
- Control Unit
- Arithmetic Logic Unit
- Register
- Cache
Show answer and explanation
Arithmetic Logic Unit
The ALU performs arithmetic calculations and logical comparisons.
7. Computational thinking is best described as:
- Writing code without planning
- Thinking like a computer to solve problems logically
- Using a computer only for calculations
- Repairing computer hardware
Show answer and explanation
Thinking like a computer to solve problems logically
Computational thinking is a systematic problem-solving approach.
8. Breaking a large problem into smaller manageable parts is called:
- Abstraction
- Decomposition
- Pattern recognition
- Iteration
Show answer and explanation
Decomposition
Decomposition divides a complex problem into smaller sub-problems.
9. Which chart represents an algorithm graphically?
- Pie chart
- Flowchart
- Bar chart
- Scatter plot
Show answer and explanation
Flowchart
A flowchart uses symbols and arrows to represent the steps of an algorithm.
10. IPO stands for:
- Input, Program, Output
- Input, Process, Output
- Internet, Process, Operation
- Input, Plan, Order
Show answer and explanation
Input, Process, Output
The IPO model organizes a problem into input, processing and output.
11. Which problem asks whether a given input has a Yes-or-No answer?
- Counting problem
- Decision problem
- Sorting problem
- Search problem
Show answer and explanation
Decision problem
A decision problem has a Yes-or-No outcome for a given input.
12. Which method helps identify similarities among previously solved problems?
- Pattern recognition
- Data transmission
- Debugging
- Encryption
Show answer and explanation
Pattern recognition
Pattern recognition looks for repeated features or similarities.
13. Everything in HTML is identified on the basis of:
- Brackets
- Tags
- Title
- Images
Show answer and explanation
Tags
HTML tags identify and structure elements in a webpage.
14. The output of HTML code is normally visible in a:
- Notepad
- Browser
- Spreadsheet
- Compiler window
Show answer and explanation
Browser
A web browser interprets HTML and displays the webpage.
15. Which tag contains the main visible content of an HTML document?
- head
- body
- title
- meta
Show answer and explanation
body
The body element contains the webpage content shown in the browser.
16. CSS is primarily used to:
- Store database records
- Style and format webpage elements
- Create computer hardware
- Transmit network packets
Show answer and explanation
Style and format webpage elements
Cascading Style Sheets control webpage presentation and layout.
17. Which CSS method places styles directly inside an HTML element?
- External CSS
- Internal CSS
- Inline CSS
- Browser CSS
Show answer and explanation
Inline CSS
Inline CSS uses the style attribute within an HTML element.
18. A variable is:
- A fixed HTML tag
- A named storage location for a value
- A browser window
- A CSS selector only
Show answer and explanation
A named storage location for a value
A variable stores a value that can be used and changed by a program.
19. Which programming structure repeats a set of instructions?
- Selection
- Sequence
- Repetition/loop
- Comment
Show answer and explanation
Repetition/loop
Loops repeat instructions while a condition or iteration rule applies.
20. A dataset is:
- A single computer program
- A structured or processed collection of data
- A type of processor
- A network topology
Show answer and explanation
A structured or processed collection of data
A dataset is an organized collection of data, often related to one body of work.
21. Which field combines mathematics, statistics and computing to gain insights from data?
- Data science
- Graphic design
- Networking
- Word processing
Show answer and explanation
Data science
Data science uses methods from several disciplines to analyze data.
22. The graphical representation of data using charts and plots is called:
- Data hiding
- Data visualization
- Data encryption
- Data duplication
Show answer and explanation
Data visualization
Data visualization presents data graphically to reveal patterns and insights.
23. Which type of data can take only certain separate values?
- Continuous data
- Discrete data
- Unstructured data
- Streaming data
Show answer and explanation
Discrete data
Discrete data has distinct, countable values.
24. Which of the following is one of the 3 Vs of big data?
- Volume
- Voltage
- Validity
- Visibility
Show answer and explanation
Volume
The textbook identifies Volume, Velocity and Variety as the 3 Vs of big data.
25. Data collected directly from the original source is called:
- Secondary data
- Primary data
- Archived data
- Synthetic data
Show answer and explanation
Primary data
Primary data is collected first-hand from the source.
26. Artificial Intelligence is a branch of computer science that aims to make machines:
- Perform only manual tasks
- Perform human-like intelligent tasks
- Work without data
- Replace all networks
Show answer and explanation
Perform human-like intelligent tasks
AI enables computer-controlled machines to perform tasks associated with human intelligence.
27. Machine learning teaches computers to learn from:
- Data and experience
- Only printed books
- Keyboard layouts
- Power cables
Show answer and explanation
Data and experience
Machine learning uses data and algorithms to identify patterns and make predictions.
28. In supervised learning, training data is:
- Unlabelled
- Known and labelled
- Always random
- Not used
Show answer and explanation
Known and labelled
Supervised learning uses known input data and known output responses.
29. Which AI area obtains meaningful information from digital images and videos?
- Speech recognition
- Computer vision
- Chatbot
- Cloud storage
Show answer and explanation
Computer vision
Computer vision analyzes visual data such as images and videos.
30. Which AI field helps computers understand and process human language?
- Natural Language Processing
- Computer vision
- Robotics
- Data mining
Show answer and explanation
Natural Language Processing
NLP enables computers to work with spoken and written human language.
31. A cloud model dedicated to a single organization is called:
- Public cloud
- Private cloud
- Hybrid cloud
- Community website
Show answer and explanation
Private cloud
A private cloud is owned and used within a single organization.
32. Responsible use of computer hardware means:
- Ignoring safety instructions
- Handling equipment carefully and respectfully
- Sharing passwords
- Leaving liquids near devices
Show answer and explanation
Handling equipment carefully and respectfully
Careful handling helps prevent accidents and damage to hardware.
33. Which is an example of appropriate software use?
- Using cracked software
- Respecting software copyrights and licenses
- Disabling antivirus
- Sharing one license unlawfully
Show answer and explanation
Respecting software copyrights and licenses
Appropriate use follows licensing restrictions and legal requirements.
34. Which practice improves online account security?
- Reusing one weak password
- Using strong, unique passwords
- Posting passwords publicly
- Opening unknown attachments
Show answer and explanation
Using strong, unique passwords
Strong unique passwords reduce the risk of unauthorized account access.
35. Disinformation is:
- Accurate information from a verified source
- False information deliberately spread to mislead
- A type of computer memory
- A secure network protocol
Show answer and explanation
False information deliberately spread to mislead
Disinformation is false information shared with the intention to mislead.
36. Which right protects an original written work from unauthorized reproduction?
- Patent
- Trademark
- Copyright
- Public domain
Show answer and explanation
Copyright
Copyright gives creators exclusive rights over the use and distribution of original works.
37. The process of creating an enterprise is called:
- Data mining
- Entrepreneurship
- Debugging
- Networking
Show answer and explanation
Entrepreneurship
Entrepreneurship involves creating an enterprise and taking risks to achieve business objectives.
38. An entrepreneur is a person who:
- Only works for a government office
- Starts, organizes and manages a business while taking financial risks
- Only buys products for personal use
- Writes computer algorithms
Show answer and explanation
Starts, organizes and manages a business while taking financial risks
An entrepreneur starts or owns a business and accepts financial risk for potential profit.
39. Which is a characteristic of a successful entrepreneur?
- Avoiding all responsibility
- Calculated risk-taking
- Ignoring feedback
- Refusing to plan
Show answer and explanation
Calculated risk-taking
The textbook describes entrepreneurs as calculated risk-takers who accept responsibility.
40. What does the 'M' in SMART goals stand for?
- Meaningful
- Measurable
- Managed
- Marketable
Show answer and explanation
Measurable
SMART goals are Specific, Measurable, Achievable, Realistic and Time-Bound.
41. Which technique examines strengths, weaknesses, opportunities and threats?
- IPO
- SWOT analysis
- Flowcharting
- Data visualization
Show answer and explanation
SWOT analysis
SWOT analysis evaluates a business idea in relation to internal and external factors.
42. A school buys computers that use a single microprocessor as the main processing unit. Which generation does this development represent?
- First
- Second
- Third
- Fourth
Show answer and explanation
Fourth
Microprocessors are the defining development of fourth-generation computers.
43. A computer loses the contents of its working memory when power is switched off. Which memory is being described?
- ROM
- RAM
- Optical memory
- Flash ROM
Show answer and explanation
RAM
RAM is volatile memory and requires power to retain its contents.
44. A developer divides an online shopping system into smaller tasks such as login, payment and delivery tracking. Which technique is being used?
- Decomposition
- Encryption
- Compilation
- Data visualization
Show answer and explanation
Decomposition
The developer is breaking a large problem into manageable sub-problems.
45. A student draws boxes for instructions and diamonds for decisions to explain a solution. Which representation is being created?
- Database
- Flowchart
- Spreadsheet
- Network map
Show answer and explanation
Flowchart
Flowcharts use standard symbols, including diamonds for decisions.
46. A student wants every paragraph on a website to use the same font and color. Which technology should be used?
- HTML only
- CSS
- JavaScript only
- SQL
Show answer and explanation
CSS
CSS provides consistent styling across webpage elements.
47. A webpage displays a button that changes the page content when clicked. Which language most directly provides this interaction?
- HTML
- CSS
- JavaScript
- XML
Show answer and explanation
JavaScript
JavaScript handles interactive behaviour and dynamic content.
48. A programmer notices that a loop never ends because its stopping condition is never reached. What should the programmer do?
- Debug the code
- Delete the browser
- Change the monitor
- Format the hard drive
Show answer and explanation
Debug the code
Debugging is the process of locating and correcting errors in code.
49. A shop records customer ratings as satisfied, neutral or dissatisfied. What type of data is this?
- Categorical data
- Continuous data
- Binary machine code
- Image data
Show answer and explanation
Categorical data
These are categories or labels rather than measured numerical values.
50. A retailer analyzes years of sales records to predict next month's demand. Which analysis is being used?
- Predictive analysis
- Data deletion
- Manual sorting only
- Encryption
Show answer and explanation
Predictive analysis
Predictive analysis uses historical data to forecast future trends or events.
51. A bank trains a model using past loan records that include known outcomes. Which learning approach is this?
- Unsupervised learning
- Supervised learning
- Manual learning
- Cloud hosting
Show answer and explanation
Supervised learning
Known input-output examples are used in supervised learning.
52. A hospital uses software to examine medical images and identify possible abnormalities. Which AI area is most relevant?
- Computer vision
- Speech synthesis
- Cloud storage
- Social networking
Show answer and explanation
Computer vision
Computer vision analyzes images and videos to identify meaningful information.
53. A business wants cloud resources owned and operated by a provider and shared over the internet. Which model fits?
- Private cloud
- Public cloud
- Local-only storage
- Hybrid cloud only
Show answer and explanation
Public cloud
Public cloud resources are provided over the internet by a cloud service provider.
54. A student receives a sensational news post from an unknown account. What is the most responsible action before sharing it?
- Forward it immediately
- Check its accuracy using reliable sources
- Add a dramatic headline
- Assume it is true
Show answer and explanation
Check its accuracy using reliable sources
The textbook emphasizes verifying information sources and avoiding the spread of fake news.
55. An employee downloads a paid program from an unauthorized website. Which principle is being violated?
- Data visualization
- Software licensing and intellectual property
- Network topology
- Cloud elasticity
Show answer and explanation
Software licensing and intellectual property
Using unauthorized copies violates software licensing and intellectual property rights.
56. A social media user posts their home address and passwords publicly. Which risk is most directly increased?
- Improved privacy
- Privacy breach and identity misuse
- Faster processing
- Better data quality
Show answer and explanation
Privacy breach and identity misuse
Sharing sensitive personal information can expose a user to privacy and security threats.
57. A student interviews potential customers, defines their problem, brainstorms ideas, builds a simple model and tests it. Which process is this?
- SWOT analysis
- Design thinking
- Data mining
- Debugging
Show answer and explanation
Design thinking
The five design-thinking stages are empathize, define, ideate, prototype and test.
58. A startup sets a goal to gain 100 customers within six months. Which SMART feature is shown by 'within six months'?
- Specific
- Measurable
- Time-bound
- Achievable
Show answer and explanation
Time-bound
A time-bound goal includes a defined timeframe.
59. Before launching a product, a founder studies competitors, customer demand and market trends. Which business-plan element is this?
- Analyze the market
- Write source code
- Create a flowchart
- Choose a network topology
Show answer and explanation
Analyze the market
Market analysis examines market conditions and trends before entering a market.
60. A business plan lists rent, materials, wages and packaging to calculate the cost of each item. What is being calculated?
- Network speed
- Cost of production per unit
- Website traffic
- Data velocity
Show answer and explanation
Cost of production per unit
Production costs include materials, labor, packaging, utilities and fixed costs.