Docsity

Exam 03: Boolean Logic and Logic Gates, Exams of Computer Programming

Toggle sidebar
bg1
Exam 01: Introduction to Computing and Computer Systems Page 1
Exam 01: Introduction to Computing and
Computer Systems
Computer Science Exam Series | Time: 2 hours | Total: 84 marks
Answer all questions. Part A has 50 multiple choice questions (1 mark each). Part B has 8 short
answer questions (3 marks each). Part C has 2 longer questions (5 marks each). In Part A the
correct option is marked with a double tick. Answer key and model answers are at the end.
Part A: Multiple Choice (50 marks)
Q1. Which component is considered the "brain" of the computer?
a) RAM
b) CPU ✔✔
c) Hard disk
d) Monitor
Q2. Which of these is an input device?
a) Printer
b) Speaker
c) Scanner ✔✔
d) Monitor
Q3. Which of these is an output device?
a) Keyboard
b) Projector ✔✔
c) Microphone
d) Mouse
Q4. Software that manages hardware and provides services to programs is called:
a) Application software
b) A utility program
c) An operating system ✔✔
d) A compiler
Q5. Which of these is application software?
a) The Linux kernel
b) A device driver
c) A spreadsheet program ✔✔
d) The BIOS
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Exam 03: Boolean Logic and Logic Gates and more Exams Computer Programming in PDF only on Docsity!

Exam 01: Introduction to Computing and

Computer Systems

Computer Science Exam Series | Time: 2 hours | Total: 84 marks

Answer all questions. Part A has 50 multiple choice questions (1 mark each). Part B has 8 short answer questions (3 marks each). Part C has 2 longer questions (5 marks each). In Part A the correct option is marked with a double tick. Answer key and model answers are at the end.

Part A: Multiple Choice (50 marks)

Q1. Which component is considered the "brain" of the computer?

a) RAM b) CPU ✔✔ c) Hard disk d) Monitor

Q2. Which of these is an input device?

a) Printer b) Speaker c) Scanner ✔✔ d) Monitor

Q3. Which of these is an output device?

a) Keyboard b) Projector ✔✔ c) Microphone d) Mouse

Q4. Software that manages hardware and provides services to programs is called:

a) Application software b) A utility program c) An operating system ✔✔ d) A compiler

Q5. Which of these is application software?

a) The Linux kernel b) A device driver c) A spreadsheet program ✔✔ d) The BIOS

Q6. RAM is described as volatile because:

a) It is slow b) It loses its contents when the power is switched off ✔✔ c) It can only be read d) It stores the operating system permanently

Q7. Which memory typically holds the startup firmware of a computer?

a) RAM b) Cache c) ROM ✔✔ d) Virtual memory

Q8. One byte is equal to:

a) 4 bits b) 8 bits ✔✔ c) 16 bits d) 10 bits

Q9. Which of these is the largest unit of storage?

a) 1 MB b) 1 GB c) 1 KB d) 1 TB ✔✔

Q10. What is the correct order of the information processing cycle?

a) Input, output, process, storage b) Input, process, output, storage ✔✔ c) Process, input, storage, output d) Storage, input, output, process

Q11. Which of these is a secondary storage device?

a) Cache b) Register c) Solid-state drive ✔✔ d) RAM

Q12. Which of these is the fastest type of memory?

a) A CPU register ✔✔ b) RAM c) An SSD d) A hard disk

Q20. Which program translates a whole high-level program into machine code before it runs?

a) A debugger b) An interpreter c) A text editor d) A compiler ✔✔

Q21. Information is best described as:

a) Raw facts b) Processed data that has meaning ✔✔ c) A computer program d) A storage device

Q22. Which of these is an example of raw data?

a) A sales report b) The number 42 with no context ✔✔ c) A chart of monthly sales d) An invoice summary

Q23. GUI stands for:

a) General User Input b) Graphical User Interface ✔✔ c) Global Utility Interface d) Grouped Usage Instruction

Q24. Which type of interface requires the user to type commands?

a) GUI b) Command-line interface ✔✔ c) Touch interface d) Voice interface

Q25. Which is a main function of an operating system?

a) Designing web pages b) Managing resources such as the CPU and memory ✔✔ c) Creating spreadsheets d) Editing photographs

Q26. Booting a computer refers to:

a) Installing an antivirus program b) Starting the computer and loading the operating system ✔✔ c) Backing up files d) Upgrading the RAM

Q27. Which connector is commonly used to attach external storage devices?

a) HDMI b) Ethernet c) USB ✔✔ d) Audio jack

Q28. Moore's law states that:

a) Hard disks double in size each year b) The number of transistors on a chip roughly doubles about every two years ✔✔ c) Software becomes slower over time d) CPU prices double every year

Q29. The first generation of computers used:

a) Microprocessors b) Transistors c) Vacuum tubes ✔✔ d) Integrated circuits

Q30. The second generation of computers was based on:

a) Vacuum tubes b) Transistors ✔✔ c) Microprocessors d) Artificial intelligence

Q31. Microprocessors characterise which generation of computers?

a) First b) Second c) Third d) Fourth ✔✔

Q32. CPU clock speed is measured in:

a) Bytes b) Hertz ✔✔ c) Pixels d) Watts

Q33. Which factor does NOT directly affect CPU performance?

a) Clock speed b) Number of cores c) Cache size d) Monitor size ✔✔

Q41. Which of these is a unit used to measure storage capacity?

a) Gigahertz b) Gigabyte ✔✔ c) Gigawatt d) Pixel

Q42. A pixel is:

a) A type of memory b) The smallest element of a displayed image ✔✔ c) A processor core d) A network packet

Q43. Which hardware stores the operating system and user files permanently on a PC?

a) Cache b) Register c) Hard disk or SSD ✔✔ d) System clock

Q44. Firmware is:

a) Software permanently stored in a hardware device ✔✔ b) A web page c) A type of virus d) Temporary data in RAM

Q45. Malware is best described as:

a) Hardware that overheats b) Software designed to harm or exploit a system ✔✔ c) A backup tool d) A network cable

Q46. Why should users make regular backups?

a) To speed up the CPU b) To be able to recover data after loss or failure ✔✔ c) To increase the amount of RAM d) To reduce screen glare

Q47. Which of these is a peripheral device?

a) The CPU b) The motherboard c) A printer ✔✔ d) Cache memory

Q48. Multitasking means:

a) Running only one program b) Running several programs apparently at the same time ✔✔ c) Switching the computer off d) Storing several files

Q49. The motherboard:

a) Stores user files b) Connects the main components of the computer ✔✔ c) Displays output d) Only cools the CPU

Q50. A typical use of a mainframe is:

a) Personal gaming b) Processing bulk transactions for large organisations ✔✔ c) Home printing d) Fitness tracking on a watch

Part B: Short Answer (24 marks)

S1. Distinguish between hardware and software, giving one example of each. [3]

S2. Describe the four stages of the information processing cycle using a supermarket checkout as an example. [3]

S3. State three differences between RAM and ROM. [3]

S4. Describe three functions of an operating system. [3]

S5. Explain the stored-program concept. [3]

S6. State three differences between a compiler and an interpreter. [3]

Answer Key: Part A

Q Answer Q Answer Q Answer Q Answer Q Answer 1 b 11 c 21 b 31 d 41 b 2 c 12 a 22 b 32 b 42 b 3 b 13 b 23 b 33 d 43 c 4 c 14 c 24 b 34 b 44 a 5 c 15 b 25 b 35 b 45 b 6 b 16 b 26 b 36 c 46 b 7 c 17 b 27 c 37 a 47 c 8 b 18 c 28 b 38 b 48 b 9 d 19 b 29 c 39 b 49 b 10 b 20 d 30 b 40 b 50 b

Model Answers: Parts B and C

S1. Hardware is the physical components of a computer system that can be touched (1 mark), for example a keyboard or CPU (1 mark). Software is the programs and instructions that tell the hardware what to do (1 mark), for example an operating system or word processor. ✔✔ S2. Input: the barcode scanner reads the product code (1 mark). Processing: the system looks up the price and calculates the total (1 mark). Output: the receipt and display show the amount to pay. Storage: the sale is saved in the database (1 mark for correctly naming all four stages in order with examples). ✔✔ S3. RAM is volatile and loses data without power, while ROM is non-volatile (1 mark). RAM can be read and written, while ROM is normally read-only (1 mark). RAM holds running programs and data, while ROM holds startup firmware (1 mark). ✔✔ S4. Any three, one mark each: managing the CPU and running processes; managing memory allocation; managing files and storage; controlling input and output devices through drivers; providing a user interface; providing security and user accounts. ✔✔ S5. Program instructions are stored in main memory alongside the data (1 mark). The CPU fetches the instructions one at a time from memory (1 mark). This allows the same hardware to run different programs simply by loading different instructions (1 mark). ✔✔ S6. A compiler translates the whole program before it runs, while an interpreter translates and executes it line by line (1 mark). A compiler produces a separate executable file, an interpreter does not (1 mark). Compiled programs usually run faster, while interpreted programs are easier to test and debug (1 mark). ✔✔ S7. Primary storage (RAM and ROM) is directly accessed by the CPU and is fast (1 mark). Secondary storage (hard disk, SSD, optical disc) is not directly accessed by the CPU and is slower (1 mark). Secondary storage is non-volatile and holds data and programs long term, and has a much larger capacity (1 mark). ✔✔

S8. A LAN covers a small area such as a building, while a WAN covers a large geographic area ( mark). A LAN is usually owned and managed by one organisation, while a WAN often uses leased public infrastructure (1 mark). A LAN is generally faster and cheaper to run, while a WAN has slower speeds and higher costs (1 mark). ✔✔

L1. The document file is stored on secondary storage such as an SSD (1 mark). When opened, the operating system loads the file and the word processor from secondary storage into RAM ( mark). The CPU fetches and executes the word processor's instructions from RAM and processes the user's keystrokes from the keyboard (1 mark). Edits are held temporarily in RAM, which is volatile, and displayed on the monitor (1 mark). When saved, the CPU instructs the operating system to write the updated data from RAM back to secondary storage so it is kept permanently ( mark). ✔✔

L2. One mark each for a requirement with justification. For example: a multicore CPU, to run several programs smoothly; at least 8 GB of RAM, so programs and multitasking run without slowing down; an SSD for fast start up and loading; a network card and cabling or Wi-Fi, so that computers can share files and printers and access the internet; an up-to-date operating system with security updates; licensed application software suited to the curriculum; antivirus software, to protect against malware; monitors with suitable resolution to reduce eye strain. ✔✔