Professional Documents
Culture Documents
It is a plug and play interface. Using USB, a new device can be added to the computer
without adding an adapter card or even switch off the computer.
Ex: pendrive, printer
d) AGP port – The AGP (Accelerated Graphics Port) port provides a faster access to
graphic card.
e) VGA port – VGA stands for Visual Graphics Adapter/Video Graphics Array. It is used
to connect monitor to a computer’s video card.
f) MODEM – MODEM stands for Modulator Demodulator. It connects a computer’s
modem to the telephone network.
g) Game port – It connects a computer to a joystick.
h) DVI port – DVI stands for Digital Video Interface. It connects the LCD monitor to a
computer’s video graphic cards.
i) MIDI port – MIDI stands for Musical Instrumental Digital Interface. It is a system
designed to transmit information between electronic musical instruments.
j) IDE(Integrated Digital Electronics) Port- IDE devices like CD-ROM or hard disk drives
are connected to the mother board through IDE Port.
k) PS-2 Port(Personal System 2 ) – Developed by IBM to interface keyboards and
pointing devices(mouse, track balls). Also called as mouse port.
l) Firewire port –It transfers large amount of data at very high speed. It connects video
equipment to the computer. Invented by Apple.
m) Ethernet port –It connects network cable to a computer.
13. Write the features of USB.
• Universal Serial Bus is an easy way to connect devices
• It is a plug and play interface
• Using USB, a new device can be added to the computer without adding an adapter
card or even switch off the computer
• Ex: pendrive, printer
10 20 30 35 40 45 50 55 60
Beg = 0
0 1 2 3 4 5 6 7 8 End = 3 35>20 Loc= -1
Mid (0+3)/2
Beg Mid End =1
10 20 30 35 40 45 50 55 60
Beg = 2 35>30 Loc= -1
End = 3
0 1 2 3 4 5 6 7 8 Mid(2+3)/2 = 2
Beg End
Mid
10 20 30 35 40 45 50 55 60 Beg = 3
End = 3 35=35 Loc= 3
Mid = 3
0 1 2 3 4 5 6 7 8
Beg
End
Mid
A[0] 5 6 7
A[1] 3 2 1
A[2] 10 20 30
1001 5 A[0][0]
First Row
1002 6 A[0][1]
1003 7 A[0][2]
1004 3 A[1][0]
Second Row
1005 2 A[1][1]
1006 1 A[1][2]
1007 10 A[2][0]
Third Row
1008 20 A[2][1]
1009 30 A[2][2]
28. Explain memory representation of two – dimensional array using column major order.
Ans. Let A is a two-dimensional array of 3 rows and 3 columns.
For example, consider an array of order 3x3.
A[0] A[1] A[2]
A[0] 5 6 7
A[1] 3 2 1
A[2] 10 20 30
In column major order, first column elements are stored in sequential memory locations,
then second column elements and so on.
FRONT REAR
A B C D E
0 1 2 3 4 5 6 7 8
Simple Queue: In a simple queue insertion occurs at the rear end and
deletion occurs at the front end of the list.
Here FRONT = 1, REAR = 5
Circular Queue: A circular queue is a queue in which all nodes aretreated as circular such
that the last node follows the first node.
FRONT= 0
REAR = 4
Priority Queue: A priority queue is a queue that contains items thathave some certain
priority. An element can be inserted or removed from any position depending upon some
priority.
Dequeue (Double Ended Queue): It is a queue in which insertion and
deletion takes place at both the ends.
Insertion Insertion
Deletion Deletion
48. Explain the different operations on queue.
• Queue( ) – It creates a new queue that is empty.
• enqueue(item) – It adds a new item to the rear of the queue.
• dequeue( ) – It removes the front item from the queue.
START
10 20 30
10 20 30
START
null 10 20 30 null