Text Book Comp 162 V 4
Text Book Comp 162 V 4
Authority Punjab
Comp-162
Computer Applications
BY
SHAUKAT ALI RANA MUHAMMAD ALI BUTT
SENIOR INSTRUCTOR INSTRUCTOR
ii | P a g e
COMP-162 COMPUTER APPLICATIONS
PREFACE
This book Comp-162 Computer Applications has been written according to
the revised curriculum approved by TEVTA for Diploma of Associate
Engineers first year electrical technology.
This is the age of information technology and computer is essential part of this
technology. Computer has come out from its earlier specific applications i.e.
research and engineering etc. Now it is becoming an integral part of general
society. Today we can see the computer in our daily life, like in colleges,
schools, offices, vehicles and even in pockets.
The main objective to write this book is to provide ready reference facility for
students of electrical technology to explain the enduring concepts of computer
hardware and software, and to show you the concrete ways that these ideas
affect the correctness, performance, and utilities of operating systems
Windows and application programs like MS Word, MS PowerPoint and web
browser. This book also helps you understand the principles and acquire the
practical skills of programming using the C++ programming language
according to technology.
AUTHORS
iii | P a g e
COMP-162 COMPUTER APPLICATIONS
TABLE OF CONTENTS
Topic Page#
CHAPTER # 01
01-62
ELECTRONIC DATA PROCESSING (E.D.P)
CHAPTER # 02
63-99
MS-WINDOWS
iv | P a g e
COMP-162 COMPUTER APPLICATIONS
CHAPTER # 03
100-142
MS-OFFICE (MS-WORD)
CHAPTER # 04
143-184
MS-OFFICE (MS-EXCEL)
4.1 Explain Introduction to MS-Excel & its Screen
4.2 Describe Entering data & apply formulas in worksheet
4.3 Describe Editing &Formatting the, Cells, Row & Column
4.4 Explain Insert Graphs in sheet
4.5 Describe Page setup, Print preview & Printing
4.6 Explain in details formulas for sum, subtract, multiply,
divide, average
4.7 Explain in details the types of charts e.g pie chart, bar
chart
v|Page
COMP-162 COMPUTER APPLICATIONS
CHAPTER # 05
185-211
MS. OFFICE (MS-POWER POINT)
5.1 Describe Introduction to MS-Power point
5.2 Explain creating a presentation
5.3 Describe Editing & formatting a text box
5.4 Explain Adding pictures & colors to a slide
5.5 Describe Making slide shows
5.6 Explain Slide Transitions
CHAPTER # 06
212-238
PROGRAMMING LANGUAGE
6.1 Define program, programming, programmer , and
programming languages.
6.2 Classify computer programming languages.
6.3 Describe briefly computer languages.
6.4 Describe C++ programming language and its advantages.
6.5 Explain arithmetic operations
6.6 Explain logical operations
6.7 Explain the basics of loops for repetitive operations.
6.8 Explain the components of Flow-Charts for simple
computer program.
CHAPTER # 07
239-267
INTERNET & EMAIL
7.1 Explain Introduction to Internet and browser window
7.2 Explain Searching, Saving and Print a page from internet
7.3 Describe Creating, Reading & Sending E-Mail
7.4 File attachment.
7.5 Uploading and downloading file(s) and software(s)
7.6 Explain some advance features over the internet and how
to search topics on different search engines
7.7 Difference between Internet, Intranet and Extranet
vi | P a g e
COMP-162 COMPUTER APPLICATIONS
CHAPTER 1
ELECTRONICS DATA
PROCESSING
General Objective:
Understand basic concepts of Electronic Data Processing.
Specific objectives:
After studying this chapter students should be able to:
Hardware, Software
Generations of Computers
Types of Software
Programming Languages
1|Page
COMP-162 COMPUTER APPLICATIONS
Examples
Each student's test score is one piece of data.
A product purchased by a customer is also piece of data.
2|Page
COMP-162 COMPUTER APPLICATIONS
Types of data
There are different types of data that may consist of numbers, text,
symbols, images, videos and voice.
1. NUMERIC DATA
Numeric data consists of positive or negative numbers that may also
be integer without any fractional part or real number which includes integers
with fractions. Numeric type data is usually used for calculations.
Examples of Integer numbers Examples of Real numbers
12, 256, -23, -87 3.1415, -5.40, 7.86
2. ALPHABETIC DATA
Alphabetic data contains the letters a, b, c… up to z. These letters may
be small or capitals. Alphabets are basic part of any human language. In real
life everything is called with its name and every name made up with
alphabets.
Examples of Alphabetic Data
Islamabad, Zain, Table, Office, College, TEVTA, computer etc
3. ALPHANUMERIC DATA
Alphanumeric data is combination of alphabets, numbers, special
characters (symbols) and space character.
Examples of Alphanumeric Data
Year2017, Roll No 15EA04, $46, 0330-1234567
4. GRAPHIC DATA
Graphics includes pictures, snaps, drawings, charts and moving
pictures (movies) etc.
5. AUDIO DATA
Audio includes any type of voice that may be Tilawat, Naats, National
Songs, human voice, etc.
3|Page
COMP-162 COMPUTER APPLICATIONS
Example
The average score of a class or of the entire school is information that
can be derived from the given data.
HARDWARE
Computer hardware includes the physical parts of a computer, such as
the case, central processing unit, monitor, mouse, keyboard, computer data
storage, graphics card, sound card, speakers and motherboard. By contrast,
software is the set of instructions that can be stored and run by hardware. Or
Hardware refers to the physical elements of a computer. Also referred to as
the machinery or the equipment of the computer. Examples of hardware in a
computer are the keyboard, the monitor, the mouse and the processing unit
However, most of a computer's hardware cannot be seen; it’s inside the
computer case.
SOFTWARE
Computer software, or simply software, is a collection of data or
computer instructions that tell the computer how to work. This is in contrast to
physical hardware, from which the system is built and actually performs the
work. Or Software is a set of instructions, data or programs used to operate
computers and execute specific tasks. Examples of applications include office
4|Page
COMP-162 COMPUTER APPLICATIONS
3- HYBRID COMPUTERS
A hybrid is a combination of digital and analog computers. It
combines the best features of both types of computers, i-e. It has the speed of
analog computer and the memory and accuracy of digital computer.
Hybrid computers for example are used for scientific calculations, in
defense and radar systems, In Intensive Care Unit (ICU) to measure patient’s
blood pressure and temperature etc.
5|Page
COMP-162 COMPUTER APPLICATIONS
6|Page
COMP-162 COMPUTER APPLICATIONS
7|Page
COMP-162 COMPUTER APPLICATIONS
8|Page
COMP-162 COMPUTER APPLICATIONS
Memory Unit
Memory unit is divided into two types i.e primary unit and secondary
unit. Primary unit include the RAM (Random Access Memory) it
stores data temporarily as long as the computer system is ON.
Secondary memory unit include the storage devices like Hard Disk,
Flash Drive, SD Cards, CDs, DVDs etc. These devices can store data
permanently.
9|Page
COMP-162 COMPUTER APPLICATIONS
CPU
A central processing unit (CPU), also called a central processor,
main processor or just processor, is the electronic circuitry within a
computer that executes instructions that make up a computer program.
The computer's central processing unit (CPU) is the portion of a
computer that retrieves and executes instructions. The CPU is
essentially the brain of a CAD system. It consists of an arithmetic and
logic unit (ALU), a control unit, and various registers. The CPU is
often simply referred to as the processor.
10 | P a g e
COMP-162 COMPUTER APPLICATIONS
Memory Unit
Memory unit is divided into two types i.e primary unit and secondary
unit. Primary unit include the RAM (Random Access Memory) it
stores data temporarily as long as the computer system is ON.
Secondary memory unit include the storage devices like Hard Disk,
11 | P a g e
COMP-162 COMPUTER APPLICATIONS
Flash Drive, SD Cards, CDs, DVDs etc. These devices can store data
permanently.
1.5 INPUT AND OUTPUT DEVICES
Input and output devices are used to interact with the computer system.
Input devices let you to transfer data and user command into the computer
system. Most commonly used input devices are keyboard, mouse, touch pad,
scanner, microphone, joystick and digital camera etc.
On the other hand, output devices display the result of input data or
signals after processing it. Examples of these could be your computer’s
monitor, printer, plotter and speakers.
1.5.1 - INPUT DEVICES
KEYBOARD
The keyboard is one of the primary ways we communicate with the
computer and enter data. The most widely used layout in the English language
is called QWERTY.A standard desktop computer keyboard contains 101 to
105 keys as shown in figure 1.4.
12 | P a g e
COMP-162 COMPUTER APPLICATIONS
defined on them. This keypad is provided to support quick entry for numeric
data.
13 | P a g e
COMP-162 COMPUTER APPLICATIONS
Punctuation Keys
All of the keys associated with punctuation such as the comma, period,
semicolon, brackets, and parenthesis etc. Also, all of the mathematical
operators such as the plus sign, minus sign, and equal sign etc.
Special Keys
All of the other keys on the computer keyboard such as the control
keys, arrow keys, caps lock key, delete key etc.
Cursor Movement Keys
These are arrow keys and used to
move the cursor in the direction
indicated by the arrow (up, down, left,
right).
Function Keys
Function keys labeled F1 to F12.
These keys have different meaning
depending on which program is running.
MOUSE
A mouse (figure 1.5) is the most widely used pointing device with a
14 | P a g e
COMP-162 COMPUTER APPLICATIONS
SCANNER
Scanner (figure 1.10) is important input
device of a computer system. A scanner
converts printed documents in to images.
Some types of scanners scan documents
and produce the results in black and white
15 | P a g e
COMP-162 COMPUTER APPLICATIONS
TOUCH SCREEN
user.
DIGITAL CAMERA
Digital Cameras (figure 1.13) are
used to capture images. Those images are
then transferred to a computer when the
Camera is connected to the computer.
Mostly the Digital Camera images
are in JPEG format. Figure 1.13 – Digital Cameras
MONITOR
16 | P a g e
COMP-162 COMPUTER APPLICATIONS
PRINTERS
A printer is an output device that prints characters, symbols and
graphics, on paper. The printed output is called hard copy.
17 | P a g e
COMP-162 COMPUTER APPLICATIONS
There are two types of printers Impact Printers & Non-Impact Printers.
18 | P a g e
COMP-162 COMPUTER APPLICATIONS
19 | P a g e
COMP-162 COMPUTER APPLICATIONS
20 | P a g e
Figure 1.17 - Plotter
COMP-162 COMPUTER APPLICATIONS
COMPONENTS OF CPU
CPU itself has following three components
Arithmetic Logic Unit)
Control Unit
Memory or Storage Unit
21 | P a g e
COMP-162 COMPUTER APPLICATIONS
22 | P a g e
COMP-162 COMPUTER APPLICATIONS
TYPES OF RAM
D-RAM
Dynamic Random Access Memory is the more common type. It is
slower because it needs to be refreshed thousands of times per second.
DRAM supports access times of about 60 nanoseconds. It is an inexpensive
memory.
S-RAM
Static Random Access Memory is faster than DRAM in term of speed
because it does not need to be refreshed. SRAM can give access times as low
as 10 nanoseconds. Despite SRAM being faster, it's not as commonly used as
DRAM because it's so much more expensive.
ROM
ROM (read-only memory) refers to special
memory chip (figure 1.21) used to store programs
that boot the computer and perform diagnostics. The
ROM can only be read by the CPU but it cannot be
changed. The basic input/output system (BIOS)
program is stored in the ROM that examines and
initializes different equipment attached with the PC.
Figure 1.21 – ROM Chip
ROM is type of non-volatile memory.
PROM
PROM is programmable read only memory. PROM allows the data to
be loaded by the user but it can be written only once. Once a program has
been written onto a PROM, it remains there forever.
EPROM
EPROM (Erasable programmable read only memory) is a special type
of PROM that can be erased by exposing it to ultraviolet light. Once it is
erased, it can be reprogrammed. An EPROM is similar to a PROM, but
requires only ultraviolet light to be erased.
EEPROM
Pronounced e-e-prom, an EEPROM (Electrically erasable
programmable read only memory) is a special type of PROM that can be
erased by exposing it to an electrical charge. Like other types of PROM,
23 | P a g e
COMP-162 COMPUTER APPLICATIONS
EEPROM retains its contents even when the power is turned off. Also like
other types of ROM, EEPROM is not as fast as RAM.
1.6.3 - CACHE MEMORY
Cache memory, also called CPU memory, is static type random access
memory (RAM) that a computer microprocessor can access more quickly than
it can access regular RAM. This memory is typically integrated directly with
the CPU chip or placed on a separate chip that has a separate bus interconnect
with the CPU.
Cache memory is a small-sized type of volatile computer memory that
provides high-speed data access to a processor and stores frequently used
computer programs, applications and data. It stores and retains data only until
a computer is powered up.
1.6.4 – BIT & BYTE
BIT
A bit (short for Binary digit) is the smallest unit of data/information
that can be stored or manipulated in a computer. A bit can have a binary value
of either 0 or 1.
Binary means that there are only two logical choices or states i.e.
True/false or on/off. A bit can be a tiny magnetic region on a hard disk, a
tiny dent on a CD or DVD, or a tiny transistor on a memory stick.
BYTE
A byte is a set of 8 bits that represent a single character in the
computer's memory. Bytes are used to measure file sizes, hard disk space, and
computer memory. Larger amounts of data are measured in units such as
megabytes, gigabytes, and terabytes. For example, one kilobyte is equal to
1,024 bytes. The short form of a byte is an upper-case B.
24 | P a g e
COMP-162 COMPUTER APPLICATIONS
Hard disks are available in different Figure 1.23 – Hard Disk Drive
size like 150 GB, 300 GB and more
up to Tera Bytes.
25 | P a g e
COMP-162 COMPUTER APPLICATIONS
CD (Compact Disk)
CD (Compact Disk) is type of optical
storage media that is used to hold
prerecorded text, graphics and sound.
CD-ROM is a read-only disk. Read
only means the disk’s content is
recorded at the time of manufacture
and cannot be written on or erased by
the user. A CD-ROM disk can hold up Figure 1.24 – CD with CD-Drive
to 700 MB of data, equal to 300,000 pages of text.
CD drive/writer (figure 1.24) is used to play/write CDs. CD drive use
a combination of lasers and sensors to read the data stored on the surface of
the compact disks. Types of CDs are CD-ROM, CD-R (recordable) and CD-
RW (re-writeable)
DVD
DVD “digital video disk” or “digital versatile disk” is a type of optical
disk technology similar to the CD-ROM. It can hold up to 17 GB of data,
about 25 times an ordinary CD-ROM. For this reason, a DVD-ROM can store
a large amount of multimedia software and complete movies in different
languages. It can also play music CDs and CD-ROMs.
DVDs are read-only devices. To avoid this limitation, companies also
produce DVD-R/DVD-RW disks and DVD-burners.
26 | P a g e
COMP-162 COMPUTER APPLICATIONS
27 | P a g e
COMP-162 COMPUTER APPLICATIONS
28 | P a g e
COMP-162 COMPUTER APPLICATIONS
1. MACHINE LANGUAGE
Machine language is a low-level programming language. It is easily
understood by computers but difficult to read by people. This is why people
use higher level programming languages. Programs written in high-level
languages are also either compiled and/or interpreted into machine language
so that computers can execute them.
2. ASSEMBLY LANGUAGE
An assembly language consists of a set of symbols and letters. A
translator is required to translate the assembly language to machine language.
This translator program is called the 'Assembler.' It is use terms
like MOVE, ADD, SUB and END.
Many of the earliest computer programs were written in assembly
languages. A disadvantage of assembly language is that it is not portable,
because each platform comes with a particular Assembly Language.
3. HIGH-LEVEL LANGUAGE
A high level language is a computer programming language that
resembles natural language or mathematical notation and is designed
to reflect the requirements of a problem. Languages such as C, C++, BASIC,
and Java are all high-level languages. Advantages of high-level languages are
that they are very readable and portable. These languages require a compiler
or interpreter to translate into a form that a particular machine understands.
1.9.2 - CLASSIFICATION OF HIGH LEVEL LANGUAGE
Different languages have different purposes, so it makes sense to talk
about different class. Computer languages are classified into following
FUNCTIONAL LANGUAGES
In Functional language, a program is divided into function definitions.
Some of the famous Function languages are Scala, F#, Clojure and Lisp.
PROCEDURAL LANGUAGES
In Procedural Languages, a program is written in a sequence of steps
that should be followed to produce a result. COBOL, FORTRAN and C are
some Procedural languages.
OBJECT ORIENTED PROGRAMMING LANGUAGES
In OOP languages, a program is divided into Object that contains data
as well as methods that operate on the data. Java, C# and C++ are examples
OOP languages.
29 | P a g e
COMP-162 COMPUTER APPLICATIONS
COMPILER
A Compiler is a program that translates a high level language into
machine code. The compiler translates a program (source program) written in
high level language into machine code that can be run on a PC.
When using a compiler, the entire source code needs to be compiled before
the program can be executed. The resulting machine code is typically a
compiled file, such as a file with an .exe extension.
30 | P a g e
COMP-162 COMPUTER APPLICATIONS
INTERPRETER
An Interpreter is also a program that translates high-level source code
into executable code. However, the difference between a compiler and an
interpreter is that an interpreter translates one line at a time and then executes
it: no object code is produced, and so the program has to be interpreted each
time when executed. If the program performs a section code 1000 times, then
the section is translated into machine code 1000 times since each line is
interpreted and then executed.
31 | P a g e
COMP-162 COMPUTER APPLICATIONS
ENTERTAINMENT
Computers are also playing very important role for the entertainment.
Nowadays, computer can be used to watch TV programs on the Internet.
People can also watch movies, listen music, and play games on the computer.
HOME
At home, computer is used to maintain personal records and to access
much other information on the Internet. People can also use computer at home
for making home budgets etc.
MEDICAL
Nearly every area of the medical field uses computers. For example,
computers are used for maintaining patient history & other records. They are
also used for patient monitoring and diagnosis of diseases etc.
DEFENSE
Computers are the main tools which help in developing missiles and
other equipment as well as designing and maintenance in the deference
system. Computer builds the links between the soldiers and commanders
through the satellite.
DESIGNING & PUBLISHING
Computers aid in designing buildings, magazines, prints, newspapers,
books and many others. The construction layouts are designed beautifully on
system using different tools and software.
GOVERNMENT DEPARTMENTS/OFFICES
Computer is used in government offices for communication, data processing
and project management. Like businesses and individuals, computers are
almost essential part of federal and provincial government offices for their
daily office operations.
1.11 - APPLICATIONS OF COMPUTER IN
ENGINEERING, EDUCATION AND BUSINESS
1.11.1 - COMPUTER IN ENGINEERING
Engineering designers require effective means of collecting, storing,
retrieving, processing, communicating, distributing, displaying, plotting and
printing large quantities of information.
32 | P a g e
COMP-162 COMPUTER APPLICATIONS
AUTOMATION
It is almost impossible for humans to perform the same task over and
over again with no variation. So when a company needs hundreds of products
that look and behave identically, they tend to use computers and robots to
construct them.
1.11.2 – COMPUTER IN EDUCATION
Computer technology has a deep impact in the education sector to
make learning easier and much more interesting.
Here is detail of some areas of education where computer has great impacts.
INSTRUCTIONS TO STUDENTS
Lecture delivering using PowerPoint slides, Word documents or Web
pages is very useful for better concept and clarity. Computer can help in
improving pronunciation of students by using microphones, headphones,
speakers, specially prepared software and special dedicated websites. Video
conferencing, chat and email may also be used for communication among
instructors and students for e-learning.
33 | P a g e
COMP-162 COMPUTER APPLICATIONS
STUDENTS LEARNING
Students can use computers to collect notes, pictures, and videos from
web pages for detailed information to manage their projects or assignments. A
saved soft copy of documents can be used in future.
EXAMINATION AND EVALUATION
Examination and evaluation of students can be easily done using
computer because it may facilitate to keep records of students for their
academic scores as well as their grade, personal history about exams etc.
Question bank for students can be created for online testing and
evaluation.
LIBRARY
Electronic library is more helpful for students/faculty members where
documents, magazines, journals, brochures and research articles are stored as
soft copy. Furthermore, special library software can be used in existing library
to keep record of books as well as issues and returns of the books.
INSTITUTE ADMINISTRATION
The administration of the institute can use computer to store student’s
personal, academic and financial records. Similarly accounts of the institution
and records of employees also can be stored.
1.11.3 – COMPUTER IN BUSINESS
Computers are used for all aspects of running a business. Here is detail
of these aspects as follows
BUSINESS COMMUNICATION
In this era companies are using email, live chat systems, online
meeting tools, video conferencing system and smart phones for
communication among employees, suppliers and customers.
INVENTORY MANAGEMENT SYSTEM
Inventory management system is used to track the quantity of each
item a company maintains in its stock.
PAYROLL SYSTEM
Computerized payroll system is used in different organizations to maintain
pay account of employees, easily and quickly.
34 | P a g e
COMP-162 COMPUTER APPLICATIONS
DATA MANAGEMENT
Today, most companies store digital versions of documents on servers
(large computers) and storage devices, these documents can be easily
available geographically via internet.
MANAGEMENT INFORMATION SYSTEM
Management Information System (MIS) enables companies to track
sales data, expenses, productivity level, profitability, losses, identify areas of
improvements and strategic decisions.
HUMAN RESOURCE MANAGEMENT
Computerized HRM helps for the better human resource planning,
recruitment, wages and salary planning, personnel record keeping, training
and development.
35 | P a g e
COMP-162 COMPUTER APPLICATIONS
EXERCISE
SHORT QUESTIONS
1. What does E.D.P stands for?
E.D.P stands for Electronic Data Processing
2. Define the electronic data processing
Electronic Data Processing is the use of computers in recording,
classifying, manipulating, and summarizing of the data.
3. Define computer
The term computer is derived from the word compute. The word
compute means to calculate. A computer is an electronic machine that accepts
data from user as input, processes that data by performing calculations and
operations on it, stores data for later retrieval and generates the desired output
results (information)
4. Draw a figure to illustrate the computer
5. Define data
A collection of raw facts and figures is called data. These facts can be
the numbers, words, images, audio, measurements and observations. The word
raw means that the facts have not yet been processed to get their actual
meanings.
6. What are the types of data?
There are different types of data that includes numeric data, alphabetic
data, alphanumeric data, graphic data and voice data.
7. Define the numeric data
Numeric data consists of positive or negative numbers that may also
be integer without any fractional part or real number which includes integers
with fractions.
8. What is use of numeric data?
Numeric type data is usually used for calculations
9. What are examples of numeric data?
Data may contain integer and real numbers. Examples are illustrated below.
36 | P a g e
COMP-162 COMPUTER APPLICATIONS
37 | P a g e
COMP-162 COMPUTER APPLICATIONS
38 | P a g e
COMP-162 COMPUTER APPLICATIONS
39 | P a g e
COMP-162 COMPUTER APPLICATIONS
40 | P a g e
COMP-162 COMPUTER APPLICATIONS
41 | P a g e
COMP-162 COMPUTER APPLICATIONS
42 | P a g e
COMP-162 COMPUTER APPLICATIONS
43 | P a g e
COMP-162 COMPUTER APPLICATIONS
44 | P a g e
COMP-162 COMPUTER APPLICATIONS
45 | P a g e
COMP-162 COMPUTER APPLICATIONS
46 | P a g e
COMP-162 COMPUTER APPLICATIONS
47 | P a g e
COMP-162 COMPUTER APPLICATIONS
48 | P a g e
COMP-162 COMPUTER APPLICATIONS
49 | P a g e
COMP-162 COMPUTER APPLICATIONS
50 | P a g e
COMP-162 COMPUTER APPLICATIONS
LONG QUESTIONS
Q # 1: Define the computer, draw its block diagram.
Q # 2: Explain the data and its types
Q # 3: What is data processing? Differentiate between data and information.
Q # 4: What is difference between information and information technology?
Q # 5: What are output devices? Name some of the commonly used output
devices.
Q # 6: Explain the types of computer.
Q # 7: Classify the high level languages with their names.
Q # 8: What is software? Illustrate its types.
Q # 9: Illustrate the application of computer in various fields of life?
Q #10: What are the applications of computer in engineering, education and
business?
Q #11: What are the components of computer? Explain the input, output and
system unit of computer.
Q #12: Explain the difference between RAM and ROM
Q #13: Differentiate between input and output devices also describe any two
input and two output devices.
Q # 14: Explain all the pointing input devices with their use.
Q # 15: Write a note on following input devices
1. Keyboard 2. Scanner 3. Microphone 4. Touch Screen
Q # 16: What is monitor? Explain different types of monitors.
Q # 17: Differentiate between impact and non-impact printers.
Q # 18: Write a note on following:
1. LASER Printer 2. Dot Matrix Printer 3. Line Printer
Q # 19: Write a note on following:
1. Inkjet Printer 2. Plotter 3. Speaker
Q # 20: What is CPU? Explain its parts.
Q # 21: Explain the RAM and its types.
Q # 22: What is function of ROM? Explain all types of ROM.
Q # 23: Explain the difference between Bit and Byte.
Q # 24: Write a short note on following
1. Cache Memory 2. Primary Memory 3. Secondary Memory
Q # 25: Write a short note on following
1. Volatile Memory 2. Non-volatile Memory 3. ROM
51 | P a g e
COMP-162 COMPUTER APPLICATIONS
52 | P a g e
COMP-162 COMPUTER APPLICATIONS
53 | P a g e
COMP-162 COMPUTER APPLICATIONS
for ___________.
a. business b. entertainment c. logical designing
d. home
28. Computer is used in engineering for ____________.
a. CAD b. problem solving c. automation d. all of these
29. Major component of computer are ______________.
a. hardware b. software c. hardware & software
d. none of these
30. All physical and tangible components of computer are called _________.
54 | P a g e
COMP-162 COMPUTER APPLICATIONS
39. Click, right click, double click, drag and rotate wheel are some common
operations done by the _______________.
a. mouse b. keyboard c. joy stick d. light pen
40. __________ is an input device used to enter voice data into the computer.
a. keyboard b. light pen c. microphone d. joystick
41. Touch pad is usually used in ________________ computers.
a. desktop b. palmtop c. laptop d. none of these
42. A _______ is a device that scans images from photographic prints,posters
magazine, pages, and similar sources for computer editing and display.
a. mouse b. printer c. camera d. scanner
43. A user can interact with computer, smart phones and tablets without a
mouse or keyboard, using ______________.
a. touch pad b. touch screen c. touch stone d. none of these
44. The device used to display the video and graphics information generated
by the computer through the video card is _______________.
a. printer b. speaker c. monitor d. none of these
45. The device used to display soft copy of data and information is ________.
a. monitor b. keyboard c. printers d. plotter
46. Types of monitors are _____________.
a. CRT b. LCD c. LED d. all of these
47. LCD stands for _____________.
a. liquid crystal display b. labour control department
c. least common denominator d. none of these
48. LED stands for _________________.
a. low energy demand b. light emitting diode
c. light emitting display d. none of these
49. CRT stands for _________________.
a. child right trust b. cathode ray tube
c. computer remote terminal d. all of these
50. Number of pixels on computer screen is known as _________________.
a. bit b. picture size c. screen resolution d. mega pixels
55 | P a g e
COMP-162 COMPUTER APPLICATIONS
56 | P a g e
COMP-162 COMPUTER APPLICATIONS
57 | P a g e
COMP-162 COMPUTER APPLICATIONS
58 | P a g e
COMP-162 COMPUTER APPLICATIONS
59 | P a g e
COMP-162 COMPUTER APPLICATIONS
60 | P a g e
COMP-162 COMPUTER APPLICATIONS
61 | P a g e
COMP-162 COMPUTER APPLICATIONS
121. The software that is developed for sale to the general public is called
_______________.
a. custom built software b. packaged software
c. public software d. none of these
122. Software that is specially developed for some specific organization or
other user are called_______________ software.
a. custom built b. packaged c. user d. organization
123. A language used to write instructions for the computer is called
_______________.
a. human language b. instruction language
c. programming language d. none of these
124. Signals can be analog or digital and a computer that processes the both
type of signals is known as _______________ computer.
a. analog b. digital c. hybrid d. mainframe
125. Type(s) of programming languages is/are ________________.
a. machine language b. assembly language
c. high level language d. all of these
126. The programming language which is easily understood by the computer
but difficult to read by people is known as ______________.
a. machine language b. assembly language c. high level language
d. none of above
127. The machine language is also known as _______________.
a. high level language b. binary language c. assembly language
d. none of these
128. The machine code contains ______________.
a. symbols b. decimal digits c. binary digits d. alphabets
129. Example of machine code is _______________.
a. cout<< “hello” b. 01234567 c. 10011011
d. mov x, counter
130. Assembly language consists of _______________.
a. symbols b. symbols & letters c. letters d. binary code
62 | P a g e
COMP-162 COMPUTER APPLICATIONS
63 | P a g e
COMP-162 COMPUTER APPLICATIONS
Answers Key
1 b 29 c 57 a 85 d 113 b
2 a 30 a 58 b 86 b 114 d
3 c 31 b 59 a 87 c 115 b
4 d 32 b 60 b 88 c 116 c
5 b 33 c 61 b 89 a 117 d
6 d 34 c 62 d 90 d 118 a
7 d 35 d 63 a 91 c 119 b
8 b 36 b 64 c 92 a 120 d
9 d 37 c 65 a 93 a 121 b
10 b 38 a 66 c 94 c 122 a
11 d 39 a 67 c 95 b 123 c
12 a 40 c 68 b 96 c 124 c
13 b 41 c 69 d 97 d 125 d
14 c 42 d 70 c 98 d 126 a
15 d 43 b 71 c 99 b 127 b
16 a 44 c 72 a 100 c 128 c
17 b 45 a 73 c 101 c 129 c
18 c 46 d 74 b 102 a 130 b
19 a 47 a 75 b 103 c 131 a
20 a 48 b 76 a 104 b 132 b
21 a 49 b 77 b 105 b 133 b
22 d 50 c 78 d 106 c 134 a
23 d 51 d 79 a 107 c 135 b
24 d 52 a 80 c 108 b 136 c
25 d 53 b 81 d 109 a 137 d
26 b 54 b 82 d 110 d 138 D
27 c 55 d 83 c 111 d 139 B
28 d 56 d 84 a 112 b 140 A
64 | P a g e
COMP-162 COMPUTER APPLICATIONS
CHAPTER 2
Microsoft Windows 10
General Objective:
Understand basic concepts of Microsoft Windows 10.
Specific objectives:
After studying this chapter students should be able to:
Taskbar)
Describe Use' of Control Panel (add/remove program, time & date, mouse
65 | P a g e
COMP-162 COMPUTER APPLICATIONS
66 | P a g e
COMP-162 COMPUTER APPLICATIONS
67 | P a g e
COMP-162 COMPUTER APPLICATIONS
68 | P a g e
COMP-162 COMPUTER APPLICATIONS
In the case that the driver isn't available through Windows Update,
because it's too recent or available only in beta, you'll need to download and
install the package from the manufacturer's support website manually.
69 | P a g e
COMP-162 COMPUTER APPLICATIONS
The loading process in windows is also known as the Boot Process. This
process consists of 5 Phases;
70 | P a g e
COMP-162 COMPUTER APPLICATIONS
1. Phase 1 – Preboot
In this phase, the PC’s firmware is in charge and initiates a POST and
loads the firmware settings. Once all this works (hopefully), the system
identifies a valid system disk and reads the MBR. The system then starts
the Windows Boot Manager. This is located here:
%SystemDrive%\bootmgr
It is the job of the Windows Boot Manager to find and start the Windows
loader (Winload.exe). This is located on the Windows boot partition –
%System Root%\system32\winload.exe
In this phase, essential drivers required to start the Windows kernel are
loaded and the kernel starts to run. The key file here is %System
Root%\system32\ntoskrnl.exe
The kernel loads the system registry hive into memory and loads the
drivers that are marked as BOOT_START. The kernel then passes control
to the session manager process (Smss.exe).
You can identify the phase you are in visually by what your computer is
displaying and the LEDs that are on the system. I will follow up with
additional posts on this subject so that you can easily tell what phase you
are stuck at – and what you can do to fix things.
71 | P a g e
COMP-162 COMPUTER APPLICATIONS
In this phase the logon screen appears in front of the user where user types
the username and password to log on to the system.
72 | P a g e
COMP-162 COMPUTER APPLICATIONS
Signing in to Windows 10
You'll probably be asked to create a Microsoft account the very time you use
Windows 10 (if you don't have one already). From this point on, whenever
you turn on the computer you'll need to sign in to that account. To do
this, type your password into the box and press Enter.
73 | P a g e
COMP-162 COMPUTER APPLICATIONS
Desktop Interface
Once you've signed in, the first thing you'll see is the desktop. You can think
of the desktop as the main workspace for your computer. From here, you can
view and manage your files, open applications, access the Internet, and much
more.
Click the buttons in the interactive below to become more familiar with the
Windows 10 desktop:
74 | P a g e
COMP-162 COMPUTER APPLICATIONS
Opening Applications
You'll use the Start menu to open programs on your computer, just like with
previous
75 | P a g e
COMP-162 COMPUTER APPLICATIONS
76 | P a g e
COMP-162 COMPUTER APPLICATIONS
accessed from the Settings app, like adding a new user. Because of this, you'll
probably use the Settings app more often.
When you're done using your computer, it's important to shut it down
properly. To do this, click the Start button, then choose Power > Shut
Down.
Your desktop icons may be hidden. To view them, right-click the desktop,
select View, and then select Show desktop icons. To add icons to your
desktop such as This PC, Recycle Bin and more:
3. Choose the icons you would like to have on your desktop, then
select Apply and OK.
77 | P a g e
COMP-162 COMPUTER APPLICATIONS
To do this the easy way, open Windows 10’s Start menu. Look for the
application you want to use by scrolling through the Apps list at the left side
of the menu.
If it’s in the tiles list at the right side of the menu, you can also drag it from
there. Once you’ve found it, drag and drop the application’s shortcut from
your Start menu to your desktop.
You’ll see the word “Link” appear when you’re hovering over the desktop.
Release the mouse button to create a link to the program, also known as a
desktop shortcut.
78 | P a g e
COMP-162 COMPUTER APPLICATIONS
Note that you can’t search for the application by name in the Start menu.
Windows 10 won’t let you drag and drop anything from the search results. It
should, but it doesn’t.
To create a desktop shortcut to a file, first, locate the file somewhere in File
Explorer. Hold down the Alt key on your keyboard and then drag and drop the
file or folder to your desktop. The words “Create Link in Desktop” will
appear. Release the mouse button to create the link.
79 | P a g e
COMP-162 COMPUTER APPLICATIONS
Holding down Alt is necessary. If you don’t hold down Alt, Windows will
show the words “Move to Desktop,” and it will move the folder or file to your
desktop rather than simply creating a link.
80 | P a g e
COMP-162 COMPUTER APPLICATIONS
Step 1. You can right-click on the taskbar and choose Taskbar settings.
Step 2. Then you can choose to turn on automatically hide the taskbar in
desktop mode, or automatically hide the taskbar in tablet mode.
The hidden taskbar can be shown when you move the mouse cursor to the
bottom edge of the screen or where the Windows 10 taskbar is located. You
can also press Windows logo key to reveal the taskbar.
If you want to remove default icons from system tray area in the taskbar, you
can follow the steps below.
Step 1. You can right-click the taskbar and choose Taskbar settings to open
Windows 10 taskbar settings window.
81 | P a g e
COMP-162 COMPUTER APPLICATIONS
Step 2. Next you can click Select which icons appear in the
taskbar under Notification area.
Step 3. Then you can choose to Always show all icons in the notification
area, or you can turn off this option and choose to turn on/off some of the
program icons.
You can click Turn system icons on or off under Notification area to turn
on or off some system icons.
If you turn off an app here, you don’t really remove it, and it still shows up in
the hidden area. If you turn an app on, it will appear in the main Notification
Area.
Windows 10 makes it easy to customize the look and feel of your desktop. To
access the Personalization settings, right-click anywhere on the desktop, then
select Personalize from the drop-down menu. The Personalization settings
will appear.
82 | P a g e
COMP-162 COMPUTER APPLICATIONS
83 | P a g e
COMP-162 COMPUTER APPLICATIONS
2. The Display options will appear. Use the slider to select the
desired item size. Note that a larger size may interfere with the way
some items appear on the screen.
3. Click Apply to save your changes. You may then need to restart your
computer for these changes to take effect.
84 | P a g e
COMP-162 COMPUTER APPLICATIONS
85 | P a g e
COMP-162 COMPUTER APPLICATIONS
86 | P a g e
COMP-162 COMPUTER APPLICATIONS
The page lets you customize the scroll wheel’s operation and change
which mouse button acts as the primary one. The mouse wheel can be made to
scroll through lines or entire screens (as if you pressed the Page Up/Page
Down buttons), and you can customize how many lines or screens should be
scrolled at once.
The last toggle button on the page, “Scroll inactive windows when I
hover over them,” is the only mouse setting not available in the Control Panel.
This feature was new for Windows 10.
87 | P a g e
COMP-162 COMPUTER APPLICATIONS
Per the description, it lets you scroll the contents of any window on
your desktop by hovering over it and using the mouse wheel. You don’t need
to switch focus to the window first, addressing a long-standing complaint with
previous versions of Windows. You’ll probably want to keep it enabled most
of the time.
The rest of Windows’ mouse settings are tucked away in the Control
Panel. You can access them with the “Additional mouse options” link to the
right of the Mouse settings page. This will bring up the “Mouse Properties”
popup which hasn’t changed much through generations of the Windows
operating system.
88 | P a g e
COMP-162 COMPUTER APPLICATIONS
Instead, you hold the button briefly, which starts the selection. You can then
release the button, move the mouse to complete your selection and press the
button again to confirm the operation. It’s intended primarily for people who
may find it hard to depress the mouse button for an extended period of time.
89 | P a g e
COMP-162 COMPUTER APPLICATIONS
Finally, the “Visibility” section lets you control when the cursor
should be hidden. You can disable automatic cursor hiding while typing with
the “Hide pointer while typing” checkbox.
90 | P a g e
COMP-162 COMPUTER APPLICATIONS
91 | P a g e
COMP-162 COMPUTER APPLICATIONS
create a local account (no online account verification required), follow the
steps below.
92 | P a g e
COMP-162 COMPUTER APPLICATIONS
There are three methods that can be used to search for files in
Windows 10. You can select one according to your actual situation.
Additionally, you can use these three methods to search for files from
computer hard drives, One Drive, SD cards, memory cards, and more.
93 | P a g e
COMP-162 COMPUTER APPLICATIONS
This method is very simple. You can follow these steps to search for
files by the name or a keyword.
1. Press Win + X and select Search from the WinX Menu to open the
Windows 10 search box. Or, you can directly click Cortana to open it.
2. Type the name or a keyword of the file you want to find into the
search box and you will see the search results across your computer
and OneDrive under Best match.
You can select the file to open it and check whether it is the file you
want to find. If you think this method can’t help you find the needed files or
you need to search for file contents in Windows 10, you can use File Explorer
instead.
Note: If your File Explorer is set to start from Quick Access, when you open
File Explorer, you will enter Quick Access directly. You should not perform a
Windows 10 file search in Quick Access. You need to switch to This PC
before searching. Or, you can refer to this post to make File Explorer start
from This PC.
1. Go to File Explorer and access the drive that should contain the files
you want to find. If you are not sure the file location, you can just
select This PC from the left list to make File Explorer show all drives
in This PC.
2. The search box is on the upper right corner of File Explorer. You need
to input the file name or a keyword. Then the Windows 10 file search
process will automatically start.
94 | P a g e
COMP-162 COMPUTER APPLICATIONS
95 | P a g e
COMP-162 COMPUTER APPLICATIONS
Perhaps, you want to find a Word, Excel, or a text file. But, you forget the
name of the file. Take it easy. You can try to remember some text contents
that are especially exist in that file and then search files content via File
Explorer.
To do this work, you need to do some preparation beforehand: enabling the
File contents feature of Windows 10 file search in File Explorer. You can
follow these steps to enable the File contents feature:
1. Open File Explorer.
2. Click the Search mark (the magnifying glass mark) on the upper right
corner.
3. Click Search on the top toolbar.
4. Click the Arrow Down button of the Advanced options.
5. Select File contents from the drop-down menu.
96 | P a g e
COMP-162 COMPUTER APPLICATIONS
1. Open Everything.
2. Input the file name to make the tool show the related items.
3. Go to find your needed files from the list of the search results.
If there are so many search results, you can click Search from the toolbar and
select the target file type to narrow down the search range.
97 | P a g e
COMP-162 COMPUTER APPLICATIONS
98 | P a g e
COMP-162 COMPUTER APPLICATIONS
99 | P a g e
COMP-162 COMPUTER APPLICATIONS
EXERCISE
Multiple Choice Questions
1. Microsoft launched windows 10 on;
(a) July 2013 (b) July 2015 (c) July 2016 (d) March 2017
2. Windows 10 operating system has been designed for;
(a) Desktop computers (b) Laptops
(c) Mobile phones (d) All these
3. Windows 10 operating system can run on ;
(a) IBM systems (b) IBM compatible system
(c) App Mac systems (d) Both a & b
4. Windows 10 operating is a ;
(a) GUI (b) Multitasking
(c) Multi user (d) Both a & b
5. In windows 10, start button can be used for ;
(a) Search the used files (b) Open the required Apps
(c) Shut down or restart the system (d) All these
6. Cortona feature of windows 10 works as;
(a) Personal digital assistant (b) Operating system
(c) Application software (d) None of these
7. Which one of the windows users are given free upgrade to windows 10.
(a) Windows XP (b) Windows 8 only
(c) Both Windows 7 and 8 (d) All Window users
8. The windows 10, biometric login feature has been named.
(a) Windows Bio (b) Windows Hello
(c) Windows Pad Lock (d) Windows Instant
9. This feature re-included in windows 10, it was removed in windows 8;
(a) Recycle bin (b) Start menu
(c) Gagets (d) None of these
10. Which feature of windows 10 allows to adopt to different device types.
(a) Hub (b) Flex (c) Continuum (d) Unity
100 | P a g e
COMP-162 COMPUTER APPLICATIONS
101 | P a g e
COMP-162 COMPUTER APPLICATIONS
22. Due to this feature of windows 10, icons looks transparent like a glass
(a) Aero feature (b) Dyno feature
(c) Trans feature (d) None of these
23. Windows 10 support this ;
(a) DVD (b) Blu Ray Disk
(c) Internet Digital TV (d) All these
24. You can use cortana of windows for ;
(a) Here any song (b) Ask any question, about your files
(c) Ask the weather condition (d) All these
25. This is a virtual assistant in widows 10.
(a) Action center (b) Cortana
(c) MS Edge (d) Windows store
26. Data that can be store free of cost in One drive of Windows 10 is;
(a) Upto 2GB (b) Upto 10 GB
(c) Upto 25GB (d) Upto 500GB
27. Horizontal strip on bottom side of windows 10 is called ;
(a) Task bar (b) Status bar (c) Title bar (d) All these
28. Time, date, internet connection and battery meter show on this part of
taskbar;
(a) Time area (b) Date area
(c) Notification area (d) Both a and b
29. Taskbar of windows 10 holds ;
(a) Search box (b) Pinned programs
(c) Notification area (d) All these
30. In windows 10, this modification can be made on task bar.
(a) Change the location of task bar
(b) Task bar can be hide
(c) Icon size on task bar can be changed (d) All these
31. System tray contains icon of this item.
(a) Wi-fi (b) Blue tooth
(c) Volume & clock (d) All these
102 | P a g e
COMP-162 COMPUTER APPLICATIONS
103 | P a g e
COMP-162 COMPUTER APPLICATIONS
43. The tray which is display on left side of task bar is called;
(a) Icon's tray (b) Windows tray
(c) System tray (d) Non system tray
44. First screen that appears after log in is called ;
(a) Primary screen (b) Desktop screen
(c) Interface (d) Program screen
45. To shut down the computer, this button is clicked first.
(a) Shut down button (b) Start button
(c) Power button (d) Any of these
46. This is an option of control panel of windows 10.
(a) Hardware & sound (b) User accounts
(c) Network and internet (d) All these
ANSWERS KEY
104 | P a g e
COMP-162 COMPUTER APPLICATIONS
LONG QUESTIONS
105 | P a g e
COMP-162 COMPUTER APPLICATIONS
CHAPTER 3
Microsoft word
General Objective:
Understand basic concepts of Microsoft Word.
Specific objectives:
After studying this chapter students should be able to:
106 | P a g e
COMP-162 COMPUTER APPLICATIONS
107 | P a g e
COMP-162 COMPUTER APPLICATIONS
108 | P a g e
COMP-162 COMPUTER APPLICATIONS
4. Title Bar: A horizontal bar at the top of an active document. This bar
displays the name of the document and application.
5. Command Tabs: An area on the Ribbon that contains buttons that are
organized in groups. The default tabs are Home, Insert, Page Layout,
Reference, Mailings, Review and View.
6. Window controls: are used to change the size of a window, or to close it.
7. Groups: A Group of buttons on a tab that is exposed and easily
accessible. These buttons were formally embedded in menus on the Menu
Bar.
8. Dialog Box Launcher: A button that launches a dialog box containing
options for refining a command.
9. Status Bar: A horizontal bar at the bottom of an active window that
gives details about the active document.
10. View Toolbar: A toolbar that enables, adjusts, and displays different
views of a document’s content.
11. Zoom Slider: A button that magnifies or reduces the contents in the
document window.
12. Document Area: The white space framed between rulers and the
scroll bars looking like a blank sheet of paper. This is the area where you
type the text of the document.
13. The Cursor: The blinking vertical line in the document area is called
cursor or insertion point. The typed characters appear at its location.
14. Ruler: The ruler is a measurement tool used with MS Word that
allows the program's user to align graphics, text, tables, or other elements
on a page. When enabled the horizontal ruler appears at the top of the
document, and the vertical ruler is on the left-side of the document.
15. Help Button: Click the help button to open the help window for the
MS Word program.
16. Scroll Bar: Scrollbar is used to display different portions of a
document in the document windows. There are two types of scrollbar,
horizontal scrollbar appears on bottom of the document window and
vertical scrollbar appears in the left side of the document window.
109 | P a g e
COMP-162 COMPUTER APPLICATIONS
110 | P a g e
COMP-162 COMPUTER APPLICATIONS
Click the New tool on Quick Access Toolbar. The new blank document
will create instantly.
3.4 - EDITING & FORMATTING OF TEXT
3.4.1 - EDITING OF TEXT
The great feature of word processors is that you can go back and edit your
document as much as you like, before printing it out.
To edit your document, you need to be able to do two things.
First, you need to identify and select the text you want to change.
Second, you need to make your change. Broadly, there are four kinds of
change you can make to a document
1. Add text
2. Remove text
3. Copy text
4. Move text
3.4.2 TEXT SELECTION METHODS FOR EDITING
Text selection makes sure to change the specific part of text. There are
two ways to select your text either by using keyboard and mouse.
TEXT SELECTION USING KEYBOARD
1. Press [Shift] + [Arrow keys] to select text toward left, right, up or
down.
2. Press [Shift] + [Home/End] to select the beginning/end of the current
line.
3. Press [Ctrl] + [Shift] + [Home/End] to select the beginning/end of the
document.
4. Press [Ctrl] + [A] to select whole document.
TEXT SELECTION USING MOUSE
1. Click where you want to start selecting text, press the left mouse
button, and Drag across the text, then release the mouse button where
you want to end.
2. Once to put the cursor next to a letter; Twice (double-click) to select
the word; Three times (triple-click) to select the paragraph.
3. To select a single line, move your mouse over to the left margin of
your text and click
111 | P a g e
COMP-162 COMPUTER APPLICATIONS
112 | P a g e
COMP-162 COMPUTER APPLICATIONS
3. Where did the selected text go? It’s been moved to the Clipboard, an
(invisible) storage area.
4. Place the cursor at the point where you’d like Figure 3.4.4 - Clipboard
113 | P a g e
COMP-162 COMPUTER APPLICATIONS
We can change the font, font style, font color and font size of the text.
We can also define the format of paragraphs in a document. We can make lists
by using bullets and numbering. Microsoft Word has various formatting
options. Before we apply any format to the text, we need to select first the
section or part of text that we wish to change.
3. From the Font panel, select the font, font style, and font size and font
color according to your requirement. The screenshot below displays
the different font formatting options.
114 | P a g e
COMP-162 COMPUTER APPLICATIONS
115 | P a g e
COMP-162 COMPUTER APPLICATIONS
Use Save As to also save a document for the first time or to save a
previously saved document with different name and in a different
location.
Saving a Document: Mouse Option
Click the File Menu Save or Save As OR
Click the File icon on the Quick Access Toolbar
If you are saving the file for the first time, the Save As pane will
appear in backstage view.
Now choose where to save the file and give it a file name.
Click Browse to select a location on your computer. Alternatively, you
can click One Drive to save the file to your One Drive.
116 | P a g e
COMP-162 COMPUTER APPLICATIONS
117 | P a g e
COMP-162 COMPUTER APPLICATIONS
As the dialog box appears, provide location (destination drive and folder) of
your file, file name which you want to open and press ENTER or click the
Open button to open your desired file.
4. You can also specify your own margin settings. Click Margins,
click Custom Margins, and then in the Top, Bottom, Left,
and Right boxes, enter new values for the margins.
118 | P a g e
COMP-162 COMPUTER APPLICATIONS
You can check all spellings and grammar in a document with a single
action using the Spellings & Grammar button in the Proofing group on the
Review tab or by pressing keyboard shortcut F7.
119 | P a g e
COMP-162 COMPUTER APPLICATIONS
120 | P a g e
COMP-162 COMPUTER APPLICATIONS
121 | P a g e
COMP-162 COMPUTER APPLICATIONS
122 | P a g e
COMP-162 COMPUTER APPLICATIONS
different graphics by using pictures, clip art, drawings, and more. To insert
pictures, do following
1. Click the Insert tab, and then click the Picture tool in the Illustrations
group.
2. The Insert Picture Window (below) appears. Now locate a saved picture
on a device or in your file space. Select the picture you require by
clicking on it and then click on Insert.
123 | P a g e
COMP-162 COMPUTER APPLICATIONS
1. Click inside the paragraph where you want the drop cap to display
2. Select the Insert Tab then select Drop Cap command from Text
Group as shown in Figure 3.10.1.
3. Click the small arrow to open Drop Cap options (None, Dropped and
In Margin)
124 | P a g e
COMP-162 COMPUTER APPLICATIONS
125 | P a g e
COMP-162 COMPUTER APPLICATIONS
126 | P a g e
COMP-162 COMPUTER APPLICATIONS
To Insert a Column
1. Position the cursor in the table where you want to insert a column
2. Select the Layout tab on the Ribbon
3. Click either the Insert Columns to Left button or the Insert Columns
to Right button in the Rows & Columns group
To Delete a Row
1. Position your cursor in the row that you would like to delete
2. Select the Layout tab on the Ribbon
3. Click the Delete button in the Rows & Column group
4. Select Delete Rows
To Delete a Column
1. Position your cursor in the column that you would like to delete
2. Select the Layout tab on the Ribbon
3. Click the Delete button in the Rows & Column group
127 | P a g e
COMP-162 COMPUTER APPLICATIONS
128 | P a g e
COMP-162 COMPUTER APPLICATIONS
5. If you want to print more than one page per sheet, then select the
required number in the Pages per Sheet field.
129 | P a g e
COMP-162 COMPUTER APPLICATIONS
130 | P a g e
COMP-162 COMPUTER APPLICATIONS
EXERCISE
Short Questions
1. Define the Microsoft Office.
MS. Office is one of the most popular application software. It is a
complete office suite with various software programs like MS Word, MS
Excel, MS Power Point etc. It provides different functions which are normally
used in Office working.
2. Enlist some MS office applications
1. Microsoft Word
2. Microsoft Access
3. Microsoft Excel
4. Microsoft PowerPoint
5. Microsoft OneNote
6. Microsoft Outlook
3. Define the Word processor.
A word processor is application software that performs various tasks
like formatting text, printing text, page setup, composing document etc.
4. Enlist some well-liked word processors.
1. Microsoft Word
2. Word Pro
3. Word Perfect
4. Word Star
5. Define the Microsoft Word.
Microsoft Word is one of the most popular software programs in the
world, used by millions of the people around the world. There are various
features to create, read and edit documents.
6. What is the File Menu?
The File Menu contained commonly known commands related to file
such as New, Open, Save, Close, Print and Recent Documents.
7. Define the Ribbon of MS Word?
The Ribbon replaces the menus and toolbars in previous versions. The
Ribbon shows most of the features that were hidden in File menus. The
Ribbon makes it easier to see and find commands to format your document.
131 | P a g e
COMP-162 COMPUTER APPLICATIONS
132 | P a g e
COMP-162 COMPUTER APPLICATIONS
19. Which file template is mostly used when new word file is created?
The Blank Document template is mostly used when new word file is
created.
20. Why documents are necessary to save?
If you want to use documents in future, it is necessary to save them.
21. Which command is used to save a word file?
The SAVE command is used to save a file in MS word.
22. What is difference between SAVE and SAVE As command?
The Save command is normally used to save a document for the first
time or to save changes. On the other hand, Save As command is used to save
a previously saved document with different name.
23. What is procedure to save file in MS Word?
To save a document follow one of these methods:
Press Ctrl + S from keyboard.
OR
Press Alt + F to open File menu then select Save or Save As
command.
OR
Click the Save icon on the Quick Access Toolbar.
A dialog box appears, in which select location where you want to save,
then type name of document and Click on SAVE button.
24. Which command is used to open an existing word file?
The OPEN command is used to open an existing word file.
25. Why already saved files opened?
Already saved files can be opened to read, edit or reprint them.
26. What is the procedure to open your word files?
To open already existing document, follow one of these methods:
Press Ctrl + O from keyboard.
OR
Press Alt + F to open File menu then select OPEN command.
OR
Click the OPEN icon on the Quick Access Toolbar.
A dialog box appears, in which select location where your document
exists, then select name of document and Click on OPEN button.
133 | P a g e
COMP-162 COMPUTER APPLICATIONS
134 | P a g e
COMP-162 COMPUTER APPLICATIONS
135 | P a g e
COMP-162 COMPUTER APPLICATIONS
136 | P a g e
COMP-162 COMPUTER APPLICATIONS
137 | P a g e
COMP-162 COMPUTER APPLICATIONS
138 | P a g e
COMP-162 COMPUTER APPLICATIONS
139 | P a g e
COMP-162 COMPUTER APPLICATIONS
EXERCISE
Multiple Choices
Questions
140 | P a g e
COMP-162 COMPUTER APPLICATIONS
141 | P a g e
COMP-162 COMPUTER APPLICATIONS
23. To save previously saved document with different name, different location
and different type the ______________ command is used.
a. Save As b. Save c. Save To d. Save With
24. The default extension for saving of MS Word file is _____________.
a. docx b. txt c. word d. none of these
25. We specify the save details of our file in the ____________ dialog box.
a. Save b. Save As c. Save To d. Save In
26. The __________________ shortcut key is used to open an existing file in
MS Word.
a. Ctrl + O b. Ctrl + P
c. Ctrl + S d. Ctrl + M
27. Editing of text in a document means ________________.
a. adding text b. removing text
c. copying & moving text d. all of these
28. Selecting text means, selecting?
a. A word b. A sentence c. Whole document
d. all of these
29. To select a portion of text in a document by keyboard the______________
keys used.
a. Shift + S b. Shift + Arrow c. Ctrl + Arrow
d. Ctrl + A
30. To select the whole Word document the ______________ shortcut is used.
a. Ctrl + A b. Shift + A c. Ctrl + End
d. Ctrl + Home
31. The most widely used way to select the text using mouse is ___________.
a. Click b. Double Click c. Dragging
d. none of above
32. The __________ key is used to remove characters to the left of the cursor.
a. Delete b. Backspace c. Ctrl + Delete
d. none of above
142 | P a g e
COMP-162 COMPUTER APPLICATIONS
33. The _________ key is used to remove characters to the right of the cursor.
a. Delete b. Backspace c. Ctrl + Delete
d. none of these
34. A ______________ is a temporary storage area for data that the user
wants to cut or copy from one place to another.
a. clipboard b. master board c. mother board
d. circuit board
35. The keyboard shortcut for Cut command is _________________.
a. Ctrl + C b. Ctrl + V c. Ctrl + X
d. Ctrl + P
36. The keyboard shortcut for Copy command is _________________.
a. Ctrl + C b. Ctrl + V c. Ctrl + X
d. Ctrl + O
37. The keyboard shortcut for Paste command is _________________.
a. Ctrl + C b. Ctrl + V c. Ctrl + X d. Ctrl + P
38. Which operation you will perform if you need to move a block of text?
a. Copy & Paste b. Cut & Paste c. Move & Paste
d. None of above
39. The keyboard shortcut for Undo command is _________________.
a. Ctrl + C b. Ctrl + V c. Ctrl + X d. Ctrl + Z
40. The keyboard shortcut for Redo command is _________________.
a. Ctrl + C b. Ctrl + Y c. Ctrl + X d. Ctrl + Z
41. The keyboard shortcut for Repeat command is _________________.
a. F4 b. Ctrl + Y c. F8 d. F5
42. ____________ means the appearance of text in MS Word.
a. editing b. formatting
c. selecting d. none of these
43. What is the default font used in MS Word document?
a. Times New Roman b. Arial c. Calibri d. txt
44. The keyboard shortcut for Bold command is _________________.
a. Ctrl + B b. Ctrl + Y c. Ctrl + O d. Ctrl + I
143 | P a g e
COMP-162 COMPUTER APPLICATIONS
144 | P a g e
COMP-162 COMPUTER APPLICATIONS
145 | P a g e
COMP-162 COMPUTER APPLICATIONS
146 | P a g e
COMP-162 COMPUTER APPLICATIONS
ANSWERSKEY
1 a 23 a 45 d 67 b
2 b 24 a 46 b 68 a
3 d 25 b 47 a 69 c
4 d 26 a 48 d 70 d
5 b 27 d 49 a 71 c
6 d 28 d 50 a 72 d
7 b 29 b 51 b 73 c
147 | P a g e
COMP-162 COMPUTER APPLICATIONS
8 a 30 a 52 b 74 c
9 b 31 c 53 a 75 a
10 c 32 b 54 c 76 d
11 a 33 a 55 d 77 b
12 d 34 a 56 b 78 a
13 b 35 c 57 b 79 b
14 c 36 a 58 c 80 b
15 b 37 b 59 c 81 a
16 a 38 b 60 b 82 c
17 A 39 d 61 b 83 b
18 b 40 b 62 a 84 b
19 c 41 a 63 b 85 a
20 c 42 b 64 a 86 a
21 b 43 c 65 b
22 c 44 a 66 d
Long Questions
1: Write a brief note on user interface of MS Word.
2: Write the method to create, save, open and close a document in MS Word.
3: How to select text in MS Word by using keyboard and mouse?
4: Explain the editing of text in MS Word.
5: What is the method to add and remove text from MS Word?
6: Differentiate between:
1. Save & Save As
2. Cut & Paste
3. Copy & Paste
4. Undo & Redo
7: Illustrate the formatting of text in MS Word.
8: Write method to format text using Font group for following
1. Font
2. Font Size
3. Font Style (Bold, Italic, Underline)
4. Font Color
9: Explain all Change Case options used in MS Word.
10: Explain paragraph formatting including alignment and spacing?
148 | P a g e
COMP-162 COMPUTER APPLICATIONS
1. Drop Cap
3. Change Case
12: How to make different lists in MS Word using Bullets & Numbering?
13: How you can review your word document using spellings & grammar
check?
16: Write the procedure to setup your document page for printing
149 | P a g e
COMP-162 COMPUTER APPLICATIONS
CHAPTER 4
Microsoft Excel
General Objective:
Specific objectives:
150 | P a g e
COMP-162 COMPUTER APPLICATIONS
151 | P a g e
COMP-162 COMPUTER APPLICATIONS
Auto fills:
Cells can be automatically filled with text or numeric series.
Sorting:
Data can be arranged in particular order through sorting.
Filter:
Required data based on some criteria can be displayed.
Charts:
Data can be shown graphically using charts.
Exiting Excel
1. Close Excel by clicking the X on the far right of the title bar. OR
2. Click File Menu Click Exit Excel in command list. OR
3. Press [Alt] + [F4] from keyboard to directly exit from Microsoft
Excel.
152 | P a g e
COMP-162 COMPUTER APPLICATIONS
153 | P a g e
COMP-162 COMPUTER APPLICATIONS
The Ribbon
The Ribbon consists of tabs, groups, and command. Each tab contains
a collection of groups, and each group contains related commnads. Each tab of
the Ribbon contains a different set of controls that are linked together.
Title Bar
Next to the Quick Access toolbar is the Title bar as shown below. On
the Title bar, Microsoft Excel displays the name of the workbook you are
currently using. At the top of the Excel window, you should see "Microsoft
Excel - Book1" or a similar name.
Name Box
The Name Box as shown in figure below is the box to the left of the
formula bar that displays the cell name that is currently selected in the
spreadsheet. Usually a cell name is combination of column name and row
number.
154 | P a g e
COMP-162 COMPUTER APPLICATIONS
The row headings are the numbers at the left side of the screen that
identify each row by number. The column heading are the letters across the
top of the worksheet grid that identify each column by one or more letters.
The Cells
Active Cell
The active cell is the cell in which text and numbers appear when you
type. It has heavy or colored border.
Worksheet Tabs
Each worksheet has a tab at the bottom that you can click to display
the worksheet. The tabs in each new worksheet have standard names (Sheet1,
Sheet2, and so on), but you can give the tabs descriptive names to help you
easily identify your worksheets.
155 | P a g e
COMP-162 COMPUTER APPLICATIONS
Scroll Bars
On the right side of the cells area, there is a vertical scroll bar that
allows you to scroll up and down in case your document cannot display
everything at a time.
In the lower right section of the main window, there is a horizontal
scroll bar that allows you to scroll left and right if your worksheet has more
items than can be displayed all at once.
Sheet View
Click a button to change sheet view. You can change the sheet view
into Normal view, Page layout view, and Page breakpreview view.
Zoom Slider
The readout at the left end of the zoom controls shows the current
zoom percentage. You can zoom by dragging the slider or by clicking the -
(minus) and + (plus) buttons.
Status Bar
The Status bar is at the bottom of the Excel spreadsheet and provides
useful information from the Excel software.
156 | P a g e
COMP-162 COMPUTER APPLICATIONS
ENTERING TEXT
1. Move the cell pointer to the required cell and then type the data. While
you type the data you will notice that it appears both in the worksheet
(in the example below, the text appears in cell A2) and in the Formula
Bar.
2. Type text into the cell and press Enter to move to next cell.
3. To enter data on a new line within a cell, enter a line break by pressing
Alt + Enter.
4. You can enter text by selecting many cells to merge them into single
cell. This can be done by using “merge cells” option.
ENTERING NUMBERS
Numbers are mostly used for calculations and functions. A numeric cell may
contain numbers, a decimal point (.), plus (+) or minus (-) signs, and currency
symbol like ($). Excel automatically right-aligns the number values.
157 | P a g e
COMP-162 COMPUTER APPLICATIONS
When you enter a date or a time in a cell, it appears either in the default date
or time format for your computer or in the format that was applied to the cell
before you entered the date or time. The default date or time format is based
on the date and time settings in the Regional and Language Options dialog
box (Control Panel).
2. Use a slash mark or a hyphen sign to separate the parts of a date; for
example, type 05/09/2020 or 05-Sep-2020.
3. If you want to get current date whenever you open the worksheet,
there are two functions that can be used for this purpose. These
are TODAY and NOW functions as follow in below example.
158 | P a g e
COMP-162 COMPUTER APPLICATIONS
159 | P a g e
COMP-162 COMPUTER APPLICATIONS
APPLYING FUNCTIONS
Function is a predefined formula. It carries out specific calculations in
the cell. Functions can be a more efficient way of performing mathematical
operations than formulas. Specifically, in many cases, a function will simplify
formulas that you can type in manually, such as average or sum.
EXAMPLE: If you wanted to add the values of cells A1 through A5, you
could type the formula ’=A1+A2+A3+A4+A5’, or a shorter way would be to
use the SUM function and simply type ’=SUM (A1:A5)’.
You can also insert formulas by using Formula tab
160 | P a g e
COMP-162 COMPUTER APPLICATIONS
161 | P a g e
COMP-162 COMPUTER APPLICATIONS
162 | P a g e
COMP-162 COMPUTER APPLICATIONS
163 | P a g e
COMP-162 COMPUTER APPLICATIONS
164 | P a g e
COMP-162 COMPUTER APPLICATIONS
You can use above tabs of format cells dialog box to change the
number format, position of data, font options, borders, and cell background
color as you have done so far.
The Number Tab: By using this tab, we can change the number in decimals,
provide the desired format in terms of numbers, numbers with currency
symbol & dates, convert into a percentage, fractions, etc.
The Alignment Tab: You can position text and numbers, change the
orientation, and specify text control in cells by using the settings on
the Alignment tab. Under Textalignment, you control the horizontal
alignment, the vertical alignment, and the indention of the text in a cell.
The Font Tab: By using this tab, you can change the font, font color, font
style, and font size. You can underline the text, can change the font effects.
The Border Tab: By using this tab, you can create a colorful borderline in
different types of styles. If you don’t need the border outline or inside, you
can leave it blank.
The Fill Tab: Use the settings on the Fill tab to set the background color of
the selected cells. You can also use the Pattern Color and the Pattern
Style lists to apply two-color patterns or shading for the background of the
cell. Fill Effects lets you apply a gradient fill to the background of the cell.
4.3.3 - EDITING OF ROWS AND COLUMNS
Editing of rows and columns includes the insertion and deletion
operations as follows.
INSERT ROWS
Method 1
1. Select a cell in the row above which you want to insert a new row.
2. On the Home Tab, find the Cells group and click Insert followed by
Insert Sheet Rows.
3. A new row will be inserted above the current row
Method 2
1. Select a row above which you want to insert a new row.
2. Right Click on the selected row, a menu appears from which select
Insert.
3. A new row will be inserted above the current row.
NOTE: When you insert a row, the new row will be positioned above the row
containing the active cell.
165 | P a g e
COMP-162 COMPUTER APPLICATIONS
TO DELETE A ROW
Method 1
1. Select a cell in the row that you want to delete.
2. On the Home Tab, find the Cells group
3. Click Delete followed by Delete Sheet Rows.
4. The row containing the active cell will be deleted.
5. All the rows below it will move up.
Method 2
1. Select the row that you want to delete.
2. Right Click on the selected row, a menu appears from which select
Delete.
3. The selected row will be deleted. All the rows below it will move up.
TO INSERT COLUMNS
Method 1
1. Select a cell in the column to the left of which you want to insert a new
column.
2. On the Home Tab, find the Cells group and click Insert followed by
Insert Sheet Columns.
3. A new column will be inserted to the left of the current column.
NOTE: When you insert a column, the new column will be positioned on the
left of the column containing the active cell.
Method 2
1. Select a column to which you want to insert a new column.
2. Right Click on the selected column, a menu appears from which select
Insert.
3. A new column will be inserted.
TO DELETE A COLUMN
Method 1
1. Select a cell in the column that you want to delete.
2. On the Home Tab, find the Cells group and click Delete followed by
Delete Sheet Columns.
3. The column containing the active cell will be deleted. All the columns
on its right will move left by one.
166 | P a g e
COMP-162 COMPUTER APPLICATIONS
Method 2
2. Right Click on the selected column, a menu appears from which select
Delete.
Note: To apply the AutoFit Row Height or AutoFit Column Width, double
click the right border bar of a column header or the bottom border bar of a row
header or goto HOME Format AutoFit Column Width or AutoFit Row
Height.
167 | P a g e
COMP-162 COMPUTER APPLICATIONS
4.4.2 PICTURES
During working on worksheet sometimes we need to insert a picture,
such as photograph, or screen capture etc. To add pictures to a worksheet,
follow these steps.
1. Select the cell.
2. Click Insert Tab Illustrations Picture, Insert Picture dialog box
appears.
3. Navigate to the picture you want to add, and then select it.
4. Click the Insert button.
5. Set the corners of your picture
168 | P a g e
COMP-162 COMPUTER APPLICATIONS
169 | P a g e
COMP-162 COMPUTER APPLICATIONS
PAGE MARGINS
Page margins are the blank space around the edges of the page. In
general, you insert data and graphics in the printable area between the
margins. However, you can position some items in the margins for example,
headers, footers, and page numbers.
PAGE ORIENTATION
170 | P a g e
COMP-162 COMPUTER APPLICATIONS
PAGE SIZE
Paper or sheet size is the size of the paper used for printing. Standard
home printers print on A4 size paper, although you may have other options
with your college or workplace computer to print on larger paper. To apply
the page size
Click the Page Layout tab
Click on the Size in the Page setup group
Select one of the preset paper sizes or use it to set a custom size as
shown in figure 4.5.1 (b).
171 | P a g e
COMP-162 COMPUTER APPLICATIONS
You can also use zoom option to toggle between full page and close up
view of your sheet. Click Back button to close print preview window.
172 | P a g e
COMP-162 COMPUTER APPLICATIONS
2. If you have more than one printer to choose from, they will be available
in the Printer area. Click the drop-down arrow next to the Name field to
select your preferred printer.
3. To print selected pages only, find the Print Range Area, and type the
page numbers that you want to print in the Pages field.
4. To print the entire workbook, you can specify this by clicking the
dropdown as shown in the figure.
5. There is also option to get more than one copies of the worksheet. To do
this, simply enter the required number of copies in the Copies field.
After completing the setting Click Print. The specified worksheet pages will
be sent to the printer.
4.6.1 - CHART
173 | P a g e
COMP-162 COMPUTER APPLICATIONS
ELEMENTS OF A CHART
Chart Title:
A chart title is a heading that appears above the main chart. It is
usually used to describe or explain what the chart contains.
Walls:
Walls define the area of the chart and help to place it in space. 2D
charts have one wall (the back). 3D charts have three walls (the back, the
floor, and the side.
Grid lines:
Grid lines help show the scale of the data. You generally have one set
of grid lines for each axis.
Category Names:
The horizontal axis is called the category axis (X-Axis). Each set of
values within your data is referred to as category names of data.
Bars:
Bars are used to represent the data values.
Labels:
Labels help us highlight important data points.
174 | P a g e
COMP-162 COMPUTER APPLICATIONS
Chart area:
Chart area is the rectangular box containing the chart and all of the
other chart elements.
Axis:
Each axis shows the values for the data. 2D charts have two axis:
X for horizontal
Y for Vertical.
3D charts add a Z axis which shows the depth of the data.
4.6.2 - INSERTING CHART
To insert chart in your worksheet, do following
1. Insert and select the data source with the range of data you want to make
chart as shown below in figure 4.6.2.
2. In the Charts group on the Insert tab, click a chart type, and then click a
chart subtype in the Chart gallery as shown below in figure 4.6.2 (b).
175 | P a g e
COMP-162 COMPUTER APPLICATIONS
Figure 4.6.3 (a) – Column Chart for Students Four Subjects Marks
176 | P a g e
COMP-162 COMPUTER APPLICATIONS
BAR CHARTS
In a Bar Chart, the categories are organized along the vertical axis and
the values are organized along the horizontal axis. To create a Bar Chart,
arrange the data in columns or rows on the Worksheet.
A bar chart is used when you have categories of data like types of
computers, mobiles phones, movies etc. It is also a good choice when you
want to compare things between different groups. Here is an example using
bar chart in figure 4.6.3 (b)
Total Admissions
2017
2018
2019
2020
1220 1230 1240 1250 1260 1270 1280 1290 1300 1310
Total Admissions
LINE CHART
Line charts displays values as equally spaced points connected with a
line.It is often used to plot continous data and are useful for identifying trends
over time. For example, plotting daily sales of gold and silver as a line chart
may help you to identify sales fluctuations over time as shown in figure 4.6.3
(c).
Figure 4.6.3 (c) – Line Chart for Sales Trend over Month
177 | P a g e
COMP-162 COMPUTER APPLICATIONS
PIE CHART
A pie chart is a circular chart divided into sectors, each sector shows
the relative size of each value. A pie chart is suitable for a dataset that has
only one series of information. Both types of pie charts includes 2-D Pie and
3-D Pie. Example of pie chart is shown in figure 4.6.3 (d).
178 | P a g e
COMP-162 COMPUTER APPLICATIONS
EXERCISE
Short Questions
1. Define the Spreadsheet program.
A spreadsheet is a software application that enables a user to enter,
save, calculate, analyze, sort and manage data in arranged form of rows and
columns.
2. Define the Microsoft Excel
Microsoft Excel is general-purpose electronic spreadsheet software
used to organize, sort calculate, and analyze data.
3. What is use of Microsoft Excel?
The task you can complete with Excel ranges from preparing a simple
family budget, preparing a purchase order, checking account information,
budgets, transactions, billing invoices, create an elaborate 3-D chart, or
managing a complex accounting ledger for a medium size business.
4. What is a workbook?
The workbook is the entire book containing a number of worksheets.
Worksheet is a single page within that book. A workbook can contain at least
one worksheet.
5. Define the Worksheet.
An Excel worksheet is a single spreadsheet that contains cells organized by
rows and columns. A worksheet begins with row number one and column A.
Each cell can contain a number, text or formula.
6. Define the Name box in MS Excel.
The Name Box is the box to the left of the formula bar that displays
the cell name that is currently selected in the spreadsheet. Usually a cell name
is combination of column name and row number. For example, C2 is the cell
in Column C and Row 2.
7. What is Cell Reference?
A Cell reference means the cell to which another cell refers. For
example, if in cell A1 you have “ = A2 ”, it means A1 refers to A2. Cells in
the spread sheet are referred by rows and columns.
179 | P a g e
COMP-162 COMPUTER APPLICATIONS
180 | P a g e
COMP-162 COMPUTER APPLICATIONS
181 | P a g e
COMP-162 COMPUTER APPLICATIONS
182 | P a g e
COMP-162 COMPUTER APPLICATIONS
27. What is the keyboard shortcut to enter current date in MS Excel cell?
To enter the current date and time, press CTRL+; (semi colon)
28. What is the keyboard shortcut to enter current time in MS Excel cell?
To enter the current date and time, press CTRL+SHIFT+;
29. What is data alignment? How can we change it in a cell?
Data alignment means adjusting the data position in a cell. For this
purpose we can use alignment setting in Home tab. You can set horizontal and
vertical alignment.
30. Where the new inserted column is positioned?
When you insert a column, the new column will be positioned on the
left of the column containing the active cell.
31. What is the use of clipboard?
A clipboard is a temporary storage for data that the user wants to copy
from one place to another. For example, you might want to cut text from one
part of a sheet and paste it in another part of the sheet or somewhere else.
When you will select the text and then cut or copy that text, it stores in
clipboard for further use.
32. What is use of Text Box in MS Excel?
Text box is a very important formatting tool which is very useful in
putting text where ever you want on the sheet. By using text box, text can be
inserted anywhere in the document.
33. What is chart?
A chart is a powerful tool that allows you to visually display data in a
variety of different chart formats such as Bar, Column, Pie, Line etc. Excel
provides an easy way to create chart.
34. What are the elements of a chart?
Following are the elements of a chart
Chart Title
Walls
Grid lines
Category Names
Bars
Chart area
Axis
183 | P a g e
COMP-162 COMPUTER APPLICATIONS
184 | P a g e
COMP-162 COMPUTER APPLICATIONS
185 | P a g e
COMP-162 COMPUTER APPLICATIONS
12. How many sheets are there, by default, when you create a new Excel file?
a. 1 b. 5 c. 3 d. 8
13. An Excel file is generally called a ________________.
a. spreadsheet b. workbook c. sheet d. worksheet
14. The intersection of row and column on a worksheet is called __________.
a. column b. row c. worksheet d. cell
15. The cell in which text and numbers appear when you type.
_____________.
a. Bold Cell b. Colored Cell c. Active Cell
d. Inactive Cell
16. You can activate a cell by _______________.
a. pressing the tab key b. clicking the cell
c. pressing an arrow key d. all of above
17. What type of data can be entered in MS Excel?
a. numbers b. text c. date & time d. all of these
18. Which key is used to accept the cell entry?
a. Enter key b. Arrow key c. Tab key d. all of these
19. The default alignment of text in Excel is _______________.
a. centered b. left c. right d. justify
20. The default alignment of numbers in Excel is ______________.
a. centered b. left c. right d. justify
21. To enter data on a new line within a cell, the _____________ shortcut key
is used.
a. Alt + Enter b. Ctrl + Enter c. Shift + Enter
d. None of above
22. To enter the current date and time in a cell the _______________ function
is used.
a. Now b. Today c. Date d. None of these
23. Example of Arithmetic operators is _________________.
a. >< = b. + - * / ^ c. And Or Not
d. None of above
186 | P a g e
COMP-162 COMPUTER APPLICATIONS
187 | P a g e
COMP-162 COMPUTER APPLICATIONS
188 | P a g e
COMP-162 COMPUTER APPLICATIONS
189 | P a g e
COMP-162 COMPUTER APPLICATIONS
ANSWERS KEY
1 c 13 b 25 c 37 a 49 b
2 d 14 d 26 c 38 c 50 a
3 a 15 c 27 a 39 b 51 a
4 b 16 d 28 b 40 c 52 b
5 b 17 d 29 d 41 c 53 a
6 a 18 d 30 d 42 b 54 d
7 c 19 b 31 c 43 c 55 a
8 c 20 c 32 a 44 b 56 a
9 a 21 a 33 B 45 a 57 c
10 a 22 a 34 d 46 c
11 b 23 b 35 b 47 b
12 a 24 A 36 b 48 a
LONG QUESTIONS
1. Write the procedure for starting and exiting the MS Excel program
2. Write a note on components of MS Excel main.
3. Write a short note on following:
Quick Access Toolbar
Name Box
Formula Bar
Status Bar
4. How to enter text, numbers, date & time in MS Excel sheet?
5. What are the parts of formula in Excel? How a formula can be applied in
worksheet?
6. What are arithmetic operators? Give examples of applying arithmetic
operator in worksheet.
7. Explain the difference between formula and function by examples.
8. Explain the following functions by providing examples
i. Sum ii. Average iii. SIN iv. COS
9. Explain the editing operations in worksheet by examples.
10. Explain the all cell formatting options.
190 | P a g e
COMP-162 COMPUTER APPLICATIONS
191 | P a g e
COMP-162 COMPUTER APPLICATIONS
CHAPTER 5
Microsoft PowerPoint
General Objective:
Specific objectives:
192 | P a g e
COMP-162 COMPUTER APPLICATIONS
193 | P a g e
COMP-162 COMPUTER APPLICATIONS
Click the buttons in the interactive below to become familiar with the
PowerPoint interface.
The Ribbon and Quick Access Toolbar are where you will find the
commands to perform common tasks in PowerPoint. Backstage view gives
you various options for saving, opening a file, printing, and sharing your
document.
The Ribbon
PowerPoint uses a tabbed Ribbon system instead of traditional menus. The
Ribbon contains multiple tabs, each with several groups of commands. For
example, the Font group on the Home tab contains commands for formatting
text in your document.
194 | P a g e
COMP-162 COMPUTER APPLICATIONS
Some groups also have a small arrow in the bottom-right corner that you can
click for even more options.
The Ribbon is designed to respond to your current task, but you can choose
to minimize it if you find that it takes up too much screen space. Click
the Ribbon Display Options arrow in the upper-right corner of the Ribbon to
display the drop-down menu.
195 | P a g e
COMP-162 COMPUTER APPLICATIONS
o Show Tabs and Commands: This option maximizes the Ribbon. All
of the tabs and commands will be visible. This option is selected by
default when you open PowerPoint for the first time.
196 | P a g e
COMP-162 COMPUTER APPLICATIONS
Switching between different slide views is easy. Just locate and select the
desired slide view command in the bottom-right corner of the PowerPoint
window.
197 | P a g e
COMP-162 COMPUTER APPLICATIONS
1. Click File tab Select New on the left side of the windowClick Blank
Presentation.
198 | P a g e
COMP-162 COMPUTER APPLICATIONS
Save Presentation:
Locate and select the Save command on the Quick Access Toolbar.
1. If you're saving the file for the first time, the Save As pane will appear
in Backstage view.
2. You'll then need to choose where to save the file and give it a file
name. Click Browse to select a location on your computer.
Alternatively, you can click OneDrive to save the file to your
OneDrive.
3. The Save As dialog box will appear. Select the location where you
want to save the presentation.
5. The presentation will be saved. You can click the Save command
again to save your changes as you modify the presentation.
199 | P a g e
COMP-162 COMPUTER APPLICATIONS
You can also access the Save command by pressing Ctrl+S on your keyboard.
Using Save As to make a copy
Understanding Slides and Slide Layouts
When you insert a new slide, it will usually have placeholders to show you
where content will be placed. Placeholders can contain different types of
content, including text, images, and videos. Slides have different layouts for
placeholders. Whenever you create a new slide, you'll need to choose a slide
layout that fits your content.
200 | P a g e
COMP-162 COMPUTER APPLICATIONS
2. Choose the desired slide layout from the menu that appears.
3. Click any placeholder and begin typing to add text.
Organizing slides
PowerPoint presentations can contain as many slides as you need. The Slide
Navigation pane on the left side of the screen makes it easy to organize your
slides. From there, you can duplicate, rearrange, and delete slides in your
presentation.
201 | P a g e
COMP-162 COMPUTER APPLICATIONS
2. Click in between the slide list where you want to paste the slide
Before you can move or arrange text, you'll need to select it.
1. Click next to the text you want to select, drag the mouse over the text, then
release your mouse. The text will be selected.
202 | P a g e
COMP-162 COMPUTER APPLICATIONS
203 | P a g e
COMP-162 COMPUTER APPLICATIONS
204 | P a g e
COMP-162 COMPUTER APPLICATIONS
You can access the cut, copy, and paste commands by using keyboard
shortcuts. Press Ctrl+X to cut, Ctrl+C to copy, and Ctrl+V to paste.
1. Select the text you want to move, then click and drag the text to
the desired location.
Align Text
You can use these commands to align your text at the top, middle,
or bottom of a placeholder or text box.
Adding pictures can make your presentations more interesting and engaging.
You can insert a picture from a file on your computer onto any slide.
PowerPoint even includes tools for finding online pictures and
adding screenshots to your presentation.
2. A dialog box will appear. Locate and select the desired image file, then
click Insert.
205 | P a g e
COMP-162 COMPUTER APPLICATIONS
2. A view of other open windows will appear. Click and drag to select the
area you want to capture as a screen clipping.
1. Select the Design tab, then click the Format Background command.
2. Select the desired fill options. Let’s use a Solid fill with a light gold color.
206 | P a g e
COMP-162 COMPUTER APPLICATIONS
3. If you want, you can click Apply to All to apply the same background
style to all slides in your presentation.
5.5 - MAKING SLIDE SHOWS
Once your slide show is complete, you'll need to learn how to present
it to an audience. PowerPoint offers several tools and features to help make
your presentation smooth, engaging, and professional.
Presenting A Slide Show
To start a slide show:
There are several ways you can begin your presentation:
Click the Start From Beginning command on the Quick Access
Toolbar, or press the F5 key at the top of your keyboard. The
presentation will appear in full-screen mode.
207 | P a g e
COMP-162 COMPUTER APPLICATIONS
Figure 5.5 (a) - Running a slide Show using Slide show Tool
Select the Slide Show view command at the bottom of the PowerPoint
window to begin a presentation from the current slide.
Figure 5.5 (b) - Running a Slide Show Using from PowerPoint window
Go to the Slide Show tab on the Ribbon to access even more options.
From here, you can start the presentation from the current slide and
access advanced presentation options.
Figure 5.5 (c) - Running Slide Show Using Slide Show Menu
Figure 5.5 (d) - Move Slides Forward or Backward during a slide show
208 | P a g e
COMP-162 COMPUTER APPLICATIONS
You can exit presentation mode by pressing the Esc key on your keyboard.
Alternatively, you can click the Slide Show Options button in the bottom-left
and select End Show.
The presentation will also end after the last slide. You can click the mouse or
press the spacebar to return to Normal view.
PowerPoint provides convenient tools you can use while presenting your slide
show. For example, you can change your mouse pointer to
a pen or highlighter to draw attention to items in your slides. In addition, you
can jump around to slides in your presentation or access other programs from
your taskbar if needed.
209 | P a g e
COMP-162 COMPUTER APPLICATIONS
About Transitions
There are three categories of unique transitions to choose from, all of
which can be found on the Transitions tab.
Subtle: These are the most basic types of transitions. They use simple
animations to move between slides.
Exciting: These use more complex animations to transition between
slides. While they're more visually interesting than Subtle transitions,
adding too many can make your presentation look less professional.
However, when used in moderation they can add a nice touch between
important slides.
Dynamic Content: If you're transitioning between two slides that use
similar slide layouts, dynamic transitions will move only
the placeholders, not the slides themselves. When used correctly,
dynamic transitions can help unify your slides and add a further level of
polish to your presentation.
210 | P a g e
COMP-162 COMPUTER APPLICATIONS
You can use the Apply To All command in the Timing group to apply the
same transition to all slides in your presentation. Keep in mind that this will
modify any other transitions you've applied.
211 | P a g e
COMP-162 COMPUTER APPLICATIONS
2. In the Duration field in the Timing group, enter the desired time for
the transition. In this example, we'll decrease the time to half a
second—or 00.50—to make the transition faster.
To add sound:
212 | P a g e
COMP-162 COMPUTER APPLICATIONS
Sounds are best used in moderation. Applying a sound between every slide
could become overwhelming or even annoying to an audience when
presenting your slide show.
To remove a transition:
2. Choose None from the Transition to This Slide group. The transition
will be removed.
To remove transitions from all slides, apply the None transition to a slide,
then click the Apply to All command.
Advancing slides
Normally, in Slide Show view you would advance to the next slide by clicking
your mouse or by pressing the spacebar or arrow keys on your keyboard.
The Advance Slides setting in the Timing group allows the presentation to
advance on its own and display each slide for a specific amount of time. This
feature is especially useful for unattended presentations, such as those at a
trade show booth.
213 | P a g e
COMP-162 COMPUTER APPLICATIONS
EXERCISE
Multiple Choice Questions
1. Extension of MS Power Point 2016 file is;
(a) .ppt (b) .pwt (c) .pptx (d) .docx
2. A user can present his ideas in effective way using this program.
(a) MS Word (b) MS Publisher
(c) MS Power Point (d) None of these
3. MS Power Point 2016 is a software of this type.
(a) Application (b) Language translator
(c) Utility Program (d) System
4. This software is used to make presentation;
(a) Google slides (b) Prezi
(c) MS Power Point (d) All these
5. The MS Power Point program has been developed specially for;
(a) Documentation (b) Presentation
214 | P a g e
COMP-162 COMPUTER APPLICATIONS
215 | P a g e
COMP-162 COMPUTER APPLICATIONS
216 | P a g e
COMP-162 COMPUTER APPLICATIONS
19. The dotted box in which user insert text, graphics or pictures is called
(a) Slide box (b) Place holder
(c) Presentation box (d) Any of a or c
20. One page of MS Power Point file is called;
(a) Page (b) Slide (c) File (d) Slide show
21. The slide that is used as a heading of a presentation is called;
(a) Heading slide (b) Title slide
(c) Starting slide (d) Initial slide
22. The process of moving one slide to another slide is called;
(a) Animation (b) Shift (c) Transition (d) Drift
23. " Slide show view” displays the slides in this sequence.
(a) Ascending slide number (b) Descending slide number
(c) Even slide number (d) Randomly
24. To exit the slide show, this key is pressed from keyboard.
(a) End (b) Home (c) Esc (d) Enter
25. Specific visual or audio effect that appears during slide transitions is
called;
(a) Slide animation (b) Slide transition
(c) Both a & b (d) None of these
ANSWERS KEY
Short Questions
1. What is Power point?
2. What is a presentation?
3. Write two names of programs used for making presentations other than
MS Power Point.
4. What is the use of hand out options of MS Power Point?
5. What is quick print in MS Power Point?
217 | P a g e
COMP-162 COMPUTER APPLICATIONS
6. What is a slide?
7. What is slide pane?
8. What is the location and purpose of comment pane in MS Power
Point?
9. What is notes area of MS Power Point and for which purpose it is
used.
10. What is meant by slide layout?
11. What is place holder in Power Point?
12. What is meant by title slide?
13. Write short cut key to start slide show from 1st slide and current active
slide.
14. What is meant by slide transition?
15. What is meant by slide animation?
16. Write method of deleting a slide.
17. What is meant by theme in power point?
18. How a new slide can be inserted in a presentation?
19. What is meant by slide show in power point?
20. Which keys of keyboard are used to run the slide show from start
toward end?
21. Which keys are used go on previous slide during slide show.
22. For which purpose, the slide sorter option is used in power point.
23. How a slide show is terminated?
24. What is meant by template in power point?
25. Write names of view buttons of MS Power Point 2016.
26. Write names of contents of title bar of MS Power Point 2016.
Long Questions
1. Write introduction of components of MS Power Point 2016 screen.
2. Write method of creating new presentation and saving it in MS Power
Point 2016.
3. What is meant by place holder in MS PowerPoint? Write method of
changing its place.
4. Write method of filling color and changing boarder line color of text
box in MS Power Point 2016.
218 | P a g e
COMP-162 COMPUTER APPLICATIONS
219 | P a g e
COMP-162 COMPUTER APPLICATIONS
CHAPTER 6
Programming Language
General Objective:
Understand basic concepts of C++ programming language.
Specific objectives:
After studying this chapter students should be able to:
220 | P a g e
COMP-162 COMPUTER APPLICATIONS
221 | P a g e
COMP-162 COMPUTER APPLICATIONS
222 | P a g e
COMP-162 COMPUTER APPLICATIONS
223 | P a g e
COMP-162 COMPUTER APPLICATIONS
6.3.2.3 HTML
HTML is the standard markup language used to create web pages; it
ensures proper formatting of text and images (using tags like <HTML>) so
that Internet browsers can display them in the ways they were intended to
look.
6.3.2.4 Java
Java is a general-purpose, object-oriented, high-level programming language with
several featur7es that make it ideal for web-based development
6.3.2.5 OOP languages
OOP Languages (Object-Oriented Languages) provide us with clear
modular structure for the programs which makes it good for defining abstract
data types.
6.3.2.6 Pascal Language
Pascal is a teaching language, there are few industrial programs that
are written in Pascal, It tends to use the keywords instead of C-style braces
and the symbols, so, it is easier for the beginners to understand than
languages like C++.
6.3.2.7 PHP is designed for a rapid website development. It is easy to link to
the databases, generate HTTP headers. It contains a simple set of basic
components that allow the programmer to quickly get up to speed.
6.3.2.8 FORTRAN
FORTRAN stands for Formula Translator and it is still used by the scientists
as it allows the variables of any size up to the memory limit of the machine.
6.3.2.9 Go
GO is a general purpose, flexible language that facilitates the creation
of applications.
6.3.2.10 Ruby on Rails
Ruby on Rails allows you to design web applications quickly.
6.3.2.11 Python
Python is used in a wide variety of contexts and on the web has
technical advantages.
224 | P a g e
COMP-162 COMPUTER APPLICATIONS
6.3.2.12 JavaScript
Java Script s used on the client’s side and can be extended to the server
for different functions.
6.4 Describe C++ programming language and its advantages.
C++ is an object-oriented programming language and includes concepts like
classes, inheritance, polymorphism, data abstraction, and encapsulation which
allow code reusability and makes programs very maintainable. C++ use multi-
paradigm programming. The Paradigm means the style of programming.
Some features and advantages of C++ is given below
6.4.1 Advantages of C++ are:
1. Object-oriented
One of the biggest advantages of C++ is the feature of object-oriented
programming which includes concepts like classes, inheritance,
polymorphism, data abstraction, and encapsulation that allow code reusability
and makes a program even more reliable.
Not only this, it helps us deal with real-world problems by treating data as an
object. C lacked this feature and hence it was created, proving to be of great
significance.
2. Multi-paradigm
C++ is a multi-paradigm programming language. The term “Paradigm” refers
to the style of programming. It includes logic, structure, and procedure of the
program. Generic, imperative, and object-oriented are three paradigms of
C++.
Low-level Manipulation
Since C++ is closely associated with C, which is a procedural language
closely related to the machine language, C++ allows low-level manipulation
of data at a certain level. Embedded systems and compiler are created with the
help of C++.
3. Memory Management
C++ gives the programmer the provision of total control over memory
management. This can be considered both as an asset and a liability as this
increases the responsibility of the user to manage memory rather than it being
managed by the Garbage collector. This concept is implemented with the help
of DMA (Dynamic memory allocation) using pointers.
225 | P a g e
COMP-162 COMPUTER APPLICATIONS
226 | P a g e
COMP-162 COMPUTER APPLICATIONS
#include<conio.h>
void main ()
{
int num1, num2,sum;
printf(“Enter Num1=");
Scanf(“%d”,&num1)
printf(“/n Enter Num2="); ///n use for new line
Scanf(“%d”,&num2)
sum=num1+num2;
printf("/n sum=",sum);
getch();
}
Program 2 (subtraction)
Write a program that inputs two integer numbers from the user and calculates
the Subtraction of numbers.
Procedure:
#include<stdio.h>
#include<conio.h> Output of the Program:
void main () Enter Num1=15
Enter Num2=20
{
Subtract=5
int num1, num2,sub;
printf(“Enter Num1=");
Scanf(“%d”,&num1)
printf(“/n Enter Num2="); ///n use for new line
Scanf(“%d”,&num2)
sub=num2-num1;
printf("/n Subtract=", sub);
getch();
Output of the program:
} Enter Num1=15
Program 3 (Division) Enter Num2=20
Write a program that inputs two integer Division=1.3333
numbers from user and calculates the
Division of the numbers.
227 | P a g e
COMP-162 COMPUTER APPLICATIONS
Procedure:
#include<stdio.h>
#include<conio.h>
void main ()
{
float num1, num2,Div;
printf(“Enter Num1=");
Scanf(“%d”,&num1)
printf(“/n Enter Num2="); ///n use for new line
Scanf(“%d”,&num2)
Div=num2/num1;
printf("/n Division=", Div);
getch();
}
Program 4 (Product of the numbers.)
Write a program that inputs two numbers from user and calculates the Product
of the numbers.
Procedure:
#include<stdio.h>
#include<conio.h> Output of the
void main () program:
Enter Num1=15
{
Enter Num2=20
int num1, num2,p; Product=300
printf(“Enter Num1=");
Scanf(“%d”,&num1)
printf(“/n Enter Num2="); ///n use for new line
Scanf(“%d”,&num2)
p=num1*num2; Output of the
program:
printf("/n Product =", p);
a+b=15
getch(); a-b=5
} a*b=50
Program 5 a/b=2
a%b= 0
(mathematical operations on two
variables)
Write a program that performs all mathematical operations on two variables.
228 | P a g e
COMP-162 COMPUTER APPLICATIONS
Procedure:
#include<stdio.h>
#include<conio.h>
void main ()
{
int a, b;
a=10;
b=5;
clrscer( );
printf(“a+b=%d \n”, a+b);
printf(“a-b=%d \n”, a-b);
printf(“a*b=%d \n”, a*b);
printf(“a/b=%d \n”, a/b);
printf(“a%b=%d \n”, a%b);
getch( );
}
Program 6 Write aprogram to calculate sum, average, and product of all
numbers
Write a program that inputs 4 numbers and calculate the sum, average, and
product of all the numbers.
Procedure:
#include<stdio.h> Output of the program:
#include<conio.h> Enter 4 numbers: 1 2 3 4
Sum of all the numbers: 10
void main () Product of all the numbers: 24
{ Average of all the numbers: 6
inta,b,c,d,sum,product;
Float avg;
clrscer ( );
printf(“Enter 4 numbers:”);
scanf(“%d %d %d %d”,&a,&b,&c,&d);
229 | P a g e
COMP-162 COMPUTER APPLICATIONS
sum=a+b+c+d;
product=a*b*c*d;
avg=sum/4.0;
printf(“Sum of all the numbers: %d \n”, sum);
printf(“product of all the numbers : %d \n”, product);
printf(“Average of all the numbers: %f”, avg);
getch( );
}
6.6 Explain logical operations (AND, OR, NOT, Equal to, etc.)
Logical Operators
C allows usage of three logical operators that are &&, || and !.
These are to be read as ‘AND’ ‘OR’ and ‘NOT’ respectively.
There are several things to note about these logical operators. Most obviously,
two of them are composed of double symbols: || and &&. Don’t use the single
symbol | and &.
The first two operators, &&and ||, allow two or more conditions to be
combined in an if statement. We explain it with the help of a program.
Consider the following example.
Example 2.4:
The marks obtained by a student in 5 different subjects are input through the
keyboard.
The student gets a division as per the following rules are given:
Percentage above or equal to 60 - First division
Percentage between 50 and 59 - Second division
Percentage between 40 and 49 - Third division
Percentage less than 40 - Fail
Program 1: Write a program to calculate the division obtained by the
student and also used logical operators in the program.
There are two ways in which we can write a program for this example. These
methods are given below.
230 | P a g e
COMP-162 COMPUTER APPLICATIONS
First Method
main( )
{
int m1, m2, m3, m4, m5, per ;
printf ( "Enter marks in five subjects " ) ;
scanf ( "%d %d %d %d %d", &m1, &m2, &m3, &m4, &m5 ) ;
per = ( m1 + m2 + m3 + m4 + m5 ) / 5 ;
if ( per >= 60 )
printf ( "First division ") ;
else
{
if ( per >= 50 )
printf ( "Second division" ) ;
else
{
if ( per >= 40 )
printf ( "Third division" ) ;
else
printf ( "Fail" ) ;
}
}
}
2nd Method
main( )
{
int m1, m2, m3, m4, m5, per ;
printf ( "Enter marks in five subjects " ) ;
scanf ( "%d %d %d %d %d", &m1, &m2, &m3, &m4, &m5 ) ;
per = ( m1 + m2 + m3 + m4 + m5 ) / 5 ;
if ( per >= 60 )
printf ( "First division" ) ;
if ( ( per >= 50 ) && ( per < 60 ) )
printf ( "Second division" ) ;
if ( ( per >= 40 ) && ( per < 50 ) )
printf ( "Third division" ) ;
231 | P a g e
COMP-162 COMPUTER APPLICATIONS
if ( per < 40 )
printf ( "Fail" ) ;
}
6.7 Explain the basics of loops for repetitive operations.
Loops or iteration statement
A loop is a statement or set of statements which is executed repeatedly. A
loop is used using condition. The repetition is done until condition becomes
condition true. A loop declaration and execution can be done in following
ways.
· Check condition to start a loop
· Initialize loop with declaring a variable.
· Executing statements inside loop.
· Increment or decrement of value of a variable.
Followings are the different types of loop statements used in C.
1. while loop
2. do- while loop
3. for loop
1. The while loop:
It is often the case in programming that you want to do something a fixed
number of times. Perhaps you want to calculate gross salaries of ten different
persons, or you want to convert temperatures from centigrade to Fahrenheit
for 15 different cities.
The condition being tested may use relational or logical operators as shown in
the following examples:
while( b < 15 || c < 20 ) )
The other example to use relational or logical operators can be as
while ( i < = 10 )
while ( i >= 5 && j < = 10 )
− The statement within a loop may be a single line or a block of statements.In
first case the
Parentheses are optional.
232 | P a g e
COMP-162 COMPUTER APPLICATIONS
For example
while ( i <= 10 )
i = i + 1;
is same as
while ( i <= 10)
{
i=i+1;
}
As a rule the while must test a condition that will eventually become false,
otherwise the loop would be executed forever.
Procedure
#include<stdio.h>
#include<conio.h>
main( )
{
int i = 1 ;
while( i <= 10)
printf (“%d\n”, i);
i = i+ 1;
}
getche();
}
It is not necessary that loop counter will always perform as a increment
operator, we can even use this operator as a decrement operator and still
manage to get the body of the loop executed repeatedly, this is shown below
#include<stdio.h>
#include<conio.h>
main( )
{
int i = 10 ;
while ( i > = 10)
{
printf ( “\n we are Pakistani”);
i = i – 1;
}
233 | P a g e
COMP-162 COMPUTER APPLICATIONS
getche();
}
It is not necessary that a loop counter must only be an int ,it can be a float
main( )
{
float a = 10.5 ;
while ( a < = 10.8 )
{
printf ( “\n in dark something is shining”);
printf ( “.....and sparkling”);
a = a + 0.1;
}
}
2. The For Loop
The ‘for’ is known as the most popular looping instruction. The ‘for’ allows
us to specify three things about a loop in a single line that are initial value,
final value and its increment/decrement.
a) Setting a loop counter to an initial value.
b) Testing a loop counter to determine whether its value has reached
the desired repetition result.
c) Increasing the value of loop counter each time the program
segment within the loop has executed.
Program 1: Write a program in C language that display numbers on
screen using For-Loop.
#include<stdio.h>
#include<conio.h>m
main( )
{
int i ;
for ( i = 1 ; i <= 10 ; )
{
printf ( "%d\n", i ) ;
i=i+1;
}
getche();
234 | P a g e
COMP-162 COMPUTER APPLICATIONS
Output
1 2 3 4 5 6 7 8 9 10
Here, the incrimination is done within the body of the for loop and not in the
for statement. Note that in spite of this the semicolon after the condition is
necessary.
Method 2:
#include<stdio.h>
#include<conio.h>
main( )
{
int i = 1 ;
for ( ; i <= 10 ; i = i + 1 )
printf ( "%d\n", i ) ; Output
}
getche(); 1 2 3 4 5 6 7 8 9 10
}
Note that the initialization, testing and incrementation of loop counter is done
in the for statement itself. Instead of i = i + 1, the statements i++ or i += 1 can
also be used.
Method 3:
#include<stdio.h>
#include<conio.h>
main( )
{
int i ;
for ( i = 1 ; i <= 10 ; )
{
printf ( "%d\n", i ) ;
i=i+1;
}
235 | P a g e
COMP-162 COMPUTER APPLICATIONS
getche();
}
Output
1 2 3 4 5 6 7 8 9 10
Here, the incrementation is done within the body of the for loop and not in the
for statement. Note that in spite of this the semicolon after the condition is
necessary.
Method 4:
main( )
{
int i = 1 ;
for ( ; i <= 10 ; i = i + 1 )
printf ( "%d\n", i ) ;
}
Here the initialization is done in the declaration statement itself, but still the
semicolon before the condition is necessary.
Method 5:
main( )
{
int i = 1 ;
for ( ; i <= 10 ; )
{
printf ( "%d\n", i ) ;
i=i+1;
}
}
Here, neither the initialization, nor the incrimination is done in the for
statement, but still the two semicolons are necessary.
236 | P a g e
COMP-162 COMPUTER APPLICATIONS
237 | P a g e
COMP-162 COMPUTER APPLICATIONS
238 | P a g e
COMP-162 COMPUTER APPLICATIONS
EXERCISE
Short Questions
Q #1What is the key features in the C programming language?
Answer: Features are as follows:
Portability: It is a platform-independent language.
Modularity: Possibility to break down large programs into small
modules.
Flexibility: The possibility of a programmer to control the language.
Speed: C comes with support for system programming and hence it
compiles and executes with high speed when compared with other high-
level languages.
Extensibility: Possibility to add new features by the programmer.
Q #2What is the basic data types associated with C?
Answer:
Int – Represent the number (integer)
Float – Number with a fraction part.
Double – Double-precision floating-point value
Char – Single character
Void – Special purpose type without any value.
Q #3What is the description for syntax errors?
Answer: The mistakes/errors that occur while creating a program are called
syntax errors. Misspelled commands or incorrect case commands, an incorrect
number of parameters in calling method /function, data type mismatches can be
identified as common examples for syntax errors.
Q #4What is the process to create increment and decrement statement in C?
Answer: There are two possible methods to perform this task.
Use increment (++) and decrement (-) operator.
Example When x=4, x++ returns 5 and x- returns 3.
Use conventional + or – sign.
Example When x=4, use x+1 to get 5 and x-1 to get 3.
Q #5What is reserved words with a programming language?
Answer: The words that are a part of the standard C language library are
called reserved words. Those reserved words have special meaning and it is not
possible to use them for any activity other than its intended functionality.
239 | P a g e
COMP-162 COMPUTER APPLICATIONS
240 | P a g e
COMP-162 COMPUTER APPLICATIONS
241 | P a g e
COMP-162 COMPUTER APPLICATIONS
Q#17What are header files and what are its uses in C programming?
Answer: Header files are also known as library files. They contain two
essential things: the definitions and prototypes of functions. C programming is
actually functions that are defined from within each header files. Each header
file contains a set of functions. For example: stdio.h is a header file that
contains definition and prototypes of commands like printf and scanf.
Q#18What is syntax error?
Answer: A syntax error is an error in the source code of a program. Since
computer programs must follow strict syntax to compile correctly, any aspects
of the code that do not conform to the syntax of the programming language
will produce a syntax error.
Q#19 What are variables and in which way is it different from constants?
Variables are the terms which can change or vary over time. It does not
remain constant, unlike constant. For example, the height and weight of a
person do not remain constant always, and hence they are variables.
The difference between variables and constants is that variables can change
their value at any time but constants can never change their value.
Both will also hold a particular value. Values held by a variable can be
changed. Constants are given values at one time only, placed at the beginning
of a program. This value is not altered in the program.
Multiple Choices
Questions
1. Who is known as the father of C Language?
1. James A. Sosling
2. Vjarne Stroustrup
3. Dennis Ritchie
4. Dr. E. F. Codd
2. C Language was developed in the year ____
1. 1970
2. 1975
3. 1980
4. 1985
242 | P a g e
COMP-162 COMPUTER APPLICATIONS
243 | P a g e
COMP-162 COMPUTER APPLICATIONS
244 | P a g e
COMP-162 COMPUTER APPLICATIONS
15. Which was the first computer language for an electronic device?
1. Machine Language
2. Assembly Language
3. Short Code
4. FORTRAN
16: Visual Basic (VB) was derived from which of the following?
1. BASIC
2. ALGOL
3. PERL
4. C++
17. FORTRAN was developed at ____?
1. Apple
2. Sun Technology
3. IBM
4. Intel
18. What will be the output of the following statement ?
int a=10; printf("%d &i",a,10);
1. error
2. 10
3. 100
4. none of these
19. What will be the output of the following statements ?
int i = 3;
printf ("%d%d",i,i++);
1. 1.34
2. 43
3. 44
4. 33
20. Which one of the following is not a linear data structure?
1. Array
2. Binary Tree
3. Queue
4. Stack
245 | P a g e
COMP-162 COMPUTER APPLICATIONS
ANSWER KEYS
1 3 11 4
2 1 12 3
3 2 13 1
4 3 14 4
5 3 15 3
6 3 16 1
7 1 17 3
8 4 18 4
9 2 19 2
10 1 20 2
246 | P a g e
COMP-162 COMPUTER APPLICATIONS
CHAPTER 7
Specific objectives:
4. Learn about Drop Box / Online/ Sky drive/ Cloud data etc.
7. Explain some advance features over the internet and search engines
247 | P a g e
COMP-162 COMPUTER APPLICATIONS
248 | P a g e
COMP-162 COMPUTER APPLICATIONS
1. You either type an address (URL) into your "Address Bar" or click on
a hyperlink.
2. Your browser sends a request to your ISP server asking for the page.
4. The host server sends the requested page to your ISP server.
5. Your ISP sends the page to your browser and you see it displayed on
your screen.
The business can then connect its LAN to an ISP using a high speed
phone line like a T1 line. A T1 line can handle approximately 1.5 million bits
per second, while a normal phone line using a modern can typically handle
30,000 to 50,000 bits per second.
249 | P a g e
COMP-162 COMPUTER APPLICATIONS
ISPs then connect to larger ISPs, and the largest ISPs maintain fiber –
optic backbones” for an entire region. Backbones around the world are
connected through fiber-optic lines, undersea cables or satellite links. In this
way, every computer on the internet is connected to every other computer on
the Internet. Internet is a data communication system. Through this system
millions of computers in the world have linked together. In only one second
several thousands of bytes travel on the Internet. This extremely large network
of computer networks combines all the three major methods of
communications i.e
1. Earth-based telephone lines (WAN system)
2. Sea-based Fiberglass cables (Submarine cables)
3. Ether based satellite communications systems (Cyber Space)
The internet is not a real entity or a place that has building or a place.
Instead, it is the result of a collaborative effort of people and computers
throughout the world. The end result is an electronic link to the world of
information and entertainment.
In simply words, the Internet is a network of connected computers that
provide us a facility of exchange data, messages, and files with other
computers that are connected to the Internet. The Internet has grown rapidly
since 1990.
250 | P a g e
COMP-162 COMPUTER APPLICATIONS
251 | P a g e
COMP-162 COMPUTER APPLICATIONS
If the search term is a phrase, your search will be for that specific phrase,
rather than for all the component words as individual items. So, for example,
if you search for the phrase director of human resources, without quotation
marks, your search will return results based on all of the words in the phrase
(except of, which is a stop word.) Surrounding the term with quotation marks,
however, will generate results that feature this specific term.
Use of AND. This operator ensures that you receive only search results
that include two or more terms. For example, the search "Smee
Computers" AND "Devlin Corporation" would only deliver search results
that includes the names of both companies.
o Search a Specific Site: when you type site: followed by the URL of
the website that you wish to search and a search term, you limit your
search to a single website. So, site: mindtools.com "human
resources" will return all the pages from MindTools.com that feature
the term "human resources."
252 | P a g e
COMP-162 COMPUTER APPLICATIONS
Key Points
The internet is vast and often confusing, and in order to find what you want,
you need to take some basic steps to make your search as focused and
rewarding as possible. Strategies for pinpointing the best, most relevant
content include the following:
o Vary your search engine: in fact, get used to using several, as they
have different strengths.
o Simplify your search terms: strip out unnecessary stop words and
avoid suffixes.
Saving a Webpage:
253 | P a g e
COMP-162 COMPUTER APPLICATIONS
STEP-2: Right Click on the page and click “Save Page As”
Figure 7.2 (b) - Right Click on the page and click on “Save page as…”
254 | P a g e
COMP-162 COMPUTER APPLICATIONS
255 | P a g e
COMP-162 COMPUTER APPLICATIONS
Microsoft Edge
If you are using Microsoft Edge, follow these steps.
1. Open Microsoft Edge.
256 | P a g e
COMP-162 COMPUTER APPLICATIONS
Internet Explorer
If you are using Internet Explorer, follow these steps.
1. Open the Internet Explorer browser then open the page you want to
print.
257 | P a g e
COMP-162 COMPUTER APPLICATIONS
7.3 - E-MAIL
Email is a system for delivering messages over the Internet. An e-mail sender
or recipient can be anywhere in the world. E-mail is the first really popular
internet application; it allows people to hold discussions over great
distances. It can be sent to anywhere in the world to anyone who uses the
Internet. E-mail can take as little as few seconds to go across a country, or
even around the world.
It leaves a written record. You can keep copies of e-mail messages you send
and receive, for your record. One message can be send to a number of
people. Pictures, documents and other computer files can also be sent along
with the message.
CREATING, READING & SENDING E-MAIL
Creating & sending an email:
258 | P a g e
COMP-162 COMPUTER APPLICATIONS
Reading an Email:
Unread emails are bold. To open an email, click it.
By default, replies to email are grouped into conversations. Keeping all email
together in a thread makes it easier to keep track of them and saves space in
your inbox.
If you prefer to separate your existing email from future email, you can turn
off conversation view.
259 | P a g e
COMP-162 COMPUTER APPLICATIONS
260 | P a g e
COMP-162 COMPUTER APPLICATIONS
When the users enter website address on browser, the computer automatically
connect to the server and then the WebPages will be delivered to them. Today,
there are thousands of web hosting services from free service to special
packaged hosting service. In Paid hosting package, Web Hosting Service
gives the full backup of websites, security, credit card processing, email,
integrity of content and all kind of maintenance.
261 | P a g e
COMP-162 COMPUTER APPLICATIONS
262 | P a g e
COMP-162 COMPUTER APPLICATIONS
The World Wide Web was launched in 1989 by English Scientist Tim
Berners-Lee for adding footnote, and cross-references in hypertext documents.
www used to identify (distinguish) the content. The www uses http (Hyper
Text Transfer Protocol) to link hypertext documents (web pages) on the
World Wide Web. A web page is a document that is written in HTML
(Hypertext Markup Language).
Each web page has a unique address on World Wide Web. This is called
Uniform Resource Locator (URL). If you want to access a web page on the
World Wide Web, you will have to specify the URL of the required page in
the web browser. Protocol Identifier is the first part of the URL and Resource
Name is the second part of the URL.
263 | P a g e
COMP-162 COMPUTER APPLICATIONS
SEARCH ENGINE
A program (software system) or a web-based tool that is used to search the
documents (information) by using the keywords on World Wide Web (www)
is called search engine. World Wide Web is full of information. Today, there
are thousands of search engines with different abilities and powerful features.
Google, Yahoo, Bing, MSN and Ask.com are the popular search engines.
Google has become so powerful and well known search engine now a day.
First text-based search engine was Veronica.
Search Engine Result Page (SERP):
When a searcher types a keyword query then the search engine displays a
page called Search Engine Result Page (SERP). SERP is a listing of results in
response to a keyword queries by a searcher. These results are of two types:
first type is organic results and the second is sponsored results.
264 | P a g e
COMP-162 COMPUTER APPLICATIONS
Internet search engines are special sites that are designed for help the people
to find information stored on other websites. Crawling, indexing and ranking
are the steps of a search engine.
Crawling:
Each search engine on the internet has its own spiders that go to different
websites to discover the new URLs and different contents. Search engines
have special and advance program for the crawling process. Web crawlers are
the computer programs that scan and reading the websites. They also called
spiders, bots and automatic indexers.
When a new web page is found, the spider reads the content and images. First
Spiders go to the website and look at the robots.txt file (used for crawling
restrictions by the webmasters). After crawling the URLs, they generate a
copy of each page of the website and then pass it to index.
265 | P a g e
COMP-162 COMPUTER APPLICATIONS
Indexing:
Ranking:
The last step of search engine is ranking. Each Search engine has its own
ranking algorithm to rank the web pages of a website based on keywords.
Search engines regularly update their algorithms.
1. Google
2. Bing
3. Yahoo
4. Baidu
5. Ask.com
6. AOL.com
7. Excite
8. DuckDuckGo
9. WolframAlpha
10. ChaCha.com
266 | P a g e
COMP-162 COMPUTER APPLICATIONS
267 | P a g e
COMP-162 COMPUTER APPLICATIONS
You may add more words to search bar in order to get the most desired
results.
Search Topics Using YAHOO Search Engine:
STEP-1: Open YAHOO home page i.e www.yahoo.com
268 | P a g e
COMP-162 COMPUTER APPLICATIONS
Intranet:
1. Intranet can be described as a network of computers or a private
network designed for a specific group of users (organization).
2. It is a small network with a few number of connected devices.
3. It is used to share confidential information within the organization.
4. It is regulated by a specific organization.
5. The data in the network is accessible by the organization members
only.
6. Ownership of intranet is by a single organization.
7. Intranet is regulated by the organization policies.
8. An intranet may be accessible from the internet, but it is protected by a
password and accessible only to authorized users.
9. Security of the network is enforced through a firewall.
10. An example intranet is a company like ExxonMobil using internal
network for its business operations.
11. Intranet contains only specific group information.
12. Time is required to train users on how to work with the network.
Extranet:
1. Extranet can be described as a private network that uses public
network to share information with clients (suppliers and vendors).
2. It is a small network with a few number of connected devices.
3. Extranet is a means of conveying information between members of the
organization and external members.
4. It is regulated by multiple organizations.
5. The content on the network is accessible to members of the
organization and external members with access to the network.
6. Ownership of extranet is by a single or multiple organizations.
7. Extranet is regulated by contractual agreements between organizations.
8. An intranet may be accessible from the internet, but it is protected by a
password and accessible only to authorized users.
9. Security of the network is enforced through a firewall that separates
internet and extranet.
10. Example of extranet is when companies like HP, Intel and Lenovo
decide to use the same network for related business operations.
11. Extranet contains only specific group information.
269 | P a g e
COMP-162 COMPUTER APPLICATIONS
12. Time is required to train users on how to work with the network.
EXERCISE
Multiple Choice Questions
1. The network of a company’s own computers is called;
(a) Internet (b) Intranet (c) Extranet (d) All of these
2. Global network of computers is called;
(a) Internet (b) Networking (c) Intranet (d) Extranet
3. The software used to transfer data from one computer to another
computer in internet is called;
(a) HTTP (b) TCP (c) FTP (d) All these
4. To receive data in computer from internet is called;
(a) Downloading (b) Uploading
(c) Transferring (d) None of these
5. First page of website is called;
(a) Title page (b) Home page
(c) Webpage (d) First page
6. The protocol used to transfer files on internet;
(a) TCP (b) ISP (c) FTP (d) HTTP
7. Example of World Wide Web document is
(a) MS Word (b) Email (c) Web page (d) World document
8. In an email address, the symbol used between username and email
service provider is;
(a) $ (b) # (c) @ (d) A
9. URL is a short form of;
(a) Universal Resource Locator (b) Unlimited Resource Line
(c) Under Rule Law (d) None of these
10. Common name of web address is;
(a) HTML (b) URL (c) WWW (d) Web
11. A web page may contain;
(a) Text (b) Pictures (c) Audio or video (d) All
12. FTP stands for;
(a) First transmission plate form (b) File transfer protocol
(c) First Transfer Protocol (d) File Transmission Protocol
270 | P a g e
COMP-162 COMPUTER APPLICATIONS
271 | P a g e
COMP-162 COMPUTER APPLICATIONS
23. The service of internet by which data can be stored on remote saver.
(a) Internet disk (b) Internet store
(c) Cloud storage (d) Mass storage
24. The example of cloud storage is;
(a) Hard disk (b) One drive
(c) Flash drive (d) None of these
25. Limit of free data storage on “one drive “is;
(a) 2.5 GB (b) 5 GB (c) 500 MB (d) 700 MB
26. This is an example of online cloud storage.
(a) One drive (b) Drop box (c) Google drive (d) All these
27. In email window, cc stands for;
(a) Carbon copy (b) Clear copy
(c) Close copy (d) None of these
28. HTTP stands for;
(a) Heavy Traffic Transfer Plan
(b) Hyper Text Transfer Protocol
(c) High Tension Transmission Project
(d) None of these
29. This feature is not related to internet.
(a) World Wide Web (b) Google
(c) FTP (d) None of these
30. Network of computers of an organization which gives access to some
specific consumers is called;
(a) Networking (b) Internet (c) Extranet (d) Intranet
31. If a person is connected with internet, then it is called;
(a) Connected (b) Online
(c) Internet attach (d) Any of these
32. The most popular search engine is;
(a) Google.com (b) Bing.com
(c) Yahoo.com (d) Ask.com
272 | P a g e
COMP-162 COMPUTER APPLICATIONS
ANSWERS KEY
Short Questions
1. What is internet?
2. What is intranet?
3. Which medium are used to connect the computers with each other.
273 | P a g e
COMP-162 COMPUTER APPLICATIONS
274 | P a g e
COMP-162 COMPUTER APPLICATIONS
Long Questions
1. What is an internet? Write its advantages.
www.pbte.edu.pk
10. Define search engine. Write names of two famous search engines. Write
method of searching a website using search engine.
12. Write names of two email service provider companies and write method of
sending a file through email.
15. What is cloud storage? Write note on sky drive and one drive.
275 | P a g e