Midterm KA
Midterm KA
Midterm KA
II. Fill in the blanks choosing the appropriate word voids from those given its the
brackets: 5x1=5
(Searching, Size, Nodes, Push, Update, Top)
16) One of operation performed on primitive data Structure is UPDATE.
1 7 ) S E A R C H I N G is the process of finding the location of the element is a liner
array.
18) Operation to insert an element into a stock is called PUSH
19) SIZE operation returns the number of elements in the queue.
20) A linked list is a liner collection of data elements called NODES
PART — B
Answer any FOUR questions. Each question carries TWO marks: 4x2=8
21) P r ove that 𝒙 + 𝒙 ̅=𝟏
̅
A: i f X = 0 t he n L HS = 𝒙 + 𝒙
= 0 + 1
= 1 [by OR re la t i on]
= RHS
̅
i f X = 1 t he n L HS = 𝒙 + 𝒙
= 1 + 0
= 1 [by OR re la t i on]
= RHS
22) Define min term and max term.
A: Minterm is a product of all the literals (with or without the bar) within
the logic system.
Maxterm is a sum of all the literals (with or without the bar) within the
logic System.
23) What is principle of duality? Give an example.
Principal of Duality states that a Boolean Relation can be derived by
another Boolean Relation.
Rules : 1. Changing each OR sign(+) to an AND sign (.)
2. Changing each AND sign(.) to an OR sign(+)
3. Changing each 0 by 1 and each 1 by 0.
Examples: 1. (X + 1) . (Y + 0) can be X.0 + Y.1
24) Write logic diagram and truth table of NOT gate
PART — C •
IV. Answer any FOUR questions. Each question carries THREE marks:4x 3 = 12
28) What is a motherboard? explain any two types of motherboard.
It is a large Printed Circuit Board ( PCB ) having many chips, ports,
controllers and other electronic components mounted on it.Types(any 2)
XT Motherboard : XT stands for extended Technology.
These are all old model motherboard.
Consists of LIF ( Low Insertion Force ) old model processor socket,
DIMM RAM slots, ISA slots, 12 pin power connector and no ports.
Examples : Pentium-I, Pentium-II, Pentium-MMX.
AT Motherboard : AT stands for Advanced Technology.
Consists of PGA ( Pin Grid Array ) processor socket, SDRAM
slots, ISA and PCI slots and 20 pin power connector.
Examples : Pentium-III processors.
29) Give the features of USB por t.
USB ( Universal Serial Bus ) Port :
USB is a plug-and -play interface between a computer and add -on devices
i.e, a new device can be added to the computer without adding an adapter
card or even turning the computer off.
USB port give s a single, standardized, easy -to-use way to connect a
variety of peripherals to a computer.
These devices include printers, scanners, digital cameras, web cameras,
speakers etc.
USB support s a data speed of 12 megabits per second, supporting up to
127 devices
PART — E
VI. Answer any TWO questions. Each question carries five marks: 2 x 5 = 10
42) Reduce F(A,B,C,D)= E(0, 1, 2, 3, 4, 6, 8, 10, 11, I2, 14) using
Karnaugh map.
43) Write an example program to find the sum of two numbers using
the concept of member function inside the class definition.
44) Define a class named Triangle with following criteria.
1) Data me mbe r s: base , hei ght
2) Member functions: getdata ( ) and putdata ( )
3) Define member functions outside the class to input and output
base and height of a triangle.