Computer 8
Computer 8
E W
GATEWAY TO
WAY
N
E
GATE R SCIENC
EW
N
M P UTE
CO BOO
K
h
Wit rials
Tuto
8
eo
Vid
COMPUTER SCIENCE
NEW GATEWAY
TO
COMPUTER SCIENCE
8
Authors
Dinesh Adhikari
Dilendra Prasad Bhatt
Laxman Adhikari
Shekhar Poudel
ISBN : 9789937579315
© : Publisher
No part of this book may be reproduced or transmitted by means (electronic,
photocopying, recording or otherwise) without prior written permission from the
publisher. Any breach of this condition will entail legal action and prosecution.
Printed in Nepal
Preface
It has become a fundamental right of children to get computer education. It is
very essential to get basic to advance knowledge about computer education to
compete the future. Nepal government has prescribed the syllabus and course
outline for the computer education from primary to higher secondary level. But
students are not able to get quality education due to the lack of systematic course
book and the computer system in the school. So we have developed the complete series
of computer science.
Along with the evolution of human beings new thoughts, area of knowledge and
technology also developed together. Among the eruptions, ICT (Information and
Communication Technology) is one which has unquestionably become important part
of human beings. A person is not better than a caged pigeon if s/he is far from computer
technology in this century. New Gateway to Computer Science is a complete package
which obviously supports a lot to the students as this is one of the most useful Text
Book, so far available in the market.
This book is completely prepared considering the level of the students. This text has the
various salient features like it focuses on child psychology, pictorial descriptions, video
tutorials, quiz section, practical sections, etc.
How to get video tutorials?
1. Install QR code reader apps on your mobile device (smart phone) from play store.
2. After installation, open the apps from your device.
3. When you open this apps, a camera will appear.
4. Move your camera over the QR code picture (Scan here for video tutorials) that is
provided in your text book.
5. Now QR code reader automatically scans it and displays the link of related video.
6. Touch on the link and open it in YouTube for video tutorials.
Ensure that you have internet connection before scanning the code from the text
book.
It is impossible to acknowledge all who have directly or indirectly encourage me to
prepare this book on this single page. My special thanks goes to the students and
teachers of different schools for their regular interactions during the preparation of this
book.
Comments and constructive suggestions are highly welcomed from the readers and
professionals to update this text book.
Dinesh Adhikari
dinesh.nayaghare@gmail.com
Content
Expected Competency
This
At the end of this chapter
unit, covers
students willthe following
be able to: topics:
• describe the working principle of computer.
• tell the advantages and disadvantages of computer.
• explain the basic computer terminologies.
Introduction
Keyboard Monitor
Mouse Backing Storage Printer
Device
Disk drive
Output
After the data are processed they go to the output devices such as the monitor. The main
task of an output unit is to display the result. The output is always meaningful. The output
devices can be a screen (monitor), printer, plotter, speakers,etc.
Quick Learn
A computer is a powerful tool developed by the human.
The life of human is almost impossible without computer.
A computer is a machine that performs calculations and processes information
with amazing speed and accuracy.
A computer is a machine that receives and processes data according to the
instructions given to it.
Computer gets data and instruction from the input devices like keyboard, mouse,
scanner, microphone, light pen, etc.
Input is the act of entering data and instructions to the computer for
processing.
The CPU is responsible to do the processing activities in the computer system.
The main task of output unit is to display the result.
The output devices can be a monitor, printer, plotter, speakers, etc.
Quick Learn
Computers are 100% accurate machine.
Data is the collection of raw facts which does not carry out any specific
meaning.
Information is the collection of data presented in a systematic way which has the
special meaning.
Programs are the collection of many instructions together in sequence and in a
logical way to solve the problems.
Hardware is the collection of physical parts of the computer system.
Software is a set of instructions and related documentation that tells the computer
what to do or how to perform a task.
Computer software needs hardware to function properly.
Commands are the instructions or order given to the computer to do some
specific task.
Volatile and non-volatile are the types of memory.
RAM is a volatile memory.
Expected Competency
This chapter covers the following topics:
At the end of this unit, students will be able to:
• explain various mechanical calculating devices.
• define various electro-mechanical calculating devices.
• identify the electronic calculating devices.
• tell the history of computer in Nepal.
Introduction
The history of computer was started from the Stone Age. Many inventors worked a lot for
the development of different calculating devices. During that time, so many devices were
developed for calculating and to do mathematical calculations. We are living in the age of
computer. Almost our daily activities are not possible without these calculating devices.
It is used increasingly in each and every field of our life. The history of calculations was
started with the abacus but, first such machine having principle of today’s computing
machine was developed by Charles Babbage in 19th century. According to the technology
and concept used on devices, there were three types of calculating devices such as manual
calculating device, electro mechanical and electronic computers.
Exploring Knowledge!
Konrad Zuse invented the first computer Z1 in 1936 AD and Z2 in 1939
as the first electro-mechanical computer in the world.
Blaise pascal was born on June 19, 1623 and died on August 19, 1662 in Paris,
France.
The first computer mouse was made up of the wood.
Quick Learn
Abacus was the first manual calculating device developed by the Chinese
people before 3000 BC.
Abacus was made up of the wooden frame.
The upper part of abacus is called heaven and the lower part is called
earth.
Slide rule was the invention of William Oughtred which was introduced
in 1620 AD.
Slide rule is also called the first analog device.
William Oughtred also introduced the concept of logarithm.
Blaise Pascal developed the device called Pascaline in 1642 AD.
Pascaline was capable to do the calculations up to eight digits only.
Gottfried Wilhelm von Leibniz invented Stepped Reckoner in 1673 AD.
Stepped Reckoner was used in many calculating machine till 1970 AD.
Jacquard’s Loom
Joseph Marie Jacquard, a silk weaver, invented this machine in
1804 AD. This loom was the first to use punched card with
punched holes. Jacquard’s technology was a real boon to
mill owners, but put many loom operators out of work. The
punched cards controlled the actions of the loom, allowing
automatic production of intricate woven patterns. The punched-
card idea was adopted later by Charles Babbage about
1830 to control his Analytical Engine, and later by Herman Hollerith for tabulating the
1890 USA census.
Lady Augusta Ada Lovelace was a daughter of Lord Byron. She was
born on December 1815 AD and died on November 1852 when she
was of 36 years. She was the first to recognise that the machine had
applications beyond pure calculation, and created the first algorithm
proposed to be carried out by such a machine. As a result, she is often
regarded as the first to recognise the full potential of a “computing machine” and the first
computer programmer.
Quick Learn
Joseph Marie Jacquard invented Jacquard’s Loom in 1804 AD.
Charles Babbage is known as the father of the modern computer.
Babbage was the first person to develop the concept of modern digital
computer.
The first invention of Babbage was difference engine which was developed in
1822 A.D.
Analytical engine was the second invention of Babbage which was introduced
in 1833 AD.
Lady Augusta Ada Lovelace is known as the first computer programmer.
Tabulating Machine Company was developed by Herman Hollerith.
Exploring Knowledge!
Google is founded by Sergey Brin and Larry Page on September 7, 1998.
The World Wide Web Consortium is founded by Tim Berners-Lee.
Apple introduces the Macintosh with mouse and window interface in 1984 AD.
IBM created the first floppy disk in 1967 AD.
Quick Learn
Mark I was the first electromechanical calculating device developed by Howard
Hathaway Aiken.
Mark I is also known as Howard Mark I. It was built by IBM in 1937 AD.
The Atanasoff-Berry Computer was the electromechanical digital computer
built in 1942 AD at Iowa State University by John VincentAtanasoff and
Clifford Berry.
ABC is also called the first digital computer.
ENIAC (Electronic Numerical Integrator and Calculator) was the first electronic
computer designed by John Prosper Eckert and John William Mauchly in
1946 AD.
ENIAC was the first multipurpose electronic computer.
EDSAC (Electronic Delay Storage Automatic Calculator) was the first stored
program electronic computer.
EDSAC was created at the University of Cambridge in England.
UNIVAC (Universal Automatic Computer) was the first commercial
computer developed by John. Presper Eckert and John William Mauchly
in 1951 AD.
EDVAC (Electronic Discrete Variable Automatic Computer) was developed by
John William Mauchly and John Presper Eckert in 1952 AD.
EDVAC was the first computer based on stored program concept.
Divide your class in various groups and conduct a presentation competition on “The
History of Development of the Computer”.
Expected Competency
At the end of this
Thisunit, students
chapter willthe
covers be following
able to: topics:
• explain the generations of the computer.
• tell the features of each generation of the computer.
• identify the memory component of each generation of computer.
Introduction
Computers are truly amazing machines. In previous chapter we discussed about the
historical background of the computer. Computer Generation means the change in
technology that the computers were being used. The term 'generation' was used to
distinguish between varying hardware technologies. But nowadays, generation includes
both hardware and software, which together make up an entire computer system. There
are total five computer generations till date. Based on the period of development and the
features combined, the computers are classified into different generations from first to
fifth generation.
Generation of computer
Each generation has been discussed in detail along with their time period, memory
component and features below:
First Generation
The period of first generation was 1946-1958 AD. First
generation of computer started with using vacuum tubes as the
basic components for memory and circuitry for CPU (Central
Processing Unit). These tubes like electric bulbs produced a lot of
heat. The vacuum tube was developed by Lee De Forest in 1908
AD. In this generation batch processing operating system were
Quick Learn
The first generation computers used vacuum tubes for circuitry and magnetic
drums for memory, and were often huge, taking up entire rooms.
LEE DE FOREST was the inventor of Vacuum Tube.
A vacuum tube is a device generally used to amplify a signal by controlling the
movement of electrons in an evacuated space.
Second Generation
The period of second generation was 1959-1964. The memory
component was transistor of this generation. John Bardeen and Walter
Brattain were the inventors of transistors. These computers were
cheaper, consumed less power, more compact in size, more reliable
and faster than the first generation. In this generation, magnetic cores
were used as primary memory and magnetic tape and magnetic disks as secondary storage
devices. Assembly language and high level programming language like FORTRAN,
COBOL were used during this generation. Batch processing and multiprogramming
operating systems were used in this generation. IBM 1620, IBM 1401, IBM 7094, CDC
1604, CDC 3600, UNIVAC 1108 computers were used during second generation.
Quick Learn
The transistor was invented in 1947 by three scientists J. Bardeen, H.W. Brattain
and W. Shockley.
A transistor is a small device made up of semiconductor material like germanium
and silicon.
Second generation computers used the low level language i.e. machine level
language and assembly language.
Third Generation
The period of third generation was 1964-1971 AD. The third
generation of computer is marked by the use of Integrated Circuits
(IC’s) in place of transistors. A single IC has many transistors,
resistors and capacitors along with the associated circuitry. The IC
was invented by Jack Kilby and Robert Noyce. This development
made computers smaller in size, reliable and efficient. In this generation Remote
processing, Time-sharing, Real-time, Multi-programming Operating System were
used. High level languages like FORTRAN II, III, IV, COBOL, PASCAL PL/1,
BASIC, ALGOL-68, etc. were used during this generation.
IBM-360 series, Honeywell-6000 series, PDP(Personal Data Processor), IBM-370/168,
TDC-316 computers were used during the third generation.
Quick Learn
IC was invented by Robert Noyce and Jack Kilby.
IC is a single component containing a number of transistors.
Transistors were miniaturized and placed on silicon chips, called semiconductors,
which drastically increased the speed and efficiency of computers.
Keyboards and monitors were developed during the period of third generation of
computers.
Fourth Generation
The period of fourth generation is from 1972 to till date. The fourth
generation of computers is marked by the use of microprocessor
which is made with the help of Large Scale Integration (LSI)
and Very Large Scale Integrated (VLSI) circuits. VLSI circuits
having about 5000 transistors and other circuit elements and their
associated circuits on a single chip made it possible to have microcomputers of fourth
generation. Fourth Generation computers became more powerful, compact, reliable,
and affordable. As a result, it gave rise to personal computer (PC) revolution. In this
generation Time sharing, Real time, Networks, Distributed Operating System were
used. All the Higher level languages like C and C++, DBASE, JAVA, Visual Basic,
Quick Learn
In 1981 AD. IBM introduced computer for the home user and in 1984 AD. Apple
introduced the Macintosh microprocessor.
Many high-level languages have been developed in the fourth generation such as
COBOL, FORTRAN, BASIC, PASCAL and C language.
The fourth generation computers became more powerful, compact, reliable and
affordable.
Fifth Generation
The development of fifth generation is started from 1990 which
is still incomplete. In the fifth generation, the VLSI (Very Large
Scale Integration) technology became ULSI (Ultra Large Scale
Integration) technology, resulting in the production of Bio
Chips having more than ten million electronic
components. This generation is based on parallel processing hardware and AI
(Artificial Intelligence) software. AI is an emerging branch in computer science,
which interprets means and method of making computers think like human beings.
We can imagine that this computer will be able to use natural languages like English,
Germany, French and even Nepali for the processing.
Quick Learn
S.N Name of Duration Memory Examples
generation in AD. Components
1 First 1946-1958 Vacuum Tube ENIAC,EDSAC,
EDVAC, UNIVAC etc.
2 Second 1959-1964 Transistors IBM 1620, IBM 1401, IBM
7094, CDC 1604 etc.
3 Third 1964-1971 Integrated IBM-360series,
Circuit Honeywell-6000 series,
PDP, IBM-370/168,
TDC-316 etc.
4 Fourth 1972-till date Microprocessor DEC 10, STAR 1000, PDP 11,
CRAY-1 etc.
EXERCISE
1. Choose the best answer from the given alternatives.
a. What was the memory component of the first generation computers?
i. Slide Rule ii. Abacus iii. Vacuum Tube
b. What was the programming language used by the first generations of computer
i. High level language ii. Machine Language iii. Assembly Language
Expected Competency
Thisunit,
At the end of this chapter covers
students willthe
befollowing
able to: topics:
• identify the types of computers.
• explain the features of each type of computers.
• describe the types of personal/Desktop computers. Laptop / Notebook
Computer and Handheld computer.
Introduction
Computers are classified on the basis of their work, size brand and model. People are
using different types of computers according to their requirement. The computers
that are personally used for simple work may not be compatible to the business
and for complex calculations. The computers that you are used at your home and the
computers that are used for film animation and video editing are totally different.
Next example we can take like the computer using at department store and the
computer used at telecommunication office is totally different. The telecommunication
office needs very high range of computer to work as compared to the computer that is
used at department store. The types of computer are classified according to the purpose of
uses such as special purpose and general purpose computer.
Classification of computer
The computer can be classified as below.
On the basis of work/function
On the basis of Size/ configuration
On the basis of Brand
On the basis of Model
In this class, we are going to explain the types of computer on the basis of work and size
only.
There are three types of computer on the basis of work they are analog, digital and hybrid
computer which we are going to discuss below.
Analog Computers
Analog computers are used to process analog data. Analog
data is continuous nature and which is not discrete or separate.
Such type of data include temperature, pressure, speed, weight,
voltage, depth, etc. Analog computers are the first developed
computers which provide the basis for the development of the
modern digital computers. The Speedometer of a car measures
speed, the change of temperature is measured by a Thermometer, the weight is measured
by Weighting machine are the examples of analog device.
The computers which provide us with continuous information are called analog
computer which represent physical quantities in the form of waves or in continuous
form. Analog computers do not require any storage capability because they measure and
compare quantities in a single operation. Output from an analog computer is generally in
the form of readings on a series of dial or a graph on strip chart.
Features of an analog computer
The speed of an analog computer is high.
These computers are not reliable and do not display actual data.
These computers are the base for
digital computers. Exploring Knowledge!
These computers are difficult to The Antikythera mechanism was an
ancient Greek analog computer.
operate and use.
CT-Scan stands for Computed
These computers are easy to Tomography Scan.
develop.
These computers have small storage capacity or no memory.
Digital Computers
The computers which present physical quantities with the help of symbols or numbers
and provide us discrete information are called digital computers. A digital computer
works with digits to represent numerals, letters or other special symbols. Digital
Computers operate on inputs which are ON-OFF type and then output are also in the
There are four types of computer on the basis of size. They are super, mainframe, mini
and microcomputers which we are going to discuss below.
Super computer
Uses of Supercomputers
Space Exploration
Earthquake studies
Weather Forecasting
Nuclear weapons testing
Quick Learn
There are four types of computer on the basis of size. They are super, mainframe,
mini and microcomputers.
Super computers are the most powerful computers in terms of performance and
data processing.
Supercomputers are specialized computers used by large organizations.
Mainframe computers are not as powerful as supercomputers.
Many large firms and government organizations use mainframes to run their
business operations.
Mainframe computers are the fastest computers with large data storage capacity.
Minicomputers are used by small businesses and firms.
Minicomputers are also called “Midrange Computers”.
Desktop computers, Gaming consoles, Sound and Navigation system of a car, Netbooks,
Notebooks, PDA’s, Tablet PC’s, Smartphones, Calculators are all type of Microcomputers.
A microcomputer is a computer with a central processing unit (CPU) as a microprocessor
designed for individual use; a microcomputer is smaller than a mainframe and a
minicomputer.
Quick Learn
The micro-computers are widely used and the fastest growing computers.
Desktop, laptops, personal digital assistant (PDA), tablets and smartphones are
the examples of microcomputer.
Microcomputers are the cheapest among the other types of computers.
The Micro-computers are specially designed for general proposes.
A desktop computer is a personal computer that fits on or under a desk.
Desktop computers are also called Personal computers or PC.
Laptop computers are another category of personal computers.
DEL, HP, ACER, SAMSUNG, TOSHIBA, etc. are the popular laptop
and tablet manufacturing company.
A hand-held computer is a portable computer that is small and can be held in
one’s hand.
EXERCISE
Expected Competency
Thisunit,
At the end of this chapter covers
students willthe
befollowing
able to: topics:
• describe the types of software .
• explain the operating System and its functions.
• write about language translator and its types.
• tell the differences between compiler and interpreter.
• identify utility software.
• tell the types of application software.
Introduction
Computer hardware is the physical parts or components of a computer. Hardware
includes internal and external components such as the monitor, keyboard, hard drive
disk, mouse, printers, graphic cards, sound cards, memory, motherboard and chips. A
computer needs both hardware and software to work. Computer software is a collection
of computer programs which helps to give instructions to the computer system to perform
some specific task. Anything that can be stored electronically is also computer software.
Computer software is a set of instructions or statements that is carried out by the CPU of
computer. Computer software is also called programs. Without programs, computers are
useless.
Quick Learn
Computer hardware is the physical parts or components of a computer.
An input device is a piece of computer hardware equipment that is used to provide
data and instructions to the computer system for processing.
The CP U of the computer is more responsible for processing activities which is
like a brain of human.
The devices that are used to display the result to the user are output hardware.
The storage location where the data are held temporarily is referred to as the
primary memory.
The storage location where the programs and data are stored permanently for future
use is referred to as the secondary memory.
Random Access Memory is a volatile memory and losses all its data when the power
is switched off.
Read Only Memory (ROM) is the memory that stores the data permanently, i.e.,
it can retain the data even when the power of the computer system is switched
off.
Secondary storage devices have large storage capacity, and they store data
permanently.
Quick Learn
Computer software is a collection of computer programs. System software is
software that is designed to control and work with the computer hardware.
An operating system is a software program that enables the computer hardware
to communicate and operate with the computer software.
Without a computer operating system, a computer and software program will be
useless.
Memory Management, Booting, Process Management, Storage Management,
Data security etc. are the functions of an operating system.
Language Translator
The instructions given by the users are Exploring Knowledge!
the high level language which cannot • The full form of UNIX is Universal Net
be understood by the machine. So it work Information Exchange
must be translated into commands to • Shareware is a software that allows a user
understand by the machine. A computer to try all or part of the program for free
language translator is a program that
before buying it.
translates a set of code written in one
programming language into a functional equivalent of the code in another programming
language. The following are the important roles of a language translator.
Translating the high-level language program input into an equivalent machine
language program.
Providing diagnostic messages wherever the programmer violates specification
of the high-level language program.
Error
Massager
Quick Learn
A computer language translator is a program that translates a set of code written
in one computer language into another.
Compiler, assembler and interpreter are the types of language translator.
The function of a language translator is to translate the high-level language into
machine language.
A compiler is a translator which is used to convert programs in high-level language
to low-level language.
An assembler is a translator which is used to translate the assembly language
code into machine language code.
A device driver controls a particular type of device that is attached to your computer
system.
A device driver is a small piece of software that tells the operating system and
other software how to communicate with a piece of hardware.
Utility Software
An utility software is a special type of system software used to maximize the utility of
the hardware devices and computer system. We can use utility software for scanning
the hard disk, repair and maintenance of computer system and remove the viruses from
the computer system. Utility software is a system software designed to help analyse,
configure, optimize or maintain a computer. Antivirus, Backup software, clipboard,
compression utility, debuggers; scandisk, and other toolkits are the examples of utility
software.
Application Software
Application software is developed for the specific use. This software is developed using
high level language. An application software is a set of one or more programs designed
Exploring Knowledge!
Schools and colleges can use custom software to keep admission details of
students.
Custom software are also known as bespoke software.
Quick Learn
A utility software is special type of system software used to maximize the utility of
the hardware devices and computer system.
Antivirus, Backup software, Debugger, Scandisk, etc. are the name of popular
utility software.
An application software is developed for the specific use.
A packaged Software and customize software are the types of application software.
A custom software is also known as tailor-made software.
b. Explain about system software. What are the functions of an operating system?
Explain.
Expected Competency
At the end of this
Thisunit, students
chapter coverswillthe
befollowing
able to: topics:
• explain the functions of operating system and its types.
• describe about the booting and its types.
• tell about MS -DOS and types of DOS commands.
• write about the windows operating system.
• identify the various desktop icons.
• list out some special features of window.
Introduction
Operating system is a master controlled computer program which controls and coordinates
with all the activities of the computer system. A computer is nothing without operating
system. The operating system is a vital component of the system software in a computer
system. An operating system (OS) is a collection of software that manages computer
hardware resources and provides common services for computer programs. It acts as an
interface between the user and the computer hardware and controls the execution of all
kinds of programs. Some popular operating systems are Linux, Windows, OS X, VMS,
OS/400, AIX, z/OS, etc.
Memory Management
Memory management refers to the management of primary memory or main memory.
Main memory is a large collection of words where each word has its own address.
Processor Management
An operating system does the different activities for processor management which are
given below.
A file system is normally organized into directories for easy navigation and usage. An
Operating System does the following activities for file management.
Keeps track of information, location, uses status, etc.
Decides who gets the resources.
Allocates the resources.
Security
With the help of password and some other techniques operating system prevents the
computer from unauthorized access.
Quick Learn
Operating system is a master controlled computer program which controls and
coordinates with all the activities of the computer system.
An operating system (OS) is a collection of software that manages computer
hardware resources and provides common services for computer programs.
An operating system is a program that acts as an interface between the user and
the computer hardware and controls the execution of all kinds of programs.
Linux, Windows, OS X, VMS, OS/400 are the examples of popular operating
systems.
Memory management refers to the management of primary memory or main
memory.
An Operating System manages device communication through their respective
drivers.
A file system is normally organized into directories for easy navigation and usage.
There are various types of operating systems. The types of operating systems are classified
on the basis of user and interface.
Types of operating system according to user mode
Single user operating system
Single user operating system is Exploring Knowledge!
developed to fulfil the requirement of
Real-time operating systems are used in
a single user. A single user operating
system provides the facilities to be environments where a large number of events,
used on one computer by only one user. mostly external to the computer system, must
In other words, it supports one user at be accepted and processed in a short time or
a time. However, it may support more within certain deadlines.
than one profile. Single keyboard and
single monitor are used for the purpose of interaction. The most common example of a
single user operating system is a system that is found in a typical home computer. A single-
user operating system is a system in which only one user can access the computer system
at a time. MS-DOS, mobile operating system, windows 95, windows 98, etc. are the
examples of single user operating system.
Multi User operating system
A multi-user operating system is
designed for more than one user to Exploring Knowledge!
access the computer at one time. Multitasking operation is accomplished
Mainframes and minicomputers work by scheduling processes for execution
on multi-user operating systems. These independently for each other.
operating systems are complex in
comparison to single user operating systems. Each user is provided with a terminal and all
these terminals are connected to a main computer. Multi-user operating system allows more
than one user to access a computer system at one time. Time-sharing systems are multi-
user systems. Most batch processing systems for mainframe computers are also multi-
user operating system.
Types of operating system on the basis of interface
Command User Interface
A CUI is a user interface to the computer’s operating system or an application in which
the user responds to a visual prompt by typing in a command on a specified line, receives
a response back from the system, and then enters another command. A CUI is an
interface which allows the user to interact directly with the computer system by typing in
commands into a screen.MS-DOS, Windows command line, Terminal, and the Linux are
the command user interface.
Quick Learn
A single user operating system provides the facilities to be used on one computer
by only one user.
A single-user operating system is a system in which only one user can access the
computer system at a time.
MS-DOS, mobile operating system, windows 95, windows 98, etc. are the examples
of single user operating system.
A multi-user operating system is designed for more than one user to access the
computer at one time.
Mainframes and minicomputers work on multi-user operating systems.
Multi-user operating system allows more than one user to access a computer
system at one time.
A CUI is an interface which allows the user to interact directly with the computer
system by typing in commands into a screen.
MS-DOS, Windows command line, Terminal, and the Linux are the command
user interface.
Graphical user interface (GUI) is an interface that enables a person to communicate
with a computer through the use of symbols, visual metaphors, and pointing
devices.
Booting
Booting Process
A booting process is a number of actions the system goes through to make sure that all
the required files and hardware are ready to perform user task. Below are step by step
procedures the system follows:
Once the power button is pressed, the computer signals the motherboard to start
including the CPU.
Once power supplied is sufficient, Exploring Knowledge!
the computer sends another signal
called “Power OK” to the BIOS MS-DOS was a standard operating
which starts the booting process system for IBM-compatible personal
computers. The initial versions of DOS
by initializing the POST (Power
were very simple and resembled another
On self Test) process. operating system called CP/M.
POST checks whether devices In 1987 AD Microsoft released Windows
have enough power, all devices and 2.0.
interrupts are identified and
properly initialized.
POST hands control back to BIOS to continue with booting.
BIOS look for a Boot sector also known as Master Boot Record (MBR) which is
an image from the floppy disk, hard drive or DVD.
Quick Learn
A booting is the process of starting or restarting the computer system.
A booting is a start-up sequence that starts the operating system of a computer
when it is turned on.
Warm Booting and cold booting are the types of booting.
MS DOS is a single user single tasking operating system developed by Microsoft
Corporation of USA.
Internal Commands
Internal commands are used for performing basic operations on files and directories which
do not need any external file support. The internal commands are those commands that
are automatically loaded in the memory. Some commonly used DOS internal commands
are CLS, DIR, TIME, DATE, VER, COPY CON, TYPE, REN, DEL, MD, CD, etc. Here
we are going to discuss them.
CLS:
This command is used to clear the DOS working screen
Syntax: CLS
Example: C: \>CLS <enter>: It clears the screen.
TIME:
This command is used to display and change the system time as per the requirement.
Syntax: TIME [Time]
Example: C: \>TIME <enter>: It changes the system time. You can press enter key without
typing the time if you do not want to change the system time. The time should enter in
HH:MM:SS format.
DATE:
This command is used to display and change the system date as per the requirment.
Syntax: DATE [Date]
Example: C: \>DATE<enter>: It changes the system date. You can press enter without
typing the date if you do not want to change the system date. The date should be entered
in MM-DD-YY format.
VER:
This command is used to display the current DOS version of your windows.
Syntax: VER
Example: C: \>VER<enter>: It displays the current MS-DOS version number.
VOL:
This command is used to display the volume label and volume serial number of the disk.
Syntax: VOL [drive]
Example: C: \>VOL D:<enter>: It displays volume label and serial number of
drive D.
COPY CON:
This command is used to create a new DOS text file.
Syntax: COPY CON [File name]
Example: C: \>COPY CON NEPAL<enter> : Type the text that you want to insert in the
file named Nepal and press F6 or CTRL + Z to save it.
TYPE:
This command is used to display the content of the existing file.
Syntax: TYPE [Previous or created file name]
Example: C: \>TYPE NEPAL <enter>: It displays the content of the file.
DIR:
This command is used to display the files and subdirectories of the current drive with the
help of different wild card characters.
Syntax: DIR [drive:] [Path][File name][/p][/W]
Examples:
C: \>DIR <enter> : It displays all the files and directories of drive C.
C:\> DIR/P <enter> : It displays all the files and directories of drive C with page
wise.
External Commands
These commands help to perform some specific tasks. These are stored in a secondary
storage device. External command is DOS command that is not included in command.
com. External commands are not memory resident commands. Some of the external DOS
commands are explained below.
EDIT:
This command is used to edit or change the DOS file.
Syntax: EDIT [drive:] [Path] < name of text file>
Example: C: \>EDIT HIMAL <enter>
A new edit window will appear.
Change the text as required and save it.
After saving it, close these windows from the file menu.
Now check it by using TYPE command in DOS prompt.
FORMAT :
This command is used to format a disk. If we are going to use any new disk, we can
format it with the help of FORMAT command from DOS.
Syntax: FORMAT [drive:] [/V] [:label] [/Q]
Example: C: \>FORMAT A: It formats a disk in drive A.
LABEL :
This command is used to give or change the volume label for the specified disk.
Syntax: LABEL [drive:] <label name>
Example: C: \>LABEL D: It helps to give new label name of the drive D.
CHKDSK:
This command helps to check the disk of specified drive and corrects the errors.
Syntax: CHKDSK [drive:]
Example: C: \>CHKDSK D: It checks the disk in drive A.
Introduction to Windows 7
The windows desktop is the first screen that appears when you operate a computer with a
windows OS. The below is the desktop screen that we see at first after opening a computer.
You can see some pictures on your desktop, these are called icons. To access the program
you can use the icons. To open an icon, you can double-click on it by using the left mouse
button. Some of the common desktop icons are explained below:
Users document
It is the default storage location (folder) for your files that you create.
When you save or open a file, Microsoft Windows first opens the user
dialog box. You can also manually select the desire location and store
the documents.
USB input icon : It displays information when you attach storage device to your system.
You can click the close button in the upper-right corner of the notification to remove it.
If you do not do anything, the notification will fade away on its own after a few seconds.
From the Manage another account button, click on the Create a new account.
Once you have created a new account, you may want to add a password or make other
changes to the account’s settings.
Creating a Password
Password is a secret word or phrase that prevents the computer system from the
unauthorized access. The following are the ways to protect computer with the password.
From the Manage another account button, click the account name or picture.
If you want, you can type a password hint to help you remember your password.
To go back to the Manage another account button, click on the Manage another
account.
Note: Account passwords are case sensitive, which means that capital and lowercase
letters are treated as different characters.
You can also change the picture for any account. This picture appears next to
the account name and helps you easily identify the account.
From the Manage Accounts pane, click on the account name or picture.
Now you can click on the Time limits, Games or Allow and block specific programs to set
the Parental Controls.
The date and time is located at the right most side (Notification
Area) of the taskbar. When you place the mouse pointer on the
Date and Time indicator, it displays system date as Friday, August 10, 2018 . If the current
system date and time is incorrect you can change it with the help of given steps.
Click on Date/Time indicator in the taskbar.
Click on change date and time setting option.
A new dialogue box will appear.
The easiest way to make a copy of something is to take a snapshot of your screen. You
can use snipping tool to do this work. You can save it in the picture format and insert in
any part of the document.
There are various options with this tool which you can get
from New option.
Free-form Snip: Draw a free-form shape around an
object.
Rectangular Snip: Drag the cursor around an object to
form a rectangle.
Window Snip: Select a window, such as a browser
window or dialog box, that you want to capture.
Full-screen Snip: Capture the entire screen.
After you capture a snip, it will automatically copied
to the Snipping Tool window. From there, you can insert, save, or share the snip. The
following procedures explain how to use Snipping Tool.
Select the arrow next to the New button, choose the kind of snip you want, and
then pick the area of the screen that you want to capture.
Annotate a snip
After you capture a snip, you can write or draw on or around the snip by selecting the Pen
button.
Saving a snip
Scan Here
Scan Here
A windows 8 is a latest and updated version of operating system popularly used in desktop,
laptop and other handheld devices. This operating system was launched on October
2012 for general use. It is different in user interface than windows 7. This interface was
specially designed for the touch screen devices. Nowadays mobile and some tablets are
also using windows 8. On October 18, 2013 Microsoft released Windows 8.1 as a next
version of windows 8.
Quick Learn
A window 8 is a latest and updated version of operating system
popularly used in desktop, laptop and other handheld devices.
Windows 8 was launched on October 2012 for general use.
On October 18, 2013 Microsoft released Windows 8.1 as a next version
of windows 8.
Expected Competency
Thisunit,
At the end of this chapter covers
students willthe
befollowing
able to: topics:
• define work processing with its features.
• work with formatting of word documents.
• work with header and footer.
• work with charts.
• work with Tables.
Introduction
Insert Tab
This tab helps you to insert a variety of items into a document from pictures, clip arts,
tables and header and footer options.
Reference Tab
This tab has commands to use when creating a Table of Contents and citation page for a
paper. It provides many features such as Update Table, Insert Caption, Insert Endnote and
Footnote, Bibliography, etc.
Mailing Tab
This tab allows you to create documents to help when sending out mailings such as
printing envelopes, labels and processing mail merges.
View Tab
This tab allows you to change the view of the document. You can use document view,
zoom, show, macros etc with the help of this tab.
Format Tab
This tab gets active when you click on any picture element of word document. We can
apply the different picture Properties with the help of this tab like brightness, contrast,
Wrap text, shadow effect, cropping etc.
4. Once you have selected your template you can modify it in any way to
create the document that you want.
5. Finally, you can save it for your further use.
Opening a document
1. Click the File tab, and then click Open.
2. In the left pane of the Open dialogue box,
click the drive or folder where you saved your
document.
3. In the right pane of the Open dialogue box,
open the folder that contains the document
that you want.
4. Click the document and then click on Open
button.
Quick Learn
Ms-word helps to create, edit and format the text for the document
File tab holds the information related to file.
The ribbon holds all the information in a more visual stream line manner
through a series of tabs.
Design templates are the ready made features of word, which we can use directly
in the document.
Formatting the text means changing the font size, colour, face, etc.
Format painter option is used to copy the previous format of text and apply it for
the new text or document.
Inserting symbols
Adding watermark
Scan Here
Select the correct spelling from the suggestions area and click on change to apply the
changes.
Quick Learn
Watermarks are text or picture placed behind text in the document.
Ms word has some readymade watermark options like DO NOT COPY,
DRAFT, CONFIDENCIAL, etc.
Mail merge is used to create multiple documents at once.
In word document, the spelling mistakes of word or letters are underlined
with red line and the grammar errors are underlined with green lines.
Scan Here
In the spacing section you can adjust the paragraph spacing options.
Click on the up arrow next to the Before option until the box shows 12pt
like the example above
The paragraph formatting dialogue box contains options for aligning text and indenting
text. In both cases, the formatting can be changed in the
dialogue box itself, or by using additional shortcuts.
Click the Decrease Indent icon to return the paragraph to its normal position.
These shortcuts can indent a paragraph from the left of the page.
To display the above dialogue box we can use the following steps.
Click on home tab and move your mouse to the paragraph group.
Click on paragraph option button.
Change the indentation as required.
The left and right sides of the paragraph will be indented 1cm from the page margins.
The first line of the paragraph will be intended by a further 1cm.
Page Break
Page breaks help to specify where a new page will begin in a document. You can create
page breaks by manually inserting a break where you need. You can also specify breaks
in your paragraph formatting so that a particular paragraph, such as a heading, will always
begin on a new page.
Click the Undo icon or press [Ctrl] [Z] to remove the page break.
Quick Learn
Paragraph endings are marked by a character that is usually hidden.
You can use the paragraph spacing options to adjust the amount of space before
paragraphs, after paragraphs and between each line in a paragraph.
Press [Ctrl] [2] to change the paragraph to double line spacing.
The paragraph formatting dialogue box contains options for aligning text and
indenting text.
Page breaks helps to specify where a new page will begin in a document.
You can create page breaks by manually inserting a break where you need.
A blank header will appear at the top of the page with a placeholder as below:
Click on the OK to insert the Author name as selected in the above dialogue box.
Click on the close button to exit from header and footer dialog
box.
Quick Learn
(Some Shortcuts)
Alt Shift Increase paragraph indent
Alt Shift Decrease paragraph indent
Ctrl 1 Single line spacing
Ctrl 2 Double line spacing
Ctrl 5 1.5 line spacing
Ctrl E Centre align paragraphs
Ctrl J Justify aligns paragraphs
Ctrl L Left align paragraphs
Ctrl R Right align paragraphs
Ctrl Enter Insert a page break
Shift Enter Insert a line break in a paragraph
Click on the OK. Microsoft Excel opens, displaying a sheet containing dummy data for
the chart.
Scan Here
Choose one of the required options in the Separate text at: section.
You can also add rows below the insertion point. Follow the same steps, but select Insert
Rows Below from the menu.
To add a column:
Place the insertion point in a column adjacent to the location where you want
the new column to appear.
Right-click on the mouse. A menu will appear.
EXERCISE
Lab Activities
• Perform the following tasks in your computer lab.
a. Prepare your CV in Ms-Word.
b. Prepare a table with at least 10 rows and columns.
c. Design an advertisement format using text box and some drawing tools.
d. Insert some mathematical formula in a document.
e. Insert any three types of chart with result analysis in word 2010.
Expected Competency
At the end of this unit, students will be able to:
• define MS-Excel with its application area and features.
• explain the components of excel 2010.
• identify the tool bars.
• work with border and shading.
• work with excel formula.
Introduction
Excel is used widely in financial activity. It has the ability to create new spreadsheets
where users can define custom formulas for the calculation. Excel is also used widely for
common information organization and tracking like a list of sales leads, project status
reports, contact lists, and invoicing. Excel is also useful tool for scientific and statistical
analysis with large data sets.
All the excel document is called a Workbook. A workbook always has at least one
Worksheet. Work sheets are the grid where you can store and calculate data. You can have
many worksheets stored inside a workbook, each with a unique worksheet name. The
intersection of any given row and column is a cell. Cells are used to enter any
information. A cell will accept a large amount of text, or you can enter a date, number, or
formula. Each cell can be formatted individually with border, background color, and font
color, font size, font name, etc.
File Tab
You can use this tab to open or save files, create new sheets, print a sheet, and do other file
related operations. The details are listed below in the table.
Option Description
Save This option is used to save the document.
Save As This option is displayed asking for sheet name and sheet type. By
default, it will save in sheet 2010 format with extension .xlsx.
Open This option is used to open an existing excel sheet.
Close This option is used to close an opened sheet.
Info This option displays the information about the opened sheet.
Recent This option lists down all the recently opened sheets.
New This option is used to open a new sheet.
Print This option is used to print an opened sheet.
Save & Send This option saves an opened sheet and displays options to send
the sheet using email etc.
Help This option is used to get help about excel 2010.
Options This option is used to set various options related to excel 2010.
Exit This option is used to close the sheet and exit from excel.
Title Bar
This lies in the middle and at the top of the window. Title bar shows the program and the
sheet titles.
Help
The Help Icon can be used to get excel related help anytime that you want.
Zoom Control
Zoom control helps to zoom in for a closer look at your text. The zoom control consists
of a slider that you can slide left or right to zoom in or out. The + buttons can be clicked
to increase or decrease the zoom factor.
View Buttons
The group of three buttons located to the left of the Zoom control, near the bottom of the
screen are view buttons. The various zoom buttons are listed below.
Normal Layout view : It displays the page in normal view.
Page Layout view : It displays pages exactly as they will appear when printed. This gives
a full screen look of the document.
Page Break view : It shows a preview of where pages will break when printed.
It has various built-in templates. You can apply your own custom templates and to search
variety of templates with the help of internet to find a template, you can use the following
steps.
Formatting numbers
Select the cells that you want to format.
Click on the Home tab, in the Number
group, choose the Dialogue Box Launcher
next to Number (or press CTRL+1).
In the category list, click the format that you want to use, and then adjust
settings if necessary. For example, if you are using the Currency format, you
can select a different currency symbol, show more or fewer decimal places, or
change the way negative numbers are displayed.
On a worksheet, select the range of cells that you want to include in the table. The
cells can be empty or can contain data.
Click on the Home tab, in the Styles group, choose Format as Table, and then select
the table style that you want.
Filtering data
Scan Here
Select a range of data, such as A1:E6 (multiple rows and columns) or D1:D6
(a single column). The range can include titles that you created to identify columns
or rows.
On the Data tab, in the Sort & Filter group, choose Sort.
The Sort dialogue box appears.
In the Sort by list, select the first column on which you want to sort.
Quick Learn
We can use Excel to create and format workbooks in order to analyse the data.
Excel is used widely for common information organization and tracking like a
list of sales leads, project status reports, contact lists, and invoicing.
Excel is also useful tool for scientific and statistical analysis with large data
sets.
You can have many worksheets stored inside a workbook, each with a unique
work sheet name.
The intersection of any given row and column is a cell.
Quick Access Toolbar is located just above the File tab.
Zoom control helps to zoom in for a closer look at your document or text.
There are 1,048,576 rows in Excel 2010.
Status Bar displays the sheet information as well as the insertion point location.
Cell reference
Cell reference refers to a particular cell or range of cells in a worksheet. Cell references
are useful in excel to identify the data that should be used in formulas to calculate results.
For example, the cell below occurs at the cross section of column C and Row 4.
The cell reference is C4 and we can use C4 to refer to the data in that cell.
In the above sheet the formula remain same while copying due to its absolutes nature.
A mixed cell reference is either an absolute column and relative row or absolute row and
relative column. When you add the $ before the column letter you create an absolute col-
umn or before the row number you create an absolute row. For example, $A1 is absolute
for column A and relative for row 1, and A$1 is absolute for row 1 and relative for column
A. If you copy or fill the formula across rows or down columns, the relative references
adjust, and the absolute ones does not adjust.
In mixed cell references the value of either one of the row or column changed/copied and
another remained same. Scan Here
Click on the Insert tab, in the Charts group, click on the chart type that you want to
use, and then click on the chart subtype.
Functions
=SUM(B3:B12)
Function Argument
Equal sign
name
SUM function
The SUM function is a built-in function that is used to find the
sum for the group of cells.
Syntax: SUM (number 1, [number 2 ……..number n])
For video tutorials
OR
SUM = (cell 1, cell2, [cell3: cell 4], …………….)
Practical sample 1
Do the calculation as given.
Formula: =SUM (D3:D6)
The given sample displays the sum as 365.
MIN function
This function is used to find the minimum value in the specified cell.
Syntax: MIN (number 1, number 2 ……..number n)
OR
MIN (Cell 1: Cell 2)
Practical sample 2
Do the calculation as given.
Formula: =MIN(D3:D6)
The given sample displays the minimum value as
40.
MAX function
This function is used to find the maximum value in the specified cell.
Syntax: MAX (number 1, number 2 ……..number n)
OR
MAX (Cell 1 : Cell 2)
AVERAGE function
This function is used to display the average value in the given cell range.
Syntax: AVERAGE (number 1, number 2 ……..number n)
OR
AVERAGE (Cell 1 : Cell 2)
Practical sample 4
Do the calculation as given.
Formula: =AVERAGE (D3:D6)
The given sample displays the maximum value
as 91.25 .
PRODUCT function
This function is used to find out the multiple values (product) in the given cell range.
Syntax: PRODUCT (number 1, number 2 ……..number n)
OR
PRODUCT (Cell 1 : Cell 2)
Practical sample 5
Do the calculation as given.
Formula: =PRODUCT (D3:D6)
The given sample displays the product of the
numbers : 39600000.
IF Function
In excel this function is used as a logical function. It is used to evaluate two or more than
two conditions either true or false.
Syntax: IF (condition, [value (if true)]) , [value (if false)]
Scan Here
Practical sample 7
Prepare a result sheet with total marks, percentage, result and division.
Formula:
To calculate total: =SUM(C3:H3)
To analyse result: = IF(AND(C3>=40,D3>=40,E3>=40,F3>=40,G3>=40,H3>=40),"PA
SS","FAIL")
To calculate % : = I3/500*100
To calculate division: = IF(AND(K3>=80),"DIST",IF(AND(K3>=60),"FIRST",IF(AND
(K3>=45),"SECOND",IF(AND(K3>=32),"THIRD","NO DIVISION"))))
Quick Learn
Cell reference refers to a particular cell or range of cells in a worksheet.
An absolute cell reference is a cell address that contains a dollar sign ($) in the
row or column coordinate, or both.
A mixed cell reference is either an absolute column and relative row or absolute
row and relative column.
Operators are the symbols used in a formula to define the relationship between
two or more cell references, or between two or more values.
Functions are predefined formulas and are already available in Excel.
EXERCISE
1. Fill in the blanks with suitable words.
a. We can use …..... to create and format workbooks in order to analyse the data.
b. Excel is also useful tool for scientific and …….. analysis with large data sets.
c. You can have many worksheets stored inside a …………., each with a unique
worksheet name.
d. …………………. is located just above the File tab.
e. There are …………….. rows in Excel 2010.
f. ………bar displays the sheet information as well as the insertion point location.
g. An absolute cell reference is a cell address that contains a …………….. in the row
or column coordinate, or both.
A B C D E F G H I K
1
2 Roll Name Maths English Nepali Computer Opt. Total Percent
No: Maths
3 1 Ramesh 80 66 48 77 73 ? ?
4 2 Gita 93 88 63 82 89
5 3 Shyam 92 67 56 84 78
6 4 Rasmita 89 59 42 84 68
7 5 Saujan 66 64 46 64 48
8
a. Calculate total marks.
Scan Here
b. Calculate percentage.
• Prepare a worksheet for expenses analysis
Given, House rent = 15%
Health = 10% Education = 20%
For video tutorials
Food = 25% Extra = 15%
• Prepare a chart for population analysis of different regions
A B C D E
1 2072 2073 2074 2075
2 West 880 790 560 650
3 East 980 990 880 1100
4 North 560 720 960 950
5 South 680 950 880 520
• Prepare bar • graph • Prepare pie-chart
• Prepare a line graph.
Expected Competency
Thisunit,
At the end of this chapter covers
students willthe
be following
able to: topics:
• explain the features and application of presentation program.
• work with PowerPoint presentation.
• work with different slide layout and slide design
• work with charts, tables and audio.
Introduction
With the help of customizable proofing options, you can change the
way of spelling errors, including automatic spell check and contextual
spelling. Contextual spelling is an option that is turned off by default
but that can be turned on which helps you to find and correct spelling
mistakes.
To modify proofing options
Click on the File tab and choose the Options.
Select Proofing, the PowerPoint Options dialogue box gives you
several options to choose as the dialogue box given below.
Note: If you turned off the automatic spell check, you can run a check by going to the
Review tab and clicking the Spelling command.
The corrected word will appear in the presentation.
You can choose to Ignore an underlined word, Add to Dictionary, or go to
the Spelling dialogue box for more options.
Modifying themes
Scan Here
In the Name field, type the desired name for the theme colours, then click Save.
The presentation will update to show the new theme colours.
Quick Learn
PowerPoint is the slide show presentation program developed by Microsoft
Company.
Slides are the page of PowerPoint.
PowerPoint is available for multimedia work, presentations, advertisement
design etc.
We can use multimedia data like Graph, Pictures, Animation, etc. on the Power
Point presentation.
Slide layout is application for changing the slide design sample.
A theme is predefined combination of colours, fonts and effects that can be applied
to the presentation.
You can change the theme font from design tab.
If you want more control over the background, you can select Format Background from
the menu.
Quick Learn
We have to use Slide sorter option to view multiple pages or slides on Power
Point application.
Design template gives different types of design sample to apply on slide.
We can insert picture, table and other drawing samples on Power Point slide.
You can change the background colour and texture by choosing a different
background style.
Master slide is the main slide of PowerPoint that controls all working slides.
Scan Here
Select a category from the left pane of the dialogue box, and review the charts that
appear in the center.
Select the desired chart.
Click on the OK button.
An Excel window will open with a placeholder for your data.
If necessary, click and drag the lower-right corner of the blue line to increase
or decrease the data range for rows and columns.
Only the data enclosed by the blue lines will appear in the chart.
Close the Excel without saving then, the chart will update to your slide.
Note: You can edit the chart data at any time by selecting your chart and clicking the
Edit Data command in the data group on the Chart Tools Design tab.
If you already have an excel worksheet with data you want to use for a PowerPoint chart,
you can transfer the data by copying and pasting it. For this you can just press Ctrl + C to
copy and Ctrl + V to paste on you desired location.
Find and select the desired excel chart, then click OK.
Click the Link check box if you want to link the data to the Excel chart.
Now, it will update itself when changes are made to the Excel chart.
There are many ways to customize and organize your charts. You can change the chart
type, rearrange the data of chart and change the layout and style.
To change the chart type
From the Design tab, click the Change Chart Type
command. A dialogue box will appear.
Select the desired chart type.
Click on the More drop-down arrow in the Chart Styles group to see all of the
available styles.
Select the desired style.
Tables are another tool that you can use to display information in PowerPoint. A table is
a grid of cells arranged in rows and columns. Tables can be customized and are useful for
various tasks such as presenting text information and numerical data.
You can now place the insertion point anywhere in the table
to add text.
Modifying tables
Place the mouse over one of the sizing handles located around the edge of
the table. The cursor will become a pair of directional arrows .
Click, hold, and drag your mouse to make the table larger or smaller.
Release the mouse. The table will be resized.
To add a column or row:
Place the insertion point in a cell adjacent to the location where you want to add a
row or column.
If you want to insert a new row, select either Insert Above or Insert Below. If
you want to insert a new column, select either Insert Left or Insert Right.
A new row or column will appear.
Inserting Audio
You can add sound to your presentation. You can add background music to one slide, a
sound effect to another and one narration or commentary to a few slides.
You can either add an audio file from your computer or browse PowerPoint’s collection
of clip art audio. You can edit the sounds as required.
Locate and select the desired audio file, then click Insert.
The results will appear in the Clip Art pane. To preview an audio file, right-
click the file and select Preview/Properties.
A dialogue box will appear, and the audio file will start playing automatically (it
may take a few seconds to load). To play it again, press the Play button.
You can record the audio and directly place into a presentation. For that you must have a
microphone that must be compatible with your computer system. Many computers have
built-in microphones or ones that can be plugged in to the computer.
To record audio:
From the Insert tab, click on the Audio drop-down
arrow from media group and select Record
Audio.
Type a name for the audio recording.
When you’re done, click on OK. The audio file will be inserted into the slide.
To trim the audio:
You can trim some part of your audio. To do this you can use the following step.
From the Playback tab, click the Trim Audio command.
Adjust the green and red handles again if necessary, then click OK.
To add a fade in and fade out:
On the Playback tab, locate the Fade In and Fade Out fields.
Type in the desired values, or use the up and down arrows to adjust the times.
Audio options
There are other options that you can set to control how your audio file plays. These are
found in the Audio Options group on the Playback tab.
Quick Learn
A chart is a tool that you can use to communicate your data graphically.
The data series consists of the related data points in a chart.
The legend identifies which data series each colour on the chart represents.
You can also add sounds in a slide.
To insert Clip Art audio, you can go to insert tab.
You can record the audio and directly place into a presentation.
Lab Activity 1
Open an existing PowerPoint presentation.
Select a slide and apply a transition.
Change the transition duration.
Add a sound effect to the transition.
Apply this transition and its settings to all slides.
Apply a different transition to one slide.
Remove the transition.
Lab Activity 3
Open an existing PowerPoint presentation.
Insert an audio file from your computer.
Preview the audio file.
Trim the audio file.
Add a fade in and fade out.
Add a clip art audio file.
Change the picture for one of the audio files.
If your computer has a microphone, record some audio into a slide.
Experiment with the different audio options on the Playback tab.
EXERCISE
1. Fill in the blanks with suitable words.
a. PowerPoint is a ………………..program.
b. The presentation is made up of a series of ……….
c. To check spelling you can go on ……………tab.
d. Red wavy lines indicates the …………….errors.
e. A theme is a ……………….combination of colours, fonts and effect that
can be applied to the presentation.
f. To change the theme colour you can use ………….tab.
g. You can change the ……………..colour and texture by choosing a different
background style.
Lab Activities
Design some slides to explain about your school by using the
following slides:
Title slide
Bulleted list slide
Column slide
Slide with inserting table
Slide with inserting chart
Slide with organization chart
Apply some design template on above slide.
Create a pie chart on power point (you can make a list of male and
female teachers of your school in a chart.)
Make a slide and record your voice and place on your slide.
Chapter
10 Web Page Designing with HTML
Chapter
11 Information and Communication Technology
Chapter
12 Computer Ethics and Cyber Law
Chapter
13 Computer Virus
Chapter
14 Introduction to Computer Networking
Chapter
Web Page Designing with HTML
10
Expected Competency
Thisunit,
At the end of this chapter covers
students willthe
be following
able to: topics:
• define the various terminologies
• list out the features of HTML and explain the HTML Tags.
• identify the structure of HTML document and Prepare HTML document.
• work with paragraph alignment and work with HEADING TAG.
• change the font colour size and face.
• work with various HTML tags.
Introduction
Internet is the basic tool for human in this 21st century. Human life is almost
incomplete without the internet these days. It is used for various purposes like for
education, health, sports, entertainment and so many other fields. All types of information
on the internet are stored on web server which can be viewed with the help of web site.
The website is the collection of web pages which can be created by using some web
page designing applications. We can say web design is the process of creating websites.
It includes different aspects, including web page layout, content production, and graphic
design.
Basic terminology
Web page
A web page is a document commonly written in Hyper Text Mark-up Language (HTML)
that is accessible through the Internet or other network using an Internet browser. A web
page is accessed by entering a URL address. With the collection of web pages we can
develop the web site.
In this class, we are going to discuss the HTML. We are going to learn some basic tags
used by HTML.
Features of HTML
It helps to create a web page with the help of various tags.
Quick Learn
Internet is used for various purposes like for education, health, sports,
entertainment and so many other fields.
All types of information on the internet are stored on web server.
The website is the collection of web pages which can be created by using some
web page designing applications.
A web page is a document commonly written in Hyper Text Mark-up Language
(HTML) that is accessible through the Internet or other network using an Internet
browser.
Hyper Text Mark Up language was developed by Tim Berners Lee in 1990 AD.
A web browser is application software used to access and view websites.
Search engines are used to view the web documents based on keywords.
Hyperlink means linking with multiple pages.
A hyperlink is an element in an HTML document that links to either another
portion of the document or to another document.
HTML Tags
HTML tags are the hidden keywords within a web page that define how your web browser
displays the content. Most tags must have two parts, an opening and a closing part. For
example, <html> is the opening tag and </html>is the closing tag. The closing tag has the
same text as the opening tag, but has an additional forward-slash ( / ) character. <HTML>,
<HEAD>, <BODY>, <B> etc. are the examples of HTML tag. There are two types of
HTML tags.
Container Tag : This tag has both starting and the ending tag which are enclosed with the
help of angular bracket (<>). In container tag, we must use slash (/) to close the tag as</
B>. For example <U> tag start the underline and </U> close the underline.
Empty Tag: This tag does not have the ending tag but it has starting tag. For example
<BR> code does not have ending tag.
With the help of HTML tag, we can create HTML documents. To write HTML tag we
can use the text editor program like Notepad. We can save the notepad file with .html
extension and view it with the help of web browsers.
Starting Notepad
Press windows key and R at the same time (Windows key + R) from the keyboard.
A Run dialogue box will appear.
Type Notepad in the box and press enter
Now you can view the notepad screen as below.
Lab Activity
<HTML><HEAD>
<Title> This is the first sample. </title </HEAD>
<BODY><B> code is used to make the text bold.</B><BR>
<I> code is used to make the text italic. </I><BR>
<U> code is used to insert underline in the text.</U><BR>
We can use formula in HTML as given <BR>
A<sup>2</sup> + 2ab + b<sup>2</sup> as to display in superscript and H<sub>2</
sub>SO<sub> 4 </sub> as subscript.
</BODY></HTML>
<P> Tag
This option is used to move the text or paragraph or an image to the centre, left or right
part of the screen. We can also justify the text with paragraph alignment tag.
Syntax:
<P align = “Center” | “Left” | “Right” | “Justify”>text </P>
Open NOTEPAD and type the below text and display the result.
Lab Activity
<HTML><HEAD>
<Title> this is second sample. </title </HEAD><BODY>
<P align = “Center”> This is our second sample <P><br>
<P align = “left”> This is our second sample <P><br>
<P align = “right”> This is our second sample <P><br>
<P align = “justify”> This is our second sample on HTML. <br> We can use HTML
for writing the tags.
<br>We can apply formula and others in HTML. <br> We can also work with table
and so on. <P><br>
</body>
</html>
Heading tag
<Hn> Tag
You can use different sizes for your headings. HTML has six levels of headings, which
use the elements such as<H1>, <H2>, <H3>, <H4>, <H5>, <H6>. While displaying any
heading, browser adds one line before and one line after that heading.
Syntax:
<H1> …………….</H1>
<H2> …………….</H2>
<H3> …………….</H3>
<H4> …………….</H4>
<H5> …………….</H5>
<H6> …………….</H6>
Where H1 is the largest heading and H6 is the smallest heading.
Lab Activity
<HTML><HEAD>
<Title> this is heading sample. </title </HEAD>
<BODY>
<H1> This is heading 1.</H1><br>
<H2> This is heading 2. </H2><br>
<H3> This is heading 3. </31><br>
<H4> This is heading 4. </H4><br>
<H5> This is heading 5. </H5><br>
<H6> This is heading 6. </H6><br>
</body></html>
Lab Activity
<HTML>
<HEAD>
<Title> this is font colour size and face sample. </title </HEAD>
<BODY>
<FONT COLOR = #008000 size = “7” face = “Arial Black”>we all are Nepali and
we are proud to be Nepali. </FONT>
</body>
</html>
Marquee Element
<Marquee> Tag
This element is used to make the text or picture movable. You can move the text or picture
centre part, left part, right part, upwards, down wards, scroll and alternate. on the screen.
Syntax:
<MARQUEE BEHAVIOR= “SCROLL”/ “SLIDE” / “ALTERNATE”DIRECTION =
“LEFT”/ “RIGHT” / “UP” / “DOWN” BGCOLOR = “COLOUR NAME OR VALUE”
>Text……………</MARQUEE>
Where, behavior enables you to set the movement of the marquee, direction specifies the
direction in which the text will scroll, bgcolor set the background colour for the marquee
with a colour name or value.
Lab Activity
<HTML><HEAD>
<Title> this is marquee sample. </title </HEAD>
<BODY>
<FONT COLOR = #008000 size = “7” face =”Arial Black”>
<marquee bgcolor = “red” behavior = “alternate”> We are learning the HTML. </
Marquee>
</body></html>
Quick Learn
HTML tags are the hidden keywords within a web page that define how your web
browser displays the content.
There are two types of HTML tags, they are Container Tag and Empty Tag.
Text formatting tags are used to format the text.
Marquee element is used to make the text or picture movable.
You can move the text or picture centre part, left part, right part, up wards, down
wards, scroll and alternate, etc. on the screen.
We can insert various types of pictures in HTML document.
JPG, .GIF, .JPEG, .TIF or .BMP, etc. are the extension of pictures.
Hyperlink is essential in each web document. When you click on this link, you can
view or open the new page.
EXERCISE
1. Choose the best answer from the given alternatives.
a. Who was the creator of the first web page?
i. Babbage ii. Tim Berners Lee iii. Lady Ada
b. What is the extension of HTML file?
i. .HTML ii. .DOC iii. .JPEG
c. Which of the following is a web browser?
i. Opera ii. Google iii. Facebook
d. Which of the following is a search engine?
i. Opera ii. Google iii. Facebook
Expected Competency
Thisunit,
At the end of this chapter covers
students the able
willbe following
to: topics:
• tell about the ICT with its advantages and disadvantages.
• write the application areas of ICT.
Introduction
Information and Communication Technology (ICT) has an important role in the world
since we are now in the information era. With ICT, the company can make the business
easier to happen with the client, supplier and the distributor. It is also very important in
our daily lives. The lack of appropriate information at the right time will result in low
productivity, low quality research works, and waste of time to pursue information and
even to do research which actually others had done in other countries. ICT is one of the
economic development pillars to gain national competitive advantage.
It can improve the quality of human life. It also provides wider knowledge and can
help in gaining and access the information.
Advantages:
It is massively used in the educational sector.
It has great impact in the field of communication.
It is used to promote e-commerce. Exploring Knowledge!
It is used in distance learning Information technology is the technology
and online health service. used to store, manipulate, distribute or create
information. It is a set of tools that can help
to provide the right people with the right in-
formation at the right time
Disadvantages:
It has increased the piracy of data and information.
More chances of spreading viruses.
Increasing the viewers of pornography.
A great threat from the hackers.
People are depending on other resources which may decrease the efficiency.
Quick Learn
The Information and Communication Technology is making dynamic changes
in the society in this 21st century.
ICT not only covers about the computer but also all the technological devices
that people are using all over the world.
ICT has become an integral part of everyday life for many people.
Information and Communication Technology (ICT) has an important role in the
world since we are now in the information era.
ICT in education
ICT in Health
ICT in Banking
ICT in Communication
The world is very small due to the use of ICT in communication.
You can connect with the people of the world with in a very
few seconds. ICT tools are decreasing the distance between or
among the people of the world. You can collect and transfer
the information all over the world with in a few minutes.
Nowadays, the use of e-mail, voice mail, web chat, uses of social media like Facebook,
twitter, Viber are rapidly increased to have a communication effectively which are also
the tools of ICT.
Exploring Knowledge!
Social media are interactive computer-mediated technologies that facilitate the creation
and sharing of information, ideas, interests and other forms of expression through vir-
tual communities and networks
ICT in E-Commerce
EXERCISE
1. Fill in the blanks with suitable words.
a. The ……………………. are making dynamic changes in the society in this
21st century.
b. ICT has become an ………………….. of everyday life for many people.
c. A ………………… can use ICT tools for teaching activities like laptop,
projector, smart board, educational software, tablet, mobile and others.
d. ICT allows the ………………. to effectively provide all the services of bank.
e. ICT tools are …………………. the distance between or among the people of
the world.
2. State whether the following statements are true or false.
a. ICT not only covers about the computer but also all the technological devices
that people are using all over the world.
b. Information and Communication Technology (ICT) has an important role
in the world since we are now in the information era.
Expected Competency
This chapter covers the following topics:
At the end of this unit, students will be able to:
• define computer ethics and its provisions.
• tell about the cyber crime.
• write about cyber law and its area.
• explain the cyber law of Nepal.
Introduction
Cyber crime
Cybercrime is a criminal activity committed with the help of computer and computing
tools. Cyber terrorists use computer tools to steal the personal information, spread
viruses, hacking the website and blogs to earn the money. The growth of the internet is
increasing in the volume of cybercrime activities. These days people are also using
social media like facebook and others to commit criminal activities so that some
countries are restricting the use of social media. Cybercrime is committed by individuals
or small groups, as well as by criminal organizations that are often spread around
the world and committing crimes on an unprecedented scale.
Piracy
Piracy is the unauthorized distribution, theft, reproduction, copying, storage, or other use
of intellectual property protected under copyright law. In computing, software piracy is
a global issue. When a software program is illegally copied, downloaded or installed, a
pirate commits an act of theft. Pirates engage in any activities like using, distributing or
copying software illegally, uploading or downloading online music illegally, etc.
Hacking
A hacker is a person who finds and exploits the weakness in computer system and networks
to gain access. Hackers are the computer programmers with knowledge of computer
security. A computer hacker is any skilled computer expert that uses his/her technical
knowledge to overcome a problem.
Cyber terrorism
Cyber terrorism can be explained as internet terrorism. With the beginning of the internet,
individuals and groups are misusing the privacy to threaten individuals, certain groups,
religions, ethnicities or politics. Cyber terrorism is defined as attack against a computer
system, computer data, programs and other information.
Cyber Law
Cyber law is the part of the legal system that deals with the Internet, cyberspace, and
their respective legal issues. Cyber law is a term that captures the legal issues related
to use of the computer and internet technology. Cyber laws prevent or reduce the
damage from cybercriminal activities by protecting information access, privacy,
communications, intellectual property (IP) and freedom of speech related to the use of
the Internet, websites, email, computers, cell phones, software and hardware, such as data
storage devices. Social media related cybercrime in Nepal includes using pornography
content in social media or creating fake profiles to intentionally harm someone with the
use of Facebook, Twitter, Instagram or any social media platform.
Computer crime law deals with the board range of criminal offenses using a computer
or any computing devices. Most of the computing related criminal activities are being
increased with the massive uses of internet. Computer crime is an illegal activity carried
out by the use of computers and computing devices. To stop such types of criminal
activities, computer crime law is important.
Quick Learn
The history of computer ethics was started from 1950 AD.
Computer ethics is a branch of applied science.
Computer ethics deals with how the computer experts should make
decision regarding the social and professional behaviour while working with the
computer tools and technology.
Cybercrime is a criminal activity committed with the help of computer
and computing tools.
Cyberstalking is a criminal practice where an individual uses the
Internet to systematically harass or threaten someone.
Spam is an e-mail sent to thousands or millions of people without prior
approval.
Cyber law is the part of the legal system that deals with the Internet, cyberspace,
and their respective legal issues.
Computer crime law deals with the board range of criminal offenses using a
computer or any computing devices
A trademark is a word, symbol, or phrase, used to identify a particular
manufacturer or seller’s products and distinguish them from the products of
other.
Expected Competency
This chapter covers the following topics:
At the end of this unit, students will be able to:
• define computer virus and its types.
• tell the symptoms of virus infection, protection mechanism.
• write about the anti virus program with examples.
Introduction
A computer virus is a manmade destructive computer program that can copy itself and
infect a computer without the permission or knowledge of the user. It is also called program
or piece of code that is loaded onto your computer without your knowledge and runs
against your wishes. Viruses can also replicate themselves. When the virus is executed, it
spreads by copying itself into or over data files, programs, or boot sector of a computer’s
hard drive. Most of the computer viruses will
delete data, overwrite information, display Exploring Knowledge!
messages, and add itself to other files on the The term ‘computer virus’ was first
computer. Almost all computer viruses only formally defined by Fred Cohen in
damage the data contained on the computer 1983
and do not physically harm the computer or
its hardware.
I love you, Code Red, Melissa, Sasser, Zeus, Conficker, Mydoom, CryptoLocker,
Flashback, etc. are the popular computer viruses. The common types of computer viruses
are listed below.
Types of viruses
A boot sector virus infects the boot sector on hard disk, floppy disk and also bootable
media such as CD and DVD. Bootable and non-bootable media can spread a boot sector
virus. Once the infected computer successfully boots, the boot sector virus stays in
memory and infects storage media when they are written to by the infected computer.
These viruses infect the master boot record, they are very difficult to remove. C-Brain,
Stone, Disk killer, Polyboot, etc. are the examples of boot sector virus.
Polymorphic virus
A polymorphic virus is a computer virus that affects data types and functions. It is a
self-encrypted virus designed to avoid detection by a scanner. The polymorphic virus
duplicates itself by creating usable, albeit slightly modified, copies of itself. The first
known polymorphic virus (1260) was written by Mark Washburn in 1990. Polymorphic
viruses change with each infection. Polymorphic viruses are complicated computer
viruses that attack computer data types and functions. Each polymorphic virus duplicates
itself into millions of copies. Evil, Elkers, Stan Bug, etc. are the examples of polymorphic
virus.
Script virus
These types of viruses are created with the help of scripting languages such as VB Script,
Java Script, etc. Script viruses use email to send themselves to others is also a form of
worm. A Script Virus usually comes from web page advertisements, so it can spread
very fast. Almost all Script Viruses have these common features: attaching itself script
and being written via a scripting language such as Java Script. A Script Virus is spread
via web pages and has several properties such as being easy to program, malicious, and
highly transferable.
Stealth virus
A computer virus that actively hides itself from the antivirus software and create a copy
of itself in another location on the drive are stealth virus. A stealth virus will hide itself
in the system memory every time when a program scanner is run. It employs various
techniques to hide any changes so that when the scanner looks for altered sections, the
virus redirects it to any area that contains the clean, uninfected data. A more advanced
anti-virus program can detect a stealth virus by searching for evidence of changes within
system sectors along with areas that are more susceptible to attack, regardless of how it
is booted.
Antivirus software
Antivirus programs are utility tools used to detect and remove the virus from the
computing devices. Most antivirus programs include both automatic and manual scanning
capabilities. The automatic scan checks the files that are downloaded from the Internet,
discs that are inserted into the computer, and files that
are created by software installers. The automatic scan
also scans the entire hard drive on a regular basis. Some
special functions of antivirus software are listed below.
It scans specific files or directories for any malware
or known malicious programs.
It allows us to schedule scans to automatically run.
It allows us to initiate a scan of a specific file, storage media or computer at anytime.
It removes malicious codes that are detected.
Some popular antivirus programs
Norton antivirus Kaspersky antivirus McAfee antivirus
NOD 32 antivirus AVG antivirus Panda antivirus
EXERCISE
1. Choose the correct option from the given alternatives.
a. Which of the following is destructive computer program?
i. Virus ii. Antivirus iii. Both (i) and (ii)
b. Which of the following is a computer virus?
i. Code Red ii. I Love you iii. Both (i) and (ii)
c. Which of the following is a boot sector virus?
i. C-Brain ii. Script Virus iii. Mydoom
d. Which of the following is a symptom of virus infection?
i. Computer restarts time and again
ii. Errors messages appear on the desktop iii. Both (i) and (ii)
e. Which of the following is an antivirus program?
i. McAfee ii. Presentation Program iii. Mydoom
Expected Competency
Thisunit,
At the end of this chapter covers
students willthe
be following
able to: topics:
• define compuetr network with its advantages and disadvantages.
• identify the components required for networking.
• explain the types of computer networking.
• tell about network topology.
• write about network architecture.
Introduction
Advantages of networking
It enhances communication and Exploring Knowledge!
availability of information. Computer networking is an act of
It allows for more convenient resource connecting or joining two or more
sharing. computer devices like the desktop,
laptops, tablet PC, smartphones, etc.
It makes file sharing easier.
together to share files and resources,
It has a highly flexible working working remotely to achieve targeted
condition. aim and purpose.
It increases cost efficiency
Disadvantages of networking
It is difficult to establish
Trained person is required to handle.
It has less privacy.
More chances of spreading viruses.
Quick Learn
A computer network is a group of two or more than two computers that are linked
together to share the information and resources.
We need sender, receiver, communication channel, protocols and operating
system to establish a computer networking.
Network Interface Card is also called as LAN (Local Area Networking) card.
Guided and unguided media are used in networking as a communication media.
Guided media use wire or cable technology and unguided media use wireless
technology.
Network Operating System(NOS) is an operating system used to make the
computers participate on the network.
There are several types of computer networks. Computer networks can be categorized
by their size as well as their purpose of use. The size of a network can be expressed by
the geographic area that they occupy and the number of computers that are part of the
network. Networks can cover a single room to millions of devices spread across the entire
world.
Personal Area Network (PAN)
Local Area Network (LAN)
Metropolitan Area Network (MAN)
Wide Area Network (WAN)
Quick Learn
Computer networks can be categorized by their size as well as their purpose of
use.
A Personal Area Network, or PAN, is a computer network organized around an
individual person within a single building.
A LAN is very useful for sharing resources, such as hardware and software.
A MAN is larger than a LAN, which is typically limited to a single building or
site.
A Wide Area Network, or WAN, occupies a very large area, such as an entire
country or the entire world.
Types of topology
Bus topology
Ring topology
In ring topology, all the nodes are connected to each-other
in such a way that they make a closed loop. Token ring
technology is used to implement this type of topology. It
can be used for handling high volume of data. All devices
are given the same importance in this topology. It is in a
shape of a ring, in which every node is connected to only
two neighbours. In case of any cable or device breaks
away from the loop, then it can be a serious problem for
the entire network.
Advantages
It is very easy to identify the problems in the network.
Fewer chances of data lost while transmitting.
There is no need for a network server to control the connectivity between work
stations.
Quick Learn
A network topology is the arrangement of computers in the networks. Network
topology refers to layout of a network.
Bus topology uses the single main cable as a backbone of network which
has terminators at the starting and ending points.
Star topology is a networking topology which uses the centre connectivity
device to work in a network.
Hub is the centre connectivity device for star topology.
In ring topology, all the nodes are connected to each-other in such a way that
they make a closed loop.
Networking Architecture
Network architecture refers to the layout of the network, consisting of the hardware,
software, connectivity, communication protocols and mode of transmission, such as wired
or wireless. It is a framework for the specification of a network’s physical components
and their functional organization and configuration.
Types of Network Architecture
Peer to peer architecture
Peer-to-peer architecture is a commonly used computer networking
architecture in which each workstation, or node, has the same
capabilities and responsibilities. There is no master or controller or
central server in this computer network. Peer to peer relationship
is suitable for small networks having fewer computers on a single
LAN. In a peer to peer network each computer can act as both a server and a client.
Introduction to internet
Uses of internet
To access a huge information from the millions of websites around the world.
To send and receive email messages.
To share photographs and video clips with everybody.
To buy goods and services (E-commerce, E-business).
To use online banking system like e-banking.
To establish better communication services.
To play games with other people online.
WWW
The World Wide Web (WWW) refers to the collection of Websites connected to the
Internet worldwide, together with the client devices such as computers and cell phones that
EXERCISE
1. Choose the correct option from the given alternatives.
a. Which of the following is a component of computer networking?
i. NIC ii. NOS iii. Both (i) and (ii)
b. Which of the following is a Local Area Networking?
i. WAN ii. MAN iii. LAN
c. Which of the following networking system is larger than LAN ?
i. MAN ii. WAN iii. Both (i) and (ii)
d. In which topology is hub is used?
i. BUS ii. Ring iii. Star
e. Which is the patterns of computers in Network?
i. Router ii. Topology iii. MAN
f. Which of the following is a network topology?
a. A ……………….. is group of two or more than two computers that are linked
together to share the information and resources.
b. Guided and ……………… media are used in networking as a communication
media.
c. Guided media use ………………. technology and unguided media use wireless
technology
d. A …………… is larger than a LAN, which is typically limited to a single
building or site.
e. A………………… occupies a very large area, such as an entire country or the
entire world.
f. …………………. uses the single main cable as a backbone of network
which has terminators at the starting and ending points.
g. ………………………. is the centre connectivity device for star topology.
h. …………………………. provide an interface to allow a computer user to
request services of the server and to display the results.
i. The web page documents are written in HTML (hypertext Mark-up language) and
are translated by …………………..
b. Network Interface Card is also called as MAN (Metro Area Networking) card.
a. A group of two or more than two computers that are linked together to share
the information and resources.
b. It is a set of rules that must be followed by the sender and receiver while
communicating with each other over a network.
NIC , LAN , MAN, WAN, TCP/IP, FTP IPX/SPX, PAN, WWW, HTML,
6. Match the following.
WWW Star Topology
MAN BUS
Network topology Metro Area Network
Hub Google
Search Engine World Wide Web
7. Write very short answer of the following questions.
a. Name any two components required for networking.
b. Name any two protocols.
c. Is LAN larger than WAN?
Unit
3
Number Systems
Chapter
15 Computer Number System
Chapter
Computer Number System
15
Expected Competency
Thisunit,
At the end of this chapter covers
students willthe
be following
able to: topics:
• define number system with its types.
• convert the number system.
• perform the binary calculations.
Introduction
The history of numbers starts from the ancient time when there were no any counting
systems or any devices. Number systems are the techniques to represent numbers in the
computer system. Decimal number system was developed by Hindu philosophers, since
then people are using it as their daily activities. Binary number system was developed by
Francis Bacon in 1623 AD. A set of values used to represent different quantities is known
as Number System. The digital computer represents all kinds of data and information
in binary numbers. It includes audio, graphics, video, text and numbers. The number of
digits used in a number system is called its base or radix. The base is written after the
number as subscript such as (10101)2.
Number Systems
Quick Learn
Conversion of numbers
To convert Number system from Decimal Number sytem to any other base, we have to
follow the following two steps:
Step 1: Divide the Number (Decimal Number) by the base of target base system (in
which you want to convert the number: Binary (2), octal (8) and Hexadecimal (16)).
Step 2: Write the remainder from step 1 as a Least Signification Bit (LSB) to Step last as
the Most Significant Bit (MSB).
Decimal to binary
Example
Convert the decimal number.
Binary 1 0 0 1 1 1
number
5 4 3 2 1 0
Positional Weight
Conversion 1× 25 0× 24 0× 23 1× 22 1× 21 1× 20
Binary Arithmetic
Binary arithmetic is an essential part of all the digital computers and much other digital
system. We can perform four basic arithmetic operations in a number system. They are
addition, subtraction, multiplication and division.
Binary Addition
a. What is computer number system? Write down the types of computer number
systems.
Chapter
16 Introduction to Computer Graphics
Chapter
17 Multimedia and Applications
Chapter
Introduction to Computer Graphics
16
Expected Competency
Thisunit,
At the end of this chapter covers
students the able
willbe following
to: topics:
• define computer graphics with its applications.
• describe photoshop.
• work with various photshop tools.
• work with layers.
• write about adobe In Design.
Introduction
The term graphics generally refers to the images generated by a computer or similar type
of computing devices. It is the way of presenting various information in the pictorial or
visual format. Computer graphics is an art of drawing pictures, lines, charts, etc. using
computers with the help of programming or various software applications. Computer
graphics is made up of number of pixels where pixel is the smallest element of graphical
picture. There are two types of computer graphics they are Interactive Computer Graphics
and Non Interactive Computer Graphics. Interactive Computer Graphics involve two way
communications between the computer system and the user. Non-interactive computer
graphics is the computer graphics in which a user does not have any kind of control over
the image. Computer graphics are any image media, usually movies and pictures, which
are created through the use of hardware and software.
Applications of Computer Graphics
In illustration and designing programs
Animation software
Desktop publishing
Web page designing
Drawing and painting programs
Adobe Photoshop is a graphics application software used to edit and manipulate digital
images. Photoshop was developed in 1987 by the American brothers Thomas and John
Knoll. Photoshop was originally conceived as a subset of the popular design software
Adobe Illustrator. Photoshop became integral to many industries, including publishing,
web design, medicine, film, advertising, engineering, and architecture. The demand for
Photoshop rose as computers improved and digital photography technology advanced.
Photoshop uses a layer-based editing system that enables image creation and altering with
multiple overlays that support transparency. Shadows and other effects can be added to
the layers.
In 2003 Adobe included Photoshop in their Adobe Creative Suite, which bundled the
program with Illustrator, InDesign, and Acrobat, and the next year, it renamed the program
Photoshop CS. Adobe Photoshop CS3, introduced in 2007, offers features that give users
greater control over their digital images.
Photoshop actions include automation features to reduce the need for repetitive tasks.
There are various versions with Photoshop such as Photoshop 7, Adobe Photoshop CS,
CC etc. Here, we are going to discuss about Photoshop CS.
Photo Editing
Press the windows key and type Adobe Photoshop CC in search box and press
enter key to open the Photoshop CC.
Photoshop has various tools for the picture creating and editing. The tool is always
appearing at the left most side of the window. Let’s identify the tools of Photoshop.
1: Rectangular marquee tool: Make the image square or
rectangular
2: Move tool: Move the picture or image.
3: Lasso tool: Free selection with the help of mouse.
4: Quick selection tool: Quick selection from the brush tool.
5: Crop tool: Crop the image in required size.
6: Eye dropper tool: Select the colour from the image.
7: Spot healing brush tool: Remove the spot from the image.
8: Brush tool: Paint the image.
9: Clone stamp tool: Make clone and duplicate in the selected
area.
10: History brush tool: Apply synapse paint
11: Eraser tool: Remove any part of the image.
12: Gradient tool: Fill gradient from one colour to another
colour.
13: Blur tool: Make image dim by deducting the pixel
contrast.
14: Dodge tool: Bring lightness on the image.
15: Pen tool: Edit point location and draw any type of shape.
16: Type / Text tool: Type the text, symbols or characters.
17: Path selection tool: Select an export of any part of image to other application.
18: Rectangle tool: Draw rectangle shape.
19: Hand tool: Move the image to the desired area.
20: Zoom tool: View the image in larger or smaller size.
21: Toggle tool: Set the opposite colour.
22: Foreground colour tool: To apply the foreground colour.
23: Background colour tool: To apply the background colour.
Gradient Tool
This tool is used to fill colours horizontally. We can use this tool to create banners.
Open the required image.
Select the part of the image.
Click on the gradient tool from the tool box.
Drag the mouse across the image.
Move towards left or right or as your desired location to
apply it.
Blur Tool
You can also blur portions of your image to emphasize and focus on a particular element.
It is used to reduce the extra pixel contrast and make the image dim.
Open the required image.
Click on the blur tool from the tool box.
Choose the required brush from the present picker.
Drag the mouse pointer over the part of the picture and
release the mouse.
This tool is used to enlarge the size of the image. This tool is like a magnifying glass.
Open the required image.
Click on the zoom tool from the tool box.
Press CTRL + (+) for zoom in [Larger View] and CTRL + (-) for zoom out
[smaller view] of the image.
Hand Tool
This tool is used to move the image horizontally or vertically on
the screen.
Open the required image.
Click on the hand tool from the tool box.
Click on image then drag it as required.
Drag the mouse pointer over the part of the picture and
release the mouse.
Text tool
We can use this tool to type the text, symbols, characters and sentence on the selected
area. We can also type the text over the image as well.
Create a new blank canvas or open any picture file.
Click on text tool from the tool box.
Drag on the location where you want to type the
text.
A cursor will appear, type the text as required.
Clone Stamp Tool
Clone stamp tool allows you to copy one area of an image onto another area of an image.
Open an image.
This option helps to rotate or flip the image either horizontally or vertically.
Open the required image that you want to rotate.
Click on image menu and select image rotation option.
A list will appear, choose the required rotation option
If you select the option as 900 Clockwise, the normal image looks as the right figure of
the above.
You can save your drawing in different formats like .JPG, .JPEG, .GIF, .TIF, BMP, etc.
The following are the ways of saving the Photoshop image in different format.
Prepare an image in a Photoshop.
Click on the file menu.
Choose save or save as option.
Type the file name on the file name box.
Click on save as type drop down option to view various file formats as below.
Importing an image
You can import the pictures in Photoshop from the internet or even from your mobile
phone, camera, scanner, etc. Importing images from the internet and other devices is
different. You need to attach your device with the computer system to transfer the pictures
or videos.
Importing picture from mobile phone or camera is very easy, for this you have to connect
your device with the computer system then you can open the mobile or camera drive
from windows explorer. Just copy and paste the image on your computer system from the
folder of mobile or camera where the pictures are stored. Here we are going to learn how
to import the pictures from the scanner.
Importing from scanner
Make sure that your scanner is connected properly with the computer system.
Place the image that you want to scan on the scanner.
Click on file menu.
Choose import from the list of options.
Choose the Pre-installed scanner name.
Click on preview button then a preview of
image appears on the screen.
Adjust the size if required and click on Scan
button.
Now, your system will start to scan the image.
Finally, close the scanning dialog box and save the image with required picture
format.
Locking Layers
Locking the layers can be a handy tool when working in
Photoshop. There are several ways to lock the layer or layer
contents. Each layer can be locked by selecting the layer, and
then selecting the type of lock. Below are the types of locks.
Layer Buttons
There are several buttons that are located at the bottom of the
layers palette. Many of these buttons perform actions that can
be found in other locations within the program.
Link layers: Select two or more layers and click this button to link them together.
Linking means that they will all move together.
Add a new layer style: This button allows you to add a new layer style without
Create new fill or adjustment layer: This button allows you to add a new layer
style without using the Adjustments Palette.
Create a new group: Click this to create a new group. Drag layers into this group
to organize them.
Create a new layer: Clicking this will create a new, empty layer.
Delete layer: Select a layer or multiple layers and click this button to permanently
delete them.
Raster Image
A raster graphics image is a dot matrix data structure, representing a generally rectangular
grid of pixels, or points of colour, viewable through a monitor, paper, or other display
medium. Raster images are stored in image files with varying formats. The photos taken
by the digital camera are the raster images which contains a large number of pixels. We
can store the raster images by using .bmp, .tif, .jpg, etc. file extensions.
Vector Image
Vector graphics is the creation of digital images through a sequence of commands or
mathematical statements that place lines and shapes in a given two-dimensional or three-
dimensional space. This graphics required more space than the bitmap images. The file
are generally stored in .ai , .eps, .drw, .svg, etc.
Page Layout
In graphic design, page layout is a process of placing and arranging text, images, and
graphics on a software page to produce documents such as newsletters, brochures, books,
website, etc. Page layout takes all elements of the page like the page margins, blocks
of text, positioning of images and so on. Page design can be modified in page layouts
applications such as Adobe InDesign.
Adobe InDesign
InDesign is a page-layout desktop publishing software application for creating flyers,
brochures, magazines, newspapers, and books. It is advanced more than the previous
Click on the File menu and select New and choose Document.
A Document Setup dialog box will appear as below.
Wrapping text
Printing the documents means creating hard copy of it. We can use the given steps to print
the InDesign document.
Open the required document that you want
to print.
Click on file menu and select print option.
A print dialog box will appear.
Select the option default from the combo box
print preset.
Now, select the name of the printer that you
have installed on your system.
Select the required page or page range.
Click on Print to print the document.
We can save the InDesign document in PDF format. To save the InDesign file on PDF
format we can use the given steps.
Save your document.
Click on File and select Export.
A dialog box will appear
which ask you to save.
Type required file name on
file name box and choose
Adobe PDF (print) from save as
type box.
Another dialog box will
appear in which you can apply
other required settings.
EXERCISE
1. Choose the correct option from the given alternatives.
a. Which of the following is a graphics program?
i. Ms-Word ii. MS-Excel iii. Photoshop
b. Which of the following is a photo editing software?
i. Photoshop ii. PowerPoint iii. Accounting program
c. Which tool is used to crop the image in required size?
i. Eraser tool ii. Crop tool iii. Line tool
d. Which tool is used to remove the certain area or part of the image?
i. Eraser tool ii. Hand tool iii. Line tool
e. Which menu can we use to show and hide the layers?
i. File Menu ii. Insert Menu iii. Windows Menu
f. Which menu can we use to create PDF in InDesign Program?
i. File Menu ii. Insert Menu iii. Home Menu
Lab Activities
Bring your image, scan it and use the following tools to apply
the effects. Save each time when you apply the effects.
• Spot Healing Brush Tool • Gradient tool • Blur tool
• Hand tool • Text tool • Clone stamp tool
Setting brightness and contrast
• Collect some advertisement samples from the daily newspapers and design
them as same in Photoshop.
• Prepare a birthday card with the help of your teacher.
• Design a format of greeting card of the festival that you like most.
• Design an advertisement for your school about the “Admission Notice” and
print it.
Expected Competency
Thisunit,
At the end of this chapter covers
students willthe
be following
able to: topics:
• define multimedia with some multimedia terminology.
• explain the advantages and disadvantages of multimedia.
• identify the elements of multimedia.
• write down the application areas of multimedia.
Introduction
Basic terminology
Multimedia file: A multimedia file can be any computer file that plays audio and video,
audio only, or video only. Some examples of popular multimedia files include the .mp3
audio file, .mp4, video, avi video, and wmv files.
Multimedia software: Multimedia software is a software that is capable of playing or
recording audio files or playing or recording video files. Windows Media Player, VLC
player, Quick time player and MP3 player are the popular multimedia software.
Accelerated Graphics Port (AGP):It is an advanced port designed for Video
cards and 3D accelerators developed by Intel and introduced in August of 1997, AGP
introduces a dedicated point-to-point channel that allows the graphics controller direct
access to the system memory.
VLC media player (VLC): It is a free and open-source, portable and cross-platform
media player and streaming media server written by the Video LAN project in 2001
AD. It supports a wide variety of operating systems like Windows, iOS, Linux,
Android, Solaris, etc. VLC supports a wide range of file formats including: Audio
formats (mp3, AAC, AC3, RealAudio, WMV), Video Format (AVI, FLV, QuickTime
File Format, MP4, WAV, MPEG, WMV) and Subtitles (DVD-Video, SVCD, DVB,
MPEG-4 etc.)
Advantages of multimedia
It is a very powerful tool for the teaching learning activities so that learning process
is becoming easier.
It is used to prepare an interesting and eye catching advertisement to promote the
business.
It can be used for a variety of listeners, ranging from one person to the whole group.
It helps to create interesting types of video games, movies and cartoons.
It is used to develop an interactive web page.
Disadvantages of multimedia
It is expensive system to establish.
Trained person is required to work with this.
The multimedia files are difficult to attach within an email because it has a large
file size.
It may not be suitable for every user.
Elements of multimedia
Multimedia is completely meaningful because of its some elements which we are going
to discuss below.
Text
Text has the most impact on the quality of the multimedia interaction. Generally, text
provides an important information. Text acts as the keystone tying all of the other media
elements together. Text in multimedia systems can express specific information, or it can
act as support for information contained in other media items.
Image or Graphic
It is a visual multimedia element which represents such as a photo, illustration, 3D or
diagram. In the computer, a graphic is a file such as JPEG or GIF, there is graphic formats.
Graphic is a picture image in the computer. We can use computer graphic to design a
picture, flash or game. We can make more effect in the picture, make a flash video or
make a game by using graphic software.
Audio
Audio is one of the multimedia elements. Audio is sound within the audio range available
to humans. Commonly we can hear many audio from Internet, Radio, MP3, Computer
and so more. Now, we can listen music or download music from website.
Application of multimedia
Multimedia plays a vital role in every sector. Some of the popular application areas of
multimedia are explained below.
Education
There is a great impact of multimedia in
the field of education. The students do Exploring Knowledge!
not entertain with the traditional types of A humanoid robot is a robot with
learning activities. The use of multimedia its body shape built to resemble the
in education can make more changes human body. The design may be for
in the teaching and learning activities. functional purpose, such as interacting
The interactive CD for different subjects with human tools and environments.
Quick Learn
Text, video, animation, audio, etc. are the elements of multimedia.
Graphic is a visual multimedia element which represent such as a photo,
illustration, 3D or diagram.
Animation is a visual technique that provides the illusion of motion by
displaying a collection of images in rapid sequence.
The use of multimedia in education can make more changes in the teaching and
learning activities.
Multimedia technology can be used to transform the information about health
services and produce public awareness programs in health sector.
We can add animation in the advertisement to make it more effective and
interesting.
250 New Gateway to Computer Science Book-8
EXERCISE
Lab Activities
No
5 No
If a > b If a > c
Yes
Yes
If b > c Print a
No
Yes
Chapter
18 Program Designing Tools and Techniques
Chapter
19 Fundamental Knowledge of Programming
Chapter
20 Computer Programming in QBASIC
Elements of QBASIC statements
Practical Time
Specification Grid
Model Question
Chapter
Program Designing Tools and Techniques
18
Expected Competency
At the end of thisThisunit,
chapter covers
students the able
willbe following
to: topics:
• identify the various program designing tools.
• write the features of algorithm.
• tell about the types of flow charts.
• define the pscudocode.
Introduction
Program Design tools are the tools used to develop a program. During designing a
program, different tools are required to solve several problems. Programming tool is a
computer program that software developers use to create, debug and maintain programs
and applications. The most basic tools are a source code editor and a compiler or interpreter,
which are used universally and continuously. A programming tool may be any software
program or utility that helps software developers or programmers in creating, editing,
debugging, maintaining and/or performing any programming or developing-specific task.
A programming tool is also known as a software development tool.
A programmer can use the given tools to design a program which we are going to discuss
below.
Algorithm
We have to use different steps to solve the problems. An algorithm is a set of instructions
designed to perform a specific task. We can define algorithm as a step by step procedure
to solve a given problem in a finite number of steps. The steps which we are writing
in algorithm should be in a proper sequential order. While preparing an algorithm, we
should identify what should be the input, process, output and storage.
Quick Learn
Program Design tools are the tools used to develop a program.
Programming tool is a computer program that software developers use to create,
debug and maintain programs and applications.
A programming tool is also known as a software development tool.
Algorithm is a step by step procedure to solve a given problem in a finite number
of steps.
Flowchart is a diagrammatically representation of an algorithm.
Draw
Read A
Read B
Sum=A+B
Print Sum
End
Start
Read a,b,c
No No
If a > b If a > c
Yes
Yes
If b > c Print a
No
Yes
Print b Print c
smallest
Stop
Quick Learn
There are two types of flowchart. They are program flowchart and system
flowchart.
System flowcharts are the way of displaying how data flows in a system and how
decisions are made to control events.
Program flowchart is a diagram which uses a set of standard graphic symbols to
represent a sequence of coded instructions.
There are four basic symbols in program flowchart. They are start, process,
decision and end.
Pseudocode is a simple way of writing programming code in English.
Pseudocode is not a programming language.
d. There are two types of flowchart. They are program flowchart and ……………
flowchart.
Expected Competency
Thisunit,
At the end of this chapter covers
students willthe
be following
able to: topics:
• define computer language with its types.
• explain the advantages and disadvantages of programming langauages.
Introduction
Today, most people do not need to know how a computer works. Most people can simply
turn on a computer or a mobile phone and point at some little graphical object on the
display, click a button or swipe a finger or both, and the computer does something. But,
since we are going to learn how to write computer programs, you need to know about how
a computer works. Basically, writing software (computer programs) involves describing
processes, procedures; it involves the authoring of algorithms about which we learnt little
in previous classes.
A computer does not understand any languages as human. Programming language is
needed to write a computer program. It is an artificial language that is used to communicate
between computer hardware and user. We can use the three different languages to write
the computer programs. They are machine language, assembly language and high level
language. Among the three languages these days we are using high level languages to
write the computer programs.
Assembly Language
Quick Learn
A computer does not understand any languages as human.
Programming language is needed to write a computer program.
We can use the three different languages to write the computer programs
they are machine language, assembly language and high level language.
Machine level language can be understood by the machine only.
Machine level language also called as machine code or object code.
Assembly Language is a low-level programming language used to interface
with computer hardware.
Assembly languages have the same structure and set of commands as machine
languages, but they enable a programmer to use names instead of numbers.
High level languages are closer to human language.
A translator like compiler and interpreter can be used to translate the language
from high level language to machine level language and vice versa.
BASIC, PASCAL, FORTRAN, C/C++, HTML, JAVA, etc. are the examples of
high level language.
e. BASIC, PASCAL, FORTRAN, C/C++, HTML, JAVA, etc. are the examples of
………...
b. Machine language, assembly language and high level language are the
three types of programming language.
d. Machine languages have the same structure and set of commands as machine
languages, but they enable a programmer to use names instead of numbers.
e. A translator like compiler and interpreter can be used to translate the language
from high level language to machine level language and vice versa.
a. What is the name of language that can be understood by the machine only?
Expected Competency
At the end of thisThisunit,
chapter covers
students willthe
be following
able to: topics:
• define QBASIC with its features.
• tell the elements of QBASIC.
• identify the types of operators.
• explain various QUBASIC statements.
• describe QUBASIC looping structure.
Introduction
QBASIC stands for Quick Beginners All-purpose Symbolic Instruction Code. It is the
most popular high level programming language. QBASIC is the advanced form of BASIC
program. The BASIC program was developed by John George Kemeny and Thomas
Eugene in 1964 AD in USA. This language is quite simple to understand and has been
adopted by most of the microcomputers.
Features of QBASIC
It is very easy to understanding and writing the programs.
It has menu so that we can use QBAIC menu to perform various tasks easily.
It is very easy to debug the programs.
It is used for both scientific and commercial applications.
Starting QBASIC
Boot your computer system.
Open the QBASIC folder location.
Press Esc key to remove the welcome dialogue box and start working on QBASIC.
Character Set
A set of characters that are allowed to use in QBASIC is known as the QBASIC Character
Set. The QBASIC Character Set consists of alphabets (both small and capital), numbers
(0 to 9) and special characters. These special characters have their own meaning and
functions. QBASIC has the character set consisting of the following elements:
Alphabets: A, B, C,....Z
Variables
To store data in the computer, location are used. To locate or naming the address variables
are used. Variable is a symbolic name that is used to store data (numbers, text, string,
special characters, etc.) in the computer memory. During the program execution, the
value of a variable is assigned to the computer memory. The following are the types of
variables.
Numeric Variable
String Variable
Quick Learn
QBASIC is the most popular high level programming language.
QBASIC was developed by John George Kemeny and Thomas Eugene in
1964 AD in USA.
The elements of QBASIC programming are character set, variables, constants,
etc.
A set of characters that are allowed to use in QBASIC is known as the QBASIC
Character Set.
The QBASIC Character Set consists of alphabets, numbers and some special
characters.
Variable is a symbolic name that is used to store data in the computer’s memory.
Numeric and string are the two types of variables.
The value of constant is fixed which is used in the program.
Numeric constant consists of a sequence of digits with or without decimal value.
String constant is a string value which is used in program
Relational Operators
Relational Operators are used to compare the value of variables. A comparison of string
data with numeric data cannot be done. The comparison of string data is done on the basis
of ASCII value. The result of comparison is either true (1) or false (0).The following table
shows the relational operators used in QBASIC.
Statements
Quick Learn
There are two types of flowcharts. They are program flowchart and system
flowchart.
Operators are the sign or symbols that are used to do mathematical
calculations like addition, subtraction, multiplication and division.
Logical Operators combine two or more relational expressions to evaluate
a single value as True or False.
An expression can be a string, or numeric constant, a variable or a
combination of constants, variables with operators which return a single
value.
A statement is a computer instruction written in a source language, such as
QBASIC, which is converted into one or more machine code instructions
by a compiler.
LET statement
Practical Time
CLS
LET A= 20
LET B = 30
LET SUM = A+B
PRINT “The Sum is”; SUM
END
CLS statement
This command is used to clear the previous output screen. If you write CLS statement in
the middle of the program, then you cannot see the outputs generated before execution of
CLS because it clears the screen.
Syntax: CLS
REM statement
REM statement is a non-executable statement and stands for remarks. It is a basic
declaration statement that allows explanatory remarks to be inserted in a program. The
remarks may be useful in a program to explain about different kinds of statements and
user defined words.
Syntax: REM <text for remarks>
PRINT statement
PRINT command is used to display any message or value on the screen. PRINT statement
provides output on the screen. It prints the values of the expression on the screen. If
Practical Time
A program to display the text or number on the screen.
CLS
PRINT “We are learning QBASIC programming.”
PRINT
PRINT “Learning QBASIC is fun.”
PRINT 98511 Output
We are learning QBASIC programming
PRINT “The number is:” ; 22004
Learning QBASIC is fun 98511
END The number is: 22004
INPUT statement
INPUT statement in QBASIC is used to accept the data item from the user. It allows
entering values into the computer’s memory during the program execution. This statement
will print and wait for the user to enter the value and then assign this value to a variable.
Syntax : INPUT [“Message”]; Variables
Practical Time
A program to find out the sum of any three numbers.
CLS
INPUT “Enter the first number: ”; A Output
Enter the first number: 20
INPUT “Enter the second number: ”; B Enter the second number: 30
Enter the third number: 40
INPUT “Enter the third number: ”; C
The sum of the three number is :90
SUM = A + B + C
PRINT “The sum of the three number is : ”; SUM
END
Selection Structure
It is also known as branching structure that allows you to transfer the program control
from one part to another on the basis of specified condition or without condition. Here,
we are going to learn some selection structures in QBASIC.
IF......THEN Statement
It helps the computer to check whether the relation is TRUE or FALSE. This statement is
used to make the decision as well as comparison.
Syntax
IF <condition> THEN
(statement)
END IF
Practical Time
A program to check whether the entered number 10 is greater than 2 or not.
CLS
INPUT A , B
IF A> B THEN Output
10 is greater than 2.
PRINT A; "is greater than 2."
END IF
END
Practical Time
A program to check whether the entered number is divisible by 2 or not.
CLS
Output
N = 10 it is divisible by 2.
IF N MOD 5 = 0 THEN
PRINT “it is divisible by 2.”
END
It is the two way decision making statement that can decide which part of statement it
has executed when the condition is true or false. It executes one part of a program if the
condition is true and another part if the condition is not true or false.
Syntax:
IF <condition> THEN
(statement 1)
ELSE
(statement 2)
END IF
Practical Time
A program to check whether the entered number is odd or even.
CLS
INPUT “Enter the number” ; N
R = N MOD 2
IF R = 0 THEN
PRINT “It is an even number”
ELSE
PRINT “It is odd number”
END IF
END
Practical Time
A program to check whether the number is divisible by 4 and 6 or not.
CLS
INPUT “Enter the number” ; N
IF N MOD 4 = 0 and N MOD 6 = 0 THEN
PRINT “The number is divisible by 4 and 6”
ELSE
PRINT “The number is not divisible by 4 and 6”
END IF
END
Practical Time
A program to print the greatest number among three different numbers.
CLS
INPUT “Enter first number”; A
INPUT “Enter second number”; B
INPUT “Enter third number”; C
IF A>B AND A>C THEN
PRINT A; “is greater”
ELSEIF B>A AND B>C THEN
PRINT C; “is greater”
ELSE
PRINT C; “is greater”
END IF
END
A looping structure is a logic which is used to execute one or more than one statements
for a number of times. A loop allows a group of statements to be executed a certain
number of times depending upon the condition. Here we are going to discuss some
looping structures.
For........Next Statement
It repeats a block of statement for specified number of times. It is used to execute a series
of instructions for a given number of times.
Syntax:
FOR <control variable> = <initial value> TO <ending value> STEP <N>
(Statement block)
NEXT < control variable>
Practical Time
A program to display the number such as 1, 3 , 5 , 7 , 9
CLS
FOR I = 1 TO10 STEP 2
PRINT I;
NEXT I
END
While.....Wend Statement
It executes a block of statements repeatedly till the specific condition is true. When the
value of the condition is false, the loop stops.
Syntax:
WHILE <condition>
(statement)
(Increase / decrease the value of control variable)
WEND
Practical Time
A program to display the number such as 1,4 ,7 , 10………….25.
CLS
A=1
WHILE A<=25
PRINT A
A=A+3
WEND
END
Quick Learn
A looping structure is a logic which is used to execute one or more than one
statements for a number of times.
For........Next statement repeats a block of statement for specified number of
times.
While.....Wend statement executes a block of statements repeatedly till the specific
condition is true.
Do....Loop statement repeats a part of program while a condition is true or until the
condition becomes true.
EXERCISE
1. Fill in the blanks with suitable words.
a. A set of characters that are allowed to use in QBASIC is known as ………
b. ………….. is a symbolic name that is used to store data in the computer’s
memory.
c. The value of …………… is fixed which is used in the program.
d. …………….. command is used to clear the previous output screen.
e. ……… statement in QBASIC is used to accept the data item from the user.
Practical Time-2
Write a QBASIC program to find out the average of any two numbers.
CLS
INPUT “Enter the first number”; A
INPUT “Enter the second number”; B
AVG = (A+B)/2
PRINT “The average value is”; AVG
END
Practical Time-4
Write a QBASIC program to convert the kilometre into meter.
CLS
INPUT “Enter the kilometre value ”; K
M = K * 1000
PRINT “The distance in meter is::”; M
END
Practical Time-5
Write a QBASIC program to print the factors of a given number.
CLS
INPUT “Enter any number”; N
FOR I = 1 TO N
IF N MOD I = 0 THEN
PRINT I
NEXT I
END
Practical Time-7
Write a QBASIC program to calculate the cube root of a given number
CLS
INPUT “Enter any number”; N
A = N ^ (1 / 3)
PRINT “Cube root of “; N; ” is “; A
END
Practical Time-8
Write a QBASIC program to calculate the area of circle.
CLS
INPUT “ENTER THE RADIUS OF CIRCLE”; R
A = 3.141*R^2
PRINT “AREA OF CIRCLE =”; A
END
Practical Time-10
Write a QBASIC program to display the series 1,2,4,7,11upto 15th term.
CLS
A=1
FOR I=1 TO 15
PRINT A;
A=A + I
NEXT
END
Practical Time-11
Write a QBASIC program to enter any two numbers and display the smaller one.
CLS
INPUT “ENTER ANY TWO NUMBERS”; A, B
IF A < B THEN
PRINT A; “IS SMALLER”
ELSE
PRINT B; “IS SMALLER”
END IF
END
Practical Time-13
Write a QBASIC program to display the sum of numbers from 1 to 100.
CLS
S= 0
FOR I = 1 TO 100
S=S+I
NEXT I
PRINT “The total sum is:” ; SUM
END
Practical Time-14
Write a QBASIC program to convert the temperature Celsius into Fahrenheit.
CLS
INPUT “Enter the temperature in Celsius”; C
F = (9*C/5) + 32
PRINT “The temperature in Fahrenheit is:” ; F
END
Practical Time-16
Write a QBASIC program to display the series : 3 , 6, 9, 12, 15, 18, 21, 24, 27, 30.
CLS
FOR I = 3 TO 30 STEP 3
PRINT I
NEXT I
END
Theory Part
S. Area Topics No. of Types of questions
N. questions
1 Fundamental • Introduction of computer Knowledge Skill Low High
Knowledge • Introduction of Hardware Base Ability Ability
& Skill Computer • Introduction of Software
• Input and Output Devices
• Storage Devices b/w 1 1 1 1
• Introduction of Word Processing
• Introduction of Spread Sheet
•Introduction of Presentation
Package
2 ICT, Ethics and • Concept ICT technology
Cyber Laws • Computer Ethics and cyber law
• Computer Virus, remedy and
protection 2 1 1
• Introduction data communication
and Network
• Introduction of Web design
• Use of Website, Internet and
E-mail
3 Number System • Decimal to Binary and Vice versa
• Binary Calculation: Addition and 1 1
Multiplication
4 Computer Graphics •Introduction of computer
Graphics 2 1 1
• Uses of computer graphics in
various field
5 Concept of computer • Basic Concept of Computer 1 1
Programming Programming
Total 10 3 3 2 2
Practical Part
Full Marks:50 Time: 1: 00 Pass Marks: 20
SN Area Topics No of Marks
Question
1 Fundamental • Creating document by following instructions.
Knowledge • Create four different types of data and show in chart
& Skill Computer • Insert given data according to instructions 1 25
• To create four Power Point slides and presentation
2 Computer Graphics • Develop simple Web page using HTML Tags
• Develop four colour Book Design 1 25