Cs theory
Cs theory
(a) What are the functions of various operational units of a computer system? What is von
Neumann Architecture? How can you relate von Neumann architecture to an actual
computer? Explain with the help of an example configuration.
(b) Compare and contrast the characteristics and/or organisation of the following:
(d) What is an instruction? What are its components? What is the role of an instruction in a
computer? Explain with the help of an example. Where does the instruction reside at the
time of execution.
(e) A 2.5 inch diameter disk has 8 platters with each platter having two data recording
surfaces, each platter on disk has 4084 tracks, each track has 400 sectors and one sector
can store 1 MB of data. Calculate the storage capacity of this disk in Bytes. If this disk has a
seek time of 2 milli-seconds and rotates at the speed of 6000 rpm, find the Access time for
the disk. Make suitable assumptions, if any.
(f) What are the uses of various components of motherboard of a computer? List at least four
output devices and ports to which these devices can be connected. Explain the
characteristics of these output devices and ports.
Ans 1.
---
Control Unit (CU): Directs operations within the CPU and between other units.
It’s a computer design model that uses a single memory for storing both instructions and
data.
Actual computers use this by employing a single memory for program instructions and data,
improving resource efficiency. For example, a standard desktop with a single memory (RAM)
for both purposes follows this architecture.
---
DRAM (Dynamic RAM): Slower, needs frequent refreshing, cheaper, used in main memory.
SRAM (Static RAM): Faster, no need for refreshing, more expensive, used in cache memory.
---
Combined: 1000000.0000001.
---
3. Role: Enables CPU to execute tasks; for instance, an ADD instruction adds values.
---
1. Storage Capacity:
2. Access Time:
---
1. Motherboard Components:
---
1. Data Compression Utility: Reduces file sizes for efficient storage and transfer.
Q2. (a) Why do you need virus detection software? What are their drawbacks? What are the
techniques to identify a virus? List any 4 latest virus for desktop systems.
(b) Consider that you have to run several computer programs simultaneously on a computer.
Each
program takes input from a file and output information on a printer. How does different
components of an Operating system (like memory management, I/O management, Process
management, file system and user interface) will help in execution of these programs.
(c) Explain the differences between procedural programming and object oriented
programming
with the help of one example program of each.
(d) Draw a flow chart of a program that adds N even numbers starting from 1. The value of N
should be input by the user.
(e) List the elements of a programming language. Explain the terms data type, expression,
assignment; and logical, relational and equality operators with the help of an example each.
(f) What are the phases of project development in which project management software can
help.
Explain with the help of examples.
(g) Explain the following with the help of an example/diagram, if needed:
(i) Development Model for Open Source Software
(ii) Tools for program development
(iii) Use of functions and Macros
(iv) Database and Database Management System
Ans 2.
Here is a concise response to each question:
---
1. Need for Virus Detection: Protects systems from malicious software that can corrupt files,
steal data, and disrupt operations.
2. Drawbacks: Slows down system performance, may have false positives, requires regular
updates, and doesn’t guarantee 100% detection.
4. Latest Viruses for Desktop Systems: Emotet, TrickBot, Ryuk, and Qbot.
---
1. Memory Management: Allocates memory for each program and ensures efficient use of
RAM.
2. I/O Management: Manages data flow between files, programs, and the printer.
3. Process Management: Creates and schedules processes, ensuring each program runs
smoothly.
4. File System: Organizes and manages input/output files.
5. User Interface: Allows users to interact with and monitor program execution.
---
void main() {
int x = 5, y = 10;
printf("Sum = %d", x + y);
}
Object-Oriented Programming: Focuses on objects that contain data and methods. Example
in Python:
class Calculator:
def add(self, x, y):
return x + y
calc = Calculator()
print("Sum =", calc.add(5, 10))
---
1. Start
2. Input N
Increment count by 1
5. Print sum
6. End
---
4. Operators:
Example:
x, y = 5, 10
if x < y and x != y:
print("x is less than y")
---
(f) Phases of Project Development for Project Management Software
---
2. Tools for Program Development: Include IDEs (like Visual Studio Code), debuggers, and
version control tools (e.g., Git) that streamline coding and collaboration.
Q3.
(a) Explain the characteristics of any two guided and any two unguided channels for data
transmission.
(b) Four branch offices of an organisation are located in four major cities of a vast country.
Explain the characteristics of the network that will be needed for every branch office. All the
four branch offices network should also be connected by another network. Explain the
characteristics of this network also.
(c) What is Internet? What are the major protocols used on Internet? What is an IP address?
How
can an IP address be related to a web address? Explain with the help of an example.
(d) What are the different features of a browser? If you want to perform Online Banking
Transactions, what precautions will you take before performing a transaction?
(e) Describe the process of creating a web email account. What are the different
components of a
mail message? Explain with the help of a diagram.
(f) Explain the following in the context of Internet and its applications, giving their features
and
uses:
(i) Online Education
(ii) eCommerce
Ans.
Here’s a brief answer for each question:
---
1. Guided Channels:
Twisted Pair Cable: Consists of pairs of wires twisted together to reduce interference,
commonly used in telephone and LAN connections.
Fiber Optic Cable: Uses light pulses for high-speed, long-distance data transmission with
minimal signal loss, often used for internet backbone connections.
2. Unguided Channels:
Radio Waves: Wireless medium with long-range capabilities, ideal for broadcast services like
AM/FM radio.
Microwave: Used for point-to-point communication with high data rates over short distances,
often used in satellite and cellular networks.
---
Local Area Network (LAN): Connects devices within a single branch, providing high-speed
data transfer and resource sharing.
Characteristics: High bandwidth, low latency, secure data access within the office.
Wide Area Network (WAN): Connects LANs across large geographic areas, allowing data
sharing across all branches.
Characteristics: Provides inter-branch connectivity, often uses VPNs for secure data transfer
over the internet.
---
2. Major Protocols: TCP/IP (data transfer), HTTP/HTTPS (web browsing), FTP (file transfer),
SMTP (email).
4. IP Address and Web Address Relation: A domain name (e.g., example.com) is mapped to
an IP address by DNS servers, allowing users to access websites without memorizing IPs.
---
1. Browser Features: Tabs for multiple pages, bookmarks, history, private browsing,
extensions, and security features.
2. Online Banking Precautions:
---
Enter personal details, choose a username and password, and verify identity.
---
1. Online Education:
2. eCommerce:
Features: Online shopping, secure payment options, customer reviews, and delivery
tracking.
Uses: Allows users to purchase goods and services from anywhere with internet access.