Blog
Introduction to ICT BSCS 1st Term Past Paper 2013 UOS
University of Sargodha
BS Term System, 1st Term Exam 2013
Subject: Computer Science
Course: Introduction to Computing
CMP: 100
Time Allowed: 2:30 Hours
Maximum Marks: 60
Note: Section-I is compulsory. Attempt any four questions from section-II.
Section-I Objective Part
Q.NO:1 Write short answers to the following questions in 2-3 lines only. (12*2=24)
- What is the largest positive number one can represent in 5-bit 2’s complement code?
- What is the difference between operating system and system software?
- Convert 1010 from 2’s complement to Decimal.
- What is the difference between Compiler and interpreter?
- Convert F4H to decimal if the number is (a) unsigned, (b) signed?
- Define Artificial Intelligence?
- Differentiate between web browser and Search engine?
- What do you mean by network topology?
- Briefly describe the working of NIC card?
- What is the difference between software engineering and system engineering?
- Define Information Technology?
Subjective Part (9×4=36)
- Explain the applications of Computer Graphics in problem solving.
- Define Software engineering? Explain different elements of Software engineering?
- Elaborate the different functions of Operating systems?
- Define programming language? Also differentiate between Low level and assembly language?
- Write an algorithm to find the sum of first 20 odd Integers. Also draw its flow diagram?
- Define Computer ethics, Intellectual property rights; also pinpoint the IT code of conduct for computer use?
Solved answers
Q1 – Short questions
(i) Largest positive number in 5-bit 2’s complement: the leftmost bit is the sign bit, so the largest positive value is 01111 = +15. In general, n bits give a range from −2n−1 to 2n−1−1, i.e. −16 to +15 for 5 bits.
(ii) Operating system vs system software: system software is the whole group of programs that run and support the computer (operating system, utilities, device drivers, language translators). The operating system is one type of system software: it manages hardware, memory, files and processes and gives the user an interface.
(iii) 1010 (2’s complement) to decimal: the sign bit is 1, so the number is negative. Take the 2’s complement: invert 1010 → 0101, add 1 → 0110 = 6. Answer: −6.
(iv) Compiler vs interpreter: a compiler translates the whole program into machine code at once and produces an executable file; errors are reported after compilation and the program runs fast. An interpreter translates and executes one statement at a time, stops at the first error, produces no separate executable and runs slower (e.g. C++ uses a compiler, Python an interpreter).
(v) F4H to decimal: F4H = 1111 0100. (a) Unsigned: 15×16 + 4 = 244. (b) Signed (8-bit 2’s complement): sign bit is 1, so 244 − 256 = −12.
(vi) Artificial Intelligence: the branch of computer science that builds systems able to perform tasks that normally need human intelligence, such as learning, reasoning, understanding language, recognising images and making decisions (e.g. expert systems, robotics, chatbots).
(vii) Web browser vs search engine: a web browser is application software used to open and display web pages (Chrome, Firefox, Edge). A search engine is a website that finds pages matching keywords from its index (Google, Bing). You use a browser to reach a search engine.
(viii) Network topology: the physical or logical arrangement of computers, cables and devices in a network, i.e. how nodes are connected and how data flows. Common types: bus, star, ring, mesh, tree and hybrid.
(ix) Working of a NIC: the Network Interface Card connects a computer to a network. It has a unique MAC address, converts data from the computer into signals for the cable or wireless medium and back, frames the data, checks for errors and controls access to the medium (e.g. Ethernet).
(x) Software engineering vs system engineering: software engineering applies engineering principles to developing, testing and maintaining software only. System engineering deals with the complete system — hardware, software, people and processes — and how all parts work together; software engineering is one part of it.
(xi) Information Technology: the use of computers, software, networks and telecommunication to collect, store, process, retrieve and share information.
Q2 – Applications of computer graphics in problem solving
Computer graphics means creating and manipulating pictures with a computer. Applications:
- CAD/CAM: engineers and architects design buildings, cars and circuits, test them on screen and change designs cheaply.
- Scientific and data visualisation: charts, graphs, 3D models and simulations make large data and weather, medical or engineering results easier to understand.
- Medical imaging: CT, MRI and ultrasound images help doctors diagnose problems.
- Simulation and training: flight and driving simulators train people safely.
- Education: animations and diagrams explain difficult concepts.
- Graphical user interfaces: icons, windows and menus make computers easy to use.
- Entertainment and advertising: games, films, animation and presentations.
- Maps and GIS: digital maps for planning, navigation and resource management.
Q3 – Software engineering and its elements
Software engineering is the systematic, disciplined and measurable approach to the development, operation and maintenance of software, so that it is reliable, delivered on time and within budget.
Elements:
- Process: the framework of activities — communication, planning, modelling, construction and deployment (models like waterfall, spiral, agile).
- Methods: technical “how-to” for requirements analysis, design, coding, testing and maintenance.
- Tools: automated support for the process and methods, e.g. CASE tools, IDEs, version control, testing tools.
- Quality focus: the base layer; every activity aims at quality through reviews, testing and standards.
- People and project management: planning, estimation, scheduling, risk management and teamwork.
Q4 – Functions of an operating system
- Process management: creates, schedules and terminates processes and shares the CPU between them.
- Memory management: allocates and frees main memory, keeps track of used space and uses virtual memory.
- File management: creates, deletes, organises and protects files and folders.
- Device management: controls input/output devices through drivers and handles buffering and spooling.
- Security and protection: passwords, user accounts and access rights.
- User interface: command line or graphical interface for the user.
- Booting: starts the computer and loads the system.
- Error detection and resource accounting: monitors errors and records resource use.
Q5 – Programming language; low-level vs assembly language
A programming language is a set of words, symbols and rules (syntax) used to write instructions that a computer can execute, e.g. C++, Java, Python.
Low-level languages are close to the hardware. They include machine language and assembly language:
- Machine language is written in binary (0s and 1s), is executed directly by the CPU without translation, is very fast but very hard to write, read and debug, and is machine dependent.
- Assembly language uses mnemonics (MOV, ADD, SUB) instead of binary, so it is easier to write and understand. It must be converted to machine code by an assembler, and it is still machine dependent.
Q6 – Algorithm: sum of the first 20 odd integers
- Start.
- Set SUM = 0, COUNT = 1, NUM = 1.
- Repeat while COUNT ≤ 20: SUM = SUM + NUM; NUM = NUM + 2; COUNT = COUNT + 1.
- Print SUM.
- Stop.
Flow diagram: Start (oval) → process box “SUM = 0, COUNT = 1, NUM = 1” → decision diamond “COUNT ≤ 20?” → Yes: process box “SUM = SUM + NUM, NUM = NUM + 2, COUNT = COUNT + 1”, then arrow back to the diamond → No: output box “Print SUM” → Stop (oval).
Output: 1 + 3 + 5 + … + 39 = 20² = 400.
Q7 – Computer ethics, intellectual property rights and IT code of conduct
Computer ethics are the moral principles that guide the correct use of computers and information, e.g. respecting privacy, not stealing data and not misusing systems.
Intellectual property rights are legal rights over creations of the mind — software, books, designs, inventions, brands. They are protected by copyright, patents, trademarks and trade secrets; copying software without a licence (piracy) violates them.
IT code of conduct (examples):
- Do not use a computer to harm other people.
- Do not interfere with other people’s computer work or files.
- Do not access data or systems without authorisation.
- Do not use a computer to steal or commit fraud.
- Do not copy or use software you have not paid for.
- Do not use others’ resources without permission or credit.
- Do not appropriate others’ intellectual output.
- Think about the social effects of the programs you write and use computers with respect and consideration.
Answers prepared by Shining Study for revision. Check them against your class notes and teacher’s guidance.
