Blog
Computer (Introduction & Applications) Past Paper Spring 2022 – BS 1st Semester Punjab University (COMP-111)
University of the Punjab BS 4-year programme, first semester Spring 2022, Computer (Introduction and Applications) COMP-111 paper (60 marks, 3 hours). The question paper is the official University of the Punjab paper published on pu.edu.pk; it is retyped here and the answers are written by Shining Study. Solved answers cover all 15 short questions and the long questions on video display adapters, source data entry devices and computer viruses.
Solved answers
Q1 – Short answers (15 × 2)
1. SRAM vs DRAM. SRAM (static RAM) stores each bit in flip-flops, needs no refreshing, is faster and costlier – used for cache. DRAM (dynamic RAM) stores bits as charge in capacitors that must be refreshed thousands of times a second; it is slower, cheaper and denser – used for main memory.
2. Magnetic strip card. A plastic card with a magnetic stripe on the back that stores data such as account number and expiry date; it is read by swiping through a card reader – e.g. older ATM/credit cards, hotel key cards.
3. Why machine language executes faster. Machine language is already in binary instructions the CPU understands directly, so no translation (compiling/interpreting) is needed at run time and there is no overhead.
4. Causes of virus in a computer. Opening infected email attachments, downloading pirated software or files from untrusted websites, infected USB drives, clicking malicious links/ads, unpatched operating systems and no antivirus.
5. CPU registers. Small, very fast memory locations inside the CPU that temporarily hold data, instructions and addresses – e.g. Accumulator, Program Counter, Instruction Register, MAR, MDR.
6. CAD vs CAM. CAD (Computer-Aided Design) uses software such as AutoCAD to design and draft products and buildings. CAM (Computer-Aided Manufacturing) uses computers to control machines (CNC, robots) that actually manufacture the designed product.
7. Web publishing. Creating web pages (text, images, video) and uploading them to a web server so they are available to everyone on the internet – using HTML editors, CMSs like WordPress and web hosting.
8. Active vs passive cell in Excel. The active cell is the currently selected cell (highlighted border) where data will be entered; its address appears in the Name Box. All other cells are passive (inactive) until selected.
9. Recovering an accidentally deleted file. Yes. A file deleted normally goes to the Recycle Bin, from where it can be restored (right-click → Restore). If it was permanently deleted (Shift+Delete), it may be recovered from a backup/File History or with recovery software, as long as it has not been overwritten.
10. Two types of OS by user interaction. Command-line interface (CLI) OS, e.g. MS-DOS, where commands are typed; and Graphical user interface (GUI) OS, e.g. Windows, macOS, where icons, menus and a mouse are used.
11. Extended partition. On MBR disks only four primary partitions are allowed; an extended partition is a special primary partition that acts as a container for many logical drives, allowing more than four partitions.
12. Formula and function to add A1–A5. Formula: =A1+A2+A3+A4+A5. Function: =SUM(A1:A5).
13. DBMS. A Database Management System is software that creates, stores, manages and retrieves data in databases and controls access, security and integrity – e.g. MySQL, Oracle, MS Access, SQL Server.
14. Why resolution matters. Resolution is the number of pixels on the screen (e.g. 1920×1080). Higher resolution gives sharper, clearer images and text and more space on screen; low resolution looks blurred and pixelated.
15. Why foreign keys are used. A foreign key links a table to the primary key of another table; it creates relationships between tables and enforces referential integrity (no order for a non-existent customer).
Q2 (1) – Video display adapter and its types
A video display adapter (graphics card / video card) is the hardware that converts data from the CPU into video signals that a monitor can display. It has its own processor (GPU) and memory (VRAM) and connects through ports such as VGA, DVI, HDMI and DisplayPort.
- MDA (Monochrome Display Adapter, 1981) – text only, one colour.
- CGA (Color Graphics Adapter) – 4 colours at 320×200.
- EGA (Enhanced Graphics Adapter) – 16 colours at 640×350.
- VGA (Video Graphics Array) – 16 colours at 640×480 or 256 colours at 320×200; the standard analogue connector.
- SVGA / XGA – 800×600, 1024×768 and higher with thousands to millions of colours.
- Modern GPUs – integrated (built into the CPU/motherboard, shares RAM) and dedicated/discrete (separate card with its own VRAM, used for gaming, video editing and AI) supporting Full HD, 4K and above.
Q2 (2) – Source data entry devices
Source data entry devices capture data directly from its source in machine-readable form, without typing it through a keyboard. They reduce errors and save time.
- Scanners – flatbed, handheld and sheet-fed scanners convert paper documents and images into digital form.
- OCR (Optical Character Recognition) – reads printed/handwritten text into editable text.
- OMR (Optical Mark Recognition) – reads marks on forms such as MCQ answer sheets.
- MICR – reads magnetic ink characters on bank cheques.
- Bar code readers – read UPC/bar codes on products at point-of-sale terminals.
- Magnetic stripe and smart card readers, RFID readers.
- Digital cameras and webcams – capture images and video.
- Microphones and voice recognition – audio input and speech-to-text.
- Biometric devices – fingerprint, face and iris scanners for identification.
- Sensors – temperature, pressure and motion sensors in data logging.
Q2 (3) – Computer virus, types and prevention
A computer virus is a malicious program that attaches itself to files or programs, copies itself and spreads to other files and computers, and can damage data, slow the system or steal information.
- Boot sector virus – infects the boot record and loads at start-up.
- File infector – attaches to .exe/.com files.
- Macro virus – written in macros of Word/Excel documents.
- Polymorphic virus – changes its code each time to avoid detection.
- Resident virus – stays in memory and infects files as they are opened.
- Multipartite virus – infects both boot sector and files.
- Related malware: worms (spread over networks by themselves), Trojan horses (look useful but harmful), ransomware, spyware.
Preventive measures: install a reputable antivirus and keep it updated; keep the OS and software patched; do not open unknown email attachments or links; download software only from official sources; scan USB drives before use; enable the firewall; take regular backups; use strong passwords and avoid pirated software.
