g. Computer
viruses
6. Explain the
cache memory in detail.
Ans
:
Cache memory is a
small and fast memory between CPU and main memory. It is extremely fast
compared to
normal memory. Transferring data between main memory and CPU causes delay
because
RAM is slower
than CPU. Cache memory stores copies of data from most frequently used main
memory
locations. When
processor needs to read from or write to a location in main memory, it first
checks
whether a copy of
data is in the cache. If so proc
essor immediately
reads or writes to cache.
7. Name the
different searching methods.
Ans: a. Linear
Search
b. Binary Search
8. Explain Binary
search algorithm
Ans: This
algorithm is used to search for an elemen
t in a sorted
list. The value of the element in the
middle of the
list is co
mpared with the
value of the element to
be searched for .
If the middle
element is
larger, the de
sired element has
to be in the upper of
the list. If the
middle element is
smaller, the de
sired element has
to be lowe
r half of the
list. The nu
mber of elements
to be
searched is reduced
by half in every
iteration.
9. What is an
array?
An array is a
group of
data of the same
data type
stored in
successive storage
locations.
10. What is
a user defined
function?
A user-defined
function is a comple
te and
independent progr
am unit, which
can be
used(or invoked)
by the main progr
am or by other
sub-programs
BPO Call log
| Mobile |
Query |
Note |
| Mobile1 |
Query1 |
Note1 |