You are on page 1of 5

Computer Science

Short Question Answers


Q1.

Write down the differences between Hardware and Software.

Ans.: The Differences Between Hardware & Hardware and software are two
different terms. The major differences between Hardware and Software are
given below:
S
No
1

Definition

Hardware

Software

The physical components of


The programs and data
computers, that we can touch and given to computer are
feel, are called Hardware.
called software.

Exampl Keyboard, mouse, CPU, printer, monitor,


DOS, Windows, MS Office,
es
speakers, cables, graphic cards, USB drives
Virus, Antivirus are
are examples of Hardware.
examples of Software.

Q#2. What is debugging? What are different types of errors?


Ans:

debugging is a process of finding and removing errors from a program.


There are 3 different types of errors.
1) Syntax error
2) Run time error
3) Logical error

Q#3.

BYTE
A set of bits considered as a unit, normally consist of 8 bits and corresponds to a single character of
information.
Character.

Q#4.

Interprpeter
Software that translates each statement of source program into a sequence of machine instructions
and executes these machine instructions one by one before translating the next source language
statement.

Q#5. Operating System


A set of programs which manages resources of computer include hardware, programs, data and
operators.

Q#6. What is Desk checking? Give Example.


Ans: Desk checking is a process of carefully observing the working of an
algorithm on the paper for some sample data. Algorithm is provided a
variable set of input for which output is checked and algorithm is verified for
correctness.

Q#7. What is control structure? What are its types?


Ans: Control structure is used to control the flow of execution of a
program. There are 3 types of control structure in BASIC.
1) Sequence control structure
2) Selection control structure
3) Repetition control structure

Q#8. What is IF-THEN statement? Give syntax with example.


Ans: This is type of selection structure. This is a decision making
structure. In this structure the statements are executed if the condition
is true. Otherwise statements are not executed, and control moves to
statement next after the IF-THEN structure.

Q#9. What is loop? What are its types?


Ans: It is Repetition control structure which is used to repeat a set
instructions for a specified number of times or until condition is true.
It has two types
FOR-NEXT Loop
WHILE-WEND Loop

Q#10. What is meant by DIM statement?


Ans: DIM is a key word. DIM stands for Dimension. It is used as a statement
to declare an array which has maximum size greater than 10 elements. By
default in BASIC, we can declare array of 10 elements with out DIM key word.
But array with size greater than 10 will be declared using this statement. We
can also declare more than one arrays in one statement.

Q#11. What is drop cap?


Ans:
A drop cap is a large letter which begins a paragraph and drops
through several lines of text. It is used to pay attention of the Reader.

Q#12. What are Header and Footer?


Ans: Header:
It provides information on document on top of the page.
Footer:
It provides information on document on bottom of the
page.
Header and footer are used to insert following information on
document.
i.
ii.
iii.
iv.

Page Numbers
Author Name
Full path
Current date and time etc.

Q#13. What is Status Bar?


Ans:
It is located at the bottom of the document window. It contains
necessary information about the current document. It contains
following information
Current page
Total number of pages
Section
Line Number
Column Number
Track changes
Overtype
Spell and grammar checker

Q#14. What is UPC?


Data coded in the form of light and dark vertical lines (or vertical zebrastripped marks) or bars on most

of

the

manufactured

products

in

the

market are known as bar codes. This bar-code system is also called the
Universal Product Code (UPC).

Q#15. Define SDLC.


A set of activities or steps that are required to develop a system (such as
software) is called the system

development life cycle (SDLC). It is an

organized way to develop a successful system.

Q#16. Define impact printer.


An impact printer prints characters and graphics on the paper with the strikes
of hammer or wheel against an inked ribbon. Dot Matrix, Daisy Wheel, and
Line printers

are examples of impact printers

Q#17. What is Trackball?


A trackball is also a pointing input device. It performs functions like a mouse
but it is a stationary device

with a

moveable ball on its top. The ball is

rotated or rolled with fingers (or palm of the hand).

Q#18. What is a modulus operator? What are the restrictions of a


modulus operator?
A Modulus operator gives the remainder value. The result of x%y is
Obtained by (x-(x/y)*y). This operator is applied only to integral operands
and cannot be applied to float or double.

Q#19. What is a pointer variable?


A pointer variable is a variable that may contain the address of
Another variable or any valid address in the memory.

Q#20. What is an argument? Differentiate between formal arguments and


actual
arguments?
An argument is an entity used to pass the data from calling function to

the called function. Formal argument s are the arguments available in


the function definition. They are preceded by their own data types.
Actual arguments are available in the function call.

You might also like