BackParhayi.com
Home

Computer Science Class 10 Chapter 1: Computer Systems

Free chapter

Practice this chapterTake a testComputer Science page

This is the free study page for Computer Science Class 10, Chapter 1: Computer Systems. It follows the Federal Board (FBISE) SSC-II syllabus. This chapter has 3 learning outcomes, and Parhayi.com has 355 MCQs, 57 short questions and 14 long questions for it. Read the topics and the key questions with their answers below, then tap Practice this chapter to try the questions yourself.

Computer Science teaches how computers store, process and share information. Understand the ideas, then practise the examples and the code in the book.

What you will learn

Key questions and answers

These are the short questions of this chapter with their answers (57 questions).

Q1. Define a bit and a byte. How many bits are in one byte? (2 marks)

A bit (binary digit) is the smallest unit of data in a computer and is either 0 or 1.

A byte is a group of 8 bits. One byte can make 28 = 256 different patterns.

Q2. What is a number system? Name the four common number systems with their bases. (3 marks)

A number system is a way of writing numbers using a fixed set of digits or symbols. The number of symbols is its base.

SystemBaseDigits
Decimal100-9
Binary20, 1
Octal80-7
Hexadecimal160-9, A-F

Q3. Convert (100101.1011)2 to decimal. (3 marks)

Integer part: 1x32 + 0x16 + 0x8 + 1x4 + 0x2 + 1x1 = 37.

Fraction part: 1x1/2 + 0x1/4 + 1x1/8 + 1x1/16 = 0.5 + 0.125 + 0.0625 = 0.6875.

Answer: (37.6875)10

Q4. Convert (179)10 to binary and to octal. (3 marks)

Divide by 2: 179 -> 89 r1, 44 r1, 22 r0, 11 r0, 5 r1, 2 r1, 1 r0, 0 r1. Read upwards: (10110011)2.

Group the bits in 3s: 010 110 011 = 2 6 3, so (263)8.

Q5. Convert (3AF)16 to binary. Show the steps. (3 marks)

3 = 0011, A = 1010, F = 1111. Join them: 0011 1010 1111. Remove the leading zeros.

(1110101111)2

Q6. Why are octal and hexadecimal used as short forms of binary? (3 marks)

Long binary numbers are hard to read and easy to copy wrongly. One octal digit stands for exactly 3 bits and one hexadecimal digit for exactly 4 bits, so a number becomes 3 or 4 times shorter and can be converted by grouping bits. Example: 1111 1111 = FF.

Q7. Find the 1's complement of 00011101 and the 2's complement of 01010001. (3 marks)

1's complement of 00011101: invert every bit = 11100010.

2's complement of 01010001: invert = 10101110; add 1 = 10101111.

Q8. Subtract 1101 - 0110 using 2's complement (4 bits). Show your steps. (3 marks)

2's complement of 0110: invert = 1001, add 1 = 1010.

1101 + 1010 = 1 0111. A carry came out, so ignore it. Answer = 0111 (7). Check: 13 - 6 = 7.

Q9. What is overflow? Give an example. (3 marks)

Overflow happens when the result of a calculation is larger than the maximum value the available bits can hold.

Example: an 8-bit unsigned register holds 11111111 (255). Adding 1 gives 100000000 (256), which needs 9 bits. The 9th bit is lost and the register shows 00000000, a wrong result.

Q10. What is meant by signed and unsigned numbers? (2 marks)

Unsigned numbers have no sign bit; all bits give the value, so they are zero or positive (8 bits: 0 to 255).

Signed numbers use the most significant bit as the sign (0 = positive, 1 = negative) and can store negative numbers (8 bits: -128 to +127).

Q11. Write the range of an 8-bit unsigned number and an 8-bit signed (2's complement) number. (2 marks)

Unsigned: 0 to 28 - 1 = 0 to 255.

Signed: -27 to 27 - 1 = -128 to +127.

Q12. Represent -45 in 8-bit 2's complement form. (3 marks)

+45 = 00101101. Invert all bits: 11010010. Add 1: 11010011.

Check: 11010011 = 211; 256 - 211 = 45, so the value is -45.

Q13. What are floating-point numbers? Name the three parts used to store them. (2 marks)

Floating-point numbers are numbers with a fractional part, such as 15.5 or -203.345. In the IEEE 754 standard they are stored as a sign bit, an exponent and a mantissa (32-bit: 1 + 8 + 23 bits).

Q14. How many characters can 7-bit ASCII and 8-bit ASCII represent? Why? (2 marks)

7-bit ASCII gives 27 = 128 characters. Extended (8-bit) ASCII gives 28 = 256 characters, because n bits give 2n different codes.

Q15. State three differences between ASCII and Unicode. (3 marks)

ASCIIUnicode
7-bit (128) or 8-bit (256) characters16-bit originally, now up to 32-bit; over 100,000 characters
English letters, digits, symbolsAll world languages, symbols, emoji
One encoding; 1963UTF-8, UTF-16, UTF-32; published 1991

Q16. What does UTF stand for? Name three UTF encodings. (2 marks)

UTF stands for Unicode Transformation Format. Three encodings: UTF-8, UTF-16 and UTF-32. Conversion between them is lossless.

Q17. Why does an Urdu SMS allow fewer characters than an English SMS? (3 marks)

A plain English SMS uses 7-bit codes, so 160 characters fit in one message. Urdu letters are in Unicode and need more bits per character, so the same space holds only about 70 characters.

Q18. What is binary system? Why is it used by computers? (1+1) (2 marks)

The binary system is a number system with base 2 that uses only the digits 0 and 1.

Computers use it because their electronic circuits have only two states, ON (1) and OFF (0), which are easy and reliable to build and detect.

Q19. What is an encoding scheme? Write its role in data representation. (1+1) (2 marks)

An encoding scheme (such as ASCII or Unicode) is a standard that assigns a unique binary code to every character.

Its role is to change text into binary so that it can be stored, processed and exchanged by all computers in the same way.

Q20. How binary number system differs from octal number system? (2 marks)

The binary system has base 2 and uses the digits 0 and 1; computers use it internally. The octal system has base 8 and uses the digits 0 to 7; one octal digit is a short form of 3 binary bits.

Q21. Why are encoding schemes necessary to represent text and data in computers? (Two reasons) (1+1) (2 marks)

  • Computers can store only binary (0 and 1), so every letter and symbol must be changed into a binary code.
  • A standard code (ASCII, Unicode) makes sure all devices and programs read and show the same text, so files can be shared correctly.

Q22. Name one common encoding scheme and state its use. (1+1) (2 marks)

Unicode (or ASCII) is a common encoding scheme. Unicode gives a unique number to every character of every written language, so text in any language can be stored and exchanged.

Q23. Define an operating system and give two examples. (2 marks)

An operating system is the essential system software that manages memory, processes, hardware and software and lets the user interact with the computer. Examples: Windows, Android (also macOS, Linux).

Q24. List the six main tasks of an operating system. (3 marks)

  1. Process management
  2. Memory management
  3. File management
  4. Device management
  5. Network management
  6. Security management

Q25. Differentiate between a program and a process. (2 marks)

A program is a passive executable file stored on disk. A process is that program loaded into RAM and running; it is an active unit that uses CPU time, memory and I/O devices.

Q26. Write three differences between a process and a thread. (3 marks)

ProcessThread
An executing instance of a programA part of a process
Runs in separate memory spaceRuns in the shared memory of the process
A change in one does not affect othersA change may affect other threads of the same process
Controlled by the OSControlled by the programmer inside the program

Q27. Name the five states of a process. (2 marks)

The five states are New (Start), Ready, Running, Waiting (Blocked) and Terminated.

Q28. What is a deadlock? Explain with an example. (3 marks)

A deadlock is a situation in which two or more processes wait forever, each for a resource held by another.

Example: P1 holds resource R1 and needs R2, while P2 holds R2 and needs R1. Neither can continue. It is like two cars on a narrow road, each waiting for the other to reverse.

Q29. What is an interrupt? What does the CPU do when an interrupt occurs? (3 marks)

An interrupt is a signal that tells the CPU that an event needs immediate attention (for example a key is pressed).

The CPU pauses its task, saves its state, runs the Interrupt Service Routine (ISR) and then resumes the task.

Q30. Name three CPU scheduling algorithms and describe any one. (3 marks)

FCFS (First-Come First-Served), SJN (Shortest Job Next), Priority scheduling and Round Robin.

Round Robin: every process gets the CPU for a fixed time slice in a cycle; unfinished processes go back to the queue.

Q31. What is a file system? Name its three components. (3 marks)

The file system is the part of the OS that organises, stores, retrieves and manages data on storage devices. Its components are files, directories (folders) and metadata (name, size, type, permissions, dates).

Q32. Name the three file allocation methods and give one feature of each. (3 marks)

  • Contiguous: file in consecutive blocks; fast but causes fragmentation.
  • Linked: blocks joined by pointers like a linked list; flexible but slower.
  • Indexed: an index block points to all data blocks; fast and balanced.

Q33. Differentiate between a batch processing OS and a real-time OS. (3 marks)

Batch OSReal-time OS
Groups similar jobs and runs them one after anotherResponds immediately within a strict deadline
No user interaction; jobs may waitHighly reliable and fast
Payroll, bank statementsMedical equipment, traffic control

Q34. What is an embedded operating system? Give two examples of devices that use it. (2 marks)

An embedded OS is built into the hardware of a device and does a specialised task with minimum resources. Examples: microwave oven, washing machine, ATM, TV, camera.

Q35. Explain a distributed operating system with an example. (3 marks)

A distributed OS manages a network of computers as a single system and spreads the tasks over many machines (load balancing). The user does not know which machine is doing the work. Example: cloud computing, Google search.

Q36. Three processes need 6 ms, 2 ms and 1 ms of CPU time. Find the average completion time for the order 6, 2, 1 and for the order 1, 2, 6. Which order is better? (3 marks)

Order 6, 2, 1: finish times 6, 8, 9; average = 23/3 = 7.67 ms.

Order 1, 2, 6: finish times 1, 3, 9; average = 13/3 = 4.33 ms.

Running the shortest jobs first is better.

Q37. What is system software? (02) (2 marks)

System software is software that manages the computer hardware and system resources and provides a platform on which application software runs. Examples: Windows, Linux, macOS, Android, device drivers.

Q38. How does system software manage communication between hardware components? (Any two points) (1+1) (2 marks)

  • It uses device drivers so the OS can send commands to and receive data from devices such as the keyboard and printer.
  • The operating system controls the flow of data between input, output, storage and processing units, for example moving data between RAM and the hard disk.

Q39. How does system software control input devices? (02) (2 marks)

When a key is pressed or the mouse moved, the device driver receives the signal from the device and gives it to the operating system. The OS then passes the input to the correct program and to the CPU for processing.

Q40. How system software handles data storage operations? Describe briefly. (02) (2 marks)

The OS uses the file system to organise files and folders on the storage device. It also controls reading from and writing to the disk and the movement of data between RAM and storage, and keeps track of free space.

Q41. Briefly explain the role of system software in output operations. (02) (2 marks)

For output (for example printing or display) the OS sends the processed data to the device driver, which converts it into commands the output device understands. The OS also queues the jobs when many programs use the same device.

Q42. Give any two examples of system software. (1+1) (2 marks)

Operating systems such as Windows and Linux (also macOS, Android and device drivers).

Q43. How does system software manage storage devices? (Two points) (1+1) (2 marks)

  • The OS organises data on the storage device using the file system (files, folders, metadata).
  • It controls the read and write operations, keeps track of free blocks and protects the data integrity.

Q44. What role does system software play during data processing by the CPU? (02) (2 marks)

The OS schedules the processes so that each gets CPU time, allocates memory to them and handles interrupts and deadlocks, so that the CPU is used efficiently and no process interferes with another.

Q45. Which system software controls the overall working of a computer? Give three examples. (02) (2 marks)

The operating system controls the overall working of a computer. Examples: Windows, Linux and macOS (Android on mobiles).

Q46. Name the four types of software with one example of each. (3 marks)

TypeExample
System softwareWindows
Programming softwareVisual Studio
Application softwareMS Word
Driver softwarePrinter driver

Q47. Write any three differences between offline and online applications. (3 marks)

OfflineOnline
Works without internetNeeds internet
Data stored on the deviceData stored in the cloud
Installed and updated manuallyAlways the latest version
Example: MS WordExample: Google Docs

Q48. What is an application patch? State two of its functions. (2 marks)

An application patch is a small piece of software that updates, fixes or improves an existing program. Functions: fix bugs, improve security, enhance performance and add features.

Q49. What is software hosting? Name its four types. (3 marks)

Software hosting means deploying and providing access to software on servers so that users can reach it over a network, usually the internet.

Types: on-premises, shared, dedicated and cloud hosting.

Q50. Differentiate between on-premises hosting and cloud hosting (any three points). (3 marks)

On-premisesCloud
Servers owned by the organisationServers belong to a provider (AWS, Azure)
High upfront costPay-as-you-go
Scaling means buying serversScales up or down in minutes
Own staff maintain itProvider maintains it

Q51. Differentiate between a text editor and an IDE. (3 marks)

Text editorIDE
Only writes and edits codeWrites, debugs and compiles code in one window
Light and fastBigger, more features
Needs a separate compilerCompiler built in
Notepad++Visual Studio, Eclipse

Q52. What is a code repository? (02) (2 marks)

A code repository (for example GitHub) is a place where the source code of a project is stored. It keeps all the versions of the code and lets a team share and work on it together.

Q53. What is a translator in computer science? Give one example. (1+1) (2 marks)

A translator is a program that converts source code written in a programming language into machine code. Example: a compiler such as GCC (or the Python interpreter).

Q54. What is an Integrated Development Environment (IDE)? Enlist its two modules. (1+1) (2 marks)

An IDE is a software application that combines the tools needed to develop programs in one interface. Two modules: code editor and debugger (also compiler).

Q55. List four ways in which an IDE helps a programmer. (3 marks)

  • Syntax highlighting makes code readable.
  • Code completion suggests the next part of the code.
  • Debugging runs the code step by step.
  • Error checking underlines mistakes in real time.
  • Compiling and project management in one place.

Q56. Write the uses of any three productivity applications. (3 marks)

  • Word processor (MS Word): essays, reports, letters.
  • Spreadsheet (MS Excel): budgets, calculations, charts.
  • Presentation software (PowerPoint): lectures and business presentations.

Q57. A school wants to use a program on 20 computers that have no internet. Should it use an offline or an online application? Give two reasons. (3 marks)

It should use an offline application.

  • It works without an internet connection, which the computers do not have.
  • It uses the local resources and stores data on the device, so no remote server is needed.

Long questions with answers

Q1. Q.3 Describe the basic role of following in software development with one example each: a. Translator b. Integrated development environment (IDE) c. Code Repository d. Debuggers e. Languages editor (5 marks)

ToolRoleExample
a. TranslatorConverts source code into machine codeGCC compiler, Python interpreter
b. IDEEditor, debugger and compiler in one interfaceVisual Studio, Eclipse
c. Code repositoryStores code with version control and team sharingGitHub
d. DebuggerRuns code step by step, shows variable values, finds errorsDebugger in VS Code
e. Language editorWrites and edits code (syntax highlighting)Notepad++, Sublime Text

Q2. Q.3 (a) Convert (365)10 to binary. (b) Convert (10110011)2 to octal and hexadecimal. (c) Convert (1BE8)16 to decimal. (6 marks)

(a) 365 = 256 + 64 + 32 + 8 + 4 + 1 = (101101101)2.

(b) 10110011: groups of 3: 010 110 011 = 2 6 3 so (263)8; groups of 4: 1011 0011 = B 3 so (B3)16.

(c) 1BE8 = 1x4096 + 11x256 + 14x16 + 8 = 4096 + 2816 + 224 + 8 = (7144)10.

Q3. Describe the six main functions of an operating system with one example of each. (6 marks)

FunctionWhat it doesExample
Process managementGives CPU time to processes and decides their orderRunning Word and Chrome together
Memory managementAllocates and frees RAM, swaps processesP1 swapped in while P0 swapped out
File managementCreate, copy, move, rename, delete filesWindows File Explorer
Device managementControls I/O devices through driversPrint queue for a shared printer
Network managementShares network resources, groups and privilegesSchool lab server
Security managementPasswords, user accounts, access controlWindows login

Q4. Explain how an operating system manages (a) the CPU, (b) memory, (c) storage and (d) I/O devices. (6 marks)

  • CPU: schedules processes (FCFS, SJN, Round Robin), keeps the CPU busy, sets priorities and handles interrupts and deadlocks.
  • Memory (RAM): allocates memory to programs, frees it when they close, keeps a record of free memory and swaps processes.
  • Storage: manages hard disks and SSDs through the file system: read/write operations, directories, data integrity.
  • I/O devices: manages keyboard, mouse, printer through device drivers and buffering.

Practice MCQs

Choose the answer in your mind first. The answer is shown below each question.

1. What is the decimal value of (10110)2?

  1. 22
  2. 13
  3. 23
  4. 20

Answer: a

Add the place values of the 1 bits: 16 + 4 + 2 = 22.

2. What is the decimal value of the 8-bit signed (2's complement) number 10000000?

  1. 128
  2. 0
  3. -128
  4. -127

Answer: c

MSB is 1, so it is negative: 2's complement of 10000000 is 10000000 = 128, so the value is -128.

3. Why are complements used in computers to subtract numbers?

  1. Because computers cannot understand 0
  2. To make numbers larger
  3. So that subtraction can be done by the same adder circuit
  4. To avoid using binary

Answer: c

A - B is done as A + (complement of B), so one adder serves both operations.

4. What is the main aim of a multiprogramming OS?

  1. To give the users a colourful interface to work on
  2. To run only one program at a time on the computer
  3. To keep the CPU busy when a program waits for I/O
  4. To increase the size of the RAM of the computer

Answer: c

Maximum CPU utilisation is the aim.

5. A new printer does not work after it is connected to a computer, but works after a program from its CD is installed. What was installed?

  1. A word processor
  2. A compiler
  3. A device driver
  4. A spreadsheet

Answer: c

The driver lets the OS communicate with the printer.

Chapter 1 is free

You are reading a free chapter. The other chapters of this subject are Premium. Rs 3000 now, Rs 4000 from 15 Dec.

All chaptersComputer ScienceNext chapterComputational Thinking & Algorithms