Assignment - Bca - Introduction To It
Assignment - Bca - Introduction To It
22060110002
Q2 The basic function of an operating system is to provide an interface of the system and the
user. Elaborate this statement with examples from any Operating System you are familiar with.
Ans:
Most operating systems perform the functions given below. A seprate module of
operating system software performs each of these functions:
1. Process Management.-- Process management module takes care of creation and deletion
of processes, scheduling of system resources to different processes requesting them, and
providing mechanisms for synchronization and communication among processes.
2. Memory management.-- Memory management module takes care of allocation and de-
allocation of memory space to programs in need of this resource.
3. File Management.-- File management module takes care of file-related activities such as
organization, storage, retrieval, naming , sharing, and protection of files.
4. Security-- Security module protects the resources and information of a computer system
against destruction and unauthorized access.
5. Command Interpretation- Command interpretation module takes care of interpreting user
commands, and directing system resources to process the commands. With this mode of
interpreting user commands, and directing system resources to process the commands.
With this mode of interaction with a system, users are not much concerned about
hardware details of the system.
An operating system also performs few other functions such as accounting of system resource
usage by all user (or processes), maintenance of log of system usage by all users, and
maintenance of internal time clock.
Q3 Describe what is meant by “interrupts” in a microprocessor system and explain why it
would be used?
Ans:
An interrupt is an unexpected hardware initiated subroutine call or jump that temporarily
suspends the running of the current program.
Interrupts occur when a peripheral device asserts an interrupt input pin of the micro-processor.
Provided the interrupt is permitted, it will be acknowledged by the processor at the end of the
current memory cycle. The processor then services the interrupt by branching to a special service
routine written to handle that particular interrupt. Upon servicing the device, the processor is
then instructed to continue with what is was doing previously by use of the "return from
interrupt" instruction.
The status of the program being executed must first be saved. The processors registers will be
saved on the stack, or, at very least, the program counter will be saved. Preserving those registers
which are not saved will be the responsibility of the interrupt service routine. Once the program
counter has been saved, the processor will branch to the address of the service routine.
Q4 How do caches help improve performance? Why do systems not use more or larger
caches if they are so useful?
Ans:
Use of main memory helps in minimizing disk-processor speed mismatch to a large
extent because the rate of data fetching by a computer’s CPU from its main memory is about 100
times faster than that form a high speed secondary storage like disk. The overall performance of
processor can be improved greatly by minimizing the memory processor speed mismatch. Cache
memory is commonly used for this purpose. It is an extremely fast and small memory between
CPU and main memory. Its access time is closer to the processing speed of CPU. It acts as a
high-speed buffer between CPU and main memory and is used to temporarily store very active
data and instructions during processing.
Q5 List out the similarities and differences between 7 bit and 8 bit ASCII?
Ans:
ASCII is of two types – ASCII -7 and ASCII-8. ASCII -7 is a 7 bit code that can
represent 128 (27) different characters. Computers using 8 bit byte (group of 8 bits for 1 byte)
and the 7 bit ASCII either set the 8th bit (leftmost bit) of each byte as zero or use it as a parity bit.
ASCII-8 is an extended version of ASCII-7. It is an 8-bit code that can represent 256 (28)
different characters. The additional bit is added to the left of the 7th bit (leftmost bit) of ASCII-7
codes.
Rajesh Kumar Roll No. 22060110002
Total Marks: 10
Assignment B
Q1 Discuss different types of communication networks, based on the data transfer and
control technique.
Answer: A computer network is a network of computers that are geographically distributed, but
connected in a manner to enable meaningful transmission and exchange of data among them.
Sharing of information, resources (both hardware and software), and processing load is the main
objective of a computer network. Communication is the process of transferring a message from
one point to another. There basic elements of any communication system are
1. Narrow band. – Narrowband or sub-voice grade channels have speed in the rage of 45 to
300 baud. They are used to handle low data volumes, and are adequate for low-speed
devices. They are used mainly for telegraph lines and low speed terminals.
2. Voice band –Voice band channels have speed up to 9600 baud. They are so called
because their major application is in ordinary telephone voice communication
3. Broadband –Broadband channels are used for transmission of large volumes of data at
high speed. They have speed of 1 million baud or more. Broadband facility is used for
high-speed computer-to-computer communication or for data transmission to several
different devices simultaneously.
Q2 a) What are the names and functions of the main parts of the system unit?
Answer
Parts of a computer
A computer is really a system of many parts working together. The physical parts, which
we can see and touch, are collectively called hardware. (Software, on the other hand,
refers to the instructions, or programs, that tell the hardware what to do.)
System unit
The system unit is the core of a computer system. Usually it's a rectangular box placed on
or underneath our desk. Inside this box are many electronic components that process
information. The most important of these components is the central processing unit
(CPU), or microprocessor, which acts as the "brain" of our computer. Another
component is random access memory (RAM), which temporarily stores information that
the CPU uses while the computer is on. The information stored in RAM is erased when
the computer is turned off.
Storage
Our computer has one or more disk drives—devices that store information on a metal or
plastic disk. The disk preserves the information even when your computer is turned off.
Mouse
A mouse is a small device used to point to and select items on our computer screen.
Although mice come in many shapes, the typical mouse does look a bit like an actual
mouse. It's small, oblong, and connected to the system unit by a long wire that resembles
a tail. Some newer mice are wireless.
Keyboard
A keyboard is used mainly for typing text into our computer. Like the keyboard on a
typewriter, it has keys for letters and numbers, but it also has special keys:
The function keys, found on the top row, perform different functions depending on where
they are used.
The numeric keypad, located on the right side of most keyboards, allows us to enter
numbers quickly.
The navigation keys, such as the arrow keys, allow you to move your position within a
document or webpage.
Monitor
A monitor displays information in visual form, using text and graphics. The portion of the
monitor that displays the information is called the screen. Like a television screen, a
computer screen can show still or moving pictures.
There are two basic types of monitors: CRT (cathode ray tube) monitors and LCD (liquid
crystal display) monitors. Both types produce sharp images, but LCD monitors have the
advantage of being much thinner and lighter. CRT monitors, however, are generally more
affordable.
Printer
A printer transfers data from a computer onto paper. We don't need a printer to use our
computer, but having one allows us to print e-mail, cards, invitations, announcements,
and other materials. Many people also like being able to print their own photos at home.
Speakers
Speakers are used to play sound. They may be built into the system unit or connected
with cables. Speakers allow you to listen to music and hear sound effects from your
computer.
Second-generation Language:-
In second-generation language, instructions written with mnemonics to simplify the
program. The symbolic instruction language is called Assembly Language. In order to execute
these instructions, all mnemonics are converted into binaries with the help of a translator known
as Assembler. The program written using mnemonics is called Source program.
Third-generation Language:
In third-generation languages, instructions are written using English language with
symbols and digits. Third generation languages are also known as high level languages (HLL).
The complete instruction set written in one of these languages is called a computer program or
source program. In order to execute the instructions, the source program is translated into binary
form by a compiler or interpreter.
For Example :
#include <stdio.h>
main ()
{
int a, b, s;
scanf(“%d %d”, &a, &b);
s = a + b;
printf(“\n sum = %d, s);
}
Translates/complies the program
00101011 01000101…..
01101 100………………………….
Input 5 3
Sum = 8 output
Fourth-generation Languages:-
Fourth-generation languages refer to software packages which are mostly written in one
of the languages for any specific application. It is very useful for the user to perform a task
without written programs. The language is also called as command line language.
Some of the commonly used 4 GL packages are dBase, FoxPro, SQL.
Main use of third generation languages: main used of third generation language for high level
languages are FORTRAN, BASIC, COBOL, PASCAL, PROLOG, C, C++, etc.
Q4 What is the difference between analog and digital signals? Give examples of each.
Which device would you use to convert one into the other?
Answer:
When data is propagated by means of electrical signals, the signals may be in either
digital or analog form. An analog signal is a power range that varies continuously. Amplitude (v)
of an analog signal is measured in volts and its frequency (f) in hertz (Hz). Higher the frequency,
the more number of times it crosses the time axis. On the other hand, a digital signal is a
sequence of voltage pulses represented in binary form. Computer generated data is digital,
whereas telephone lines used for data communication in computer networks usually carry analog
signals. When digital data has to be transmitted on an analog facility, they must be converted to
analog form, first. When analog signals are transmitted over long distances, they become weak
and distorted as they travel. Hence, amplifiers are used at periodic intervals along analog
communication lines between modems to amplify (strengthen) weak analog signals. Signals are
also transmitted in digital mode. In this case, modems are not needed. When digital signals ae
transmitted over long distances, repeaters are used at periodic intervals along digital
communication lines to strengthen weak digital signals.
Modulation is the technique of converting a digital signal to its analog form, and demodulation is
the reverse process of converting an analog signal to its digital form.
There are three forms of modulation –Amplitude, Frequency, and Phase Modulation.
Q5 What are the three major categories of system software? What are the main functions
of system software? Give example of 2-3 system software you are familiar with.
Answer:
System software is a set of one or more programs designed to control the operation and
extend the processing capability of a computer system. A computer’s system software performs
one or more of the following functions:
• Supports development of other application software.
• Supports execution of other application software.
• Monitors effective use of various hardware resources such as CPU, memory, peripherals
etc.
• Communicates with and controls operation of peripheral devices such as printer, disk,
tape.
Hence, system software makes the operation of a computer system more effective and efficient.
It helps the hardware components work together, and provides support for the development and
execution of application software (programs). The programs included in a system software
package are called system programs.
• Process Management –Process management module takes care of creation and deletion of
processes, scheduling of system resources to different processes requesting them, and
providing mechanisms for synchronization and communication among processes.
• Memory Management –Memory management module takes care of allocation and de-
allocation of memory space to programs in need of this resource.
• File Management –File Management module takes care of file-related activities such as
organization, storage, retrieval, naming, sharing, and protection of files.
• Security –Security module protects the resources and information of a computer system
against destruction and unauthorized access.
Total Marks: 10
Assignment C
1. Which of the following is not to be used for data handling in transaction system?
1) Batch Processing
2) On-Line Processing
3) Real Time Processing
4) None
Answer:
10 What is the name given to an entire programme written in a high level language and
converts it into machine language code is:
1) Assembler
2) transistor
3) compiler
4) system software
Answer: 3)
13 An instruction that can be recognized and used without translation must be written
in
1) BASIC
2) Machine code
3) Assembly code
4) Source code
Answer: 2)
14 The only language which is machine specific and which a computer understands
directly is called
1) Assembly language
2) High level language
3) Lower level language
4) Machine language
Answer: 4)
15 A bit is
1) A single digit
2) Computer data which is represented in binary form
3) Combination of pulses
4) None
Answer: 2)
16 Which one does Magnetic disk may be driving factor for new trends in OS design.
1) New H/W
2) New S/W
3) New Application
4) New Computing Paradigm
Answer: 4)
25 The set of wires, connecting the microprocessor & the memory, through which the
data flows, is called:
1) A data bus
2) A data Wire
3) Virtual Memory
4) A database
Answer: 4)
28 COMPARE is a / an
1) Arithmetic function of the ALU
2) Logical function of ALU
3) Input-Output function of the CPU
4) None of the above
Answer: 1)
29 Peripherals’ are:
1) A part of CPU
2) Output devices alone
3) Input devices alone
4) Input, Output and secondary Storage devices
Answer: 4)
30 The movement of the read/write head of a floppy is
1) Circumferential
2) Radial
3) Rotary
4) None
Answer: 3)
Answer: 3)