Wa0011.
Wa0011.
Wa0011.
QNo.
What
In Class: Sub.:
What
generalizatioIi,
is is
the data 5thSernSE
DBMS
need
modi.
of t.e
key Explain
difference
What
in
ferentiate
ali
is
three mnodel
between
schema with
example
suitable
with
teason
valid
with
membersadvant
between
architecture Sessional-1,
Qctober
2023
ages
of
andsadvantages an
didatekey,
.Explain e
tity
is
maximized
in or
alternatedetail
.
key minimized.
Explain Marks:
Total 15
and
primary Time:1lhr
key
Marks
4 4 2
M.M. 5
Time 3 Hrs
questions from
Note: AIl questions in Part-A and Part-B are compulsory. Attempt any four
Part-C selecting at least one question from each unit.
(v) What are the different types of fields that are part of instruction.
UNIT-I
Describethe Von-Newman architecture. 2.5
fi)_What is use of Auxiliary memory. How it differ from virtual memory. 2.5
UNIT-II
3Explain interrupt cycle with diagram. 5
UNIT-III
Describe in brief Flynn's taxonomy., 5,
UNIT-IV
Differentiate between programmed input/output and interrupt driven input/output.
UNIT-I
What is booth's algorithm. Solve the following numerical using booth's algorithm:
7multiply -3. 10
7 Define fixed point representation and solve following numerical :
Represent decimal number (-7.85) using 16-bit fixed binaryrepresentation with 8integer
bits and 8fraction bits. 10
UNIT-II
8 Distinguish between micro-programmed control unit and hardwired control unit with
diagram. 10
9
Deseribe the common bus architecture and various computer registers with diagram. 10
UNIT-III
10 Describe various addressing mode with suitable examples. 10
Nete: AlQuestiens in Part-A and Part-B are ompulsory.Attempt any four questions from
Part-C seteting at least one from each unit.
(v)Liss two algonthms used for finding single sourre shortest path.
PART-C(40 Marks)
UNIT-I
10
6 Explain the term Asymptotic Notations and explain all the notations.
10
7 Write Algoritim for nsertion sort and analyze its complexity.
(JNIT-I
Find Longest common subsequence by using algorithm for the strings: BACDBand BDCB. 10
10
Solve 0-1 knapsack problem using adynamic programming approach.
You have the following conditions:
Ka) The number of elements, n = 5
b) Maximum weight to pack, W=6
follows:
Kc) Each item (element i) has weight (wi)and benefit (bi), (wi, bi), as
K1, 2),(2, 3),(3, 4), (4, 5), (5, 6)
UNIT-III
q0 q1 q2 D
U
University Institute of Engineering & Technology
(Besogniscd Under Sectton2@. and J28 of UG)
Kurukshetra University, Kurukshetra RollNo. -
THEORY EXAMINATION - DEC 2022 TIME -3 Hrs.
B.TECH- CSE SEMESTER - V
M.M. - 75
Note: AIlquestions in Part-A and Part-B are compulsory. Attempt any four questions from
Part-C selecting at least one from each unit.
ny regular (3 mark
n*b nd ) in
to
10
UNIT-I
the lollowing lunguages:
ConstrIct the regular expression tor odd over alphabet (0,1}. 2
should be
a) The length of' string come together over alphubet {a,b}.
b) Instring no two a's will UNIT-II
language with
lemma and show a"b'c" is not context free
Explain the concept ofpumping
the help ofit.
UNIT-III 5 ?
Mealey
Moore machine for the following problem and convert it into equivalent
Designthe
and produces residue modulo 3 as output.
machinc.
L"languange that takes binary number as inputUNIT-IV
5
Discuss the extensions of Turing nachine in detail.
Design NFAwith nullmove for the following expression and convert it into equivalent 10
minimized DFA by showing proper steps.
(aa + b)* (bb + a)*
Find the regular expression for the following machine using Arden's Theorem. 10
ql q2
1
q3
UNIT-II
Construct the granmar for the following
form. language and then convert it into Greibach normal
L (a"b" n0) 10
a) What is ambiguous
or not. grammar and show
whether following grammar is
S->
b) WriteSS|S) null
a CFG for the ambiguous 5+5
are balanced Language
parenthesis,
l over the alphabet
=)} where the words
UNIT-III
10 Design the PDAfor the following language andalso show the acceptance of a string belonging 16
to that language.
L-(a" b'm'e"dn,m>-1}
11 Convert the following PDA into equivalent CFG 19
((g0.ql}. (a.b). (a,z0}, õ, q0,z0, )
Where õis defined by:
5 (g0,a,z0)=(q0,azO)
5 (g0.a.,a) =(g0,aa)
õ (q0,b,a)=(q1,a)
5 (g1,b,a)=(q1,a)
O (g1,a,a)=(q1,null)
S(g1,nul,z0)=(g1,nul)
UNIT-IV
12 Design a Turing machine for the multiplication of two unary numbers over alphabet -{1}. r 10
eg: 11 multiply by 11l gives 111111.
13 Discuss the following concepts in detail: 4+6
a) Halting Problem of Turing machine.
b) Post correspondence problem along with an example.
University Lustitute of EnginceriuR &IechnoleRY
(Becexnised LInder Section2and L28at UGO
Kurukshetra University, Kurukshetra Roll No.
15x1=15
Q. No. -1 Answer the following questions.
columns ofa table.
() ..operation is used if we are interested in only certain
(m) Count function in SQL returns the number of
(iii) The set of possible data values is called
when there are
(iv) It is better to use files than a DBMS application
the data from the database that the
(v) The way a particular application views
uses is a
Relational algebra is a. language
(vi) of......children.
Btree oforder m has maximum
(vii) If R has m tuples and S has n
tuples,
of a relation R with relation S.
(vii) |Consider the join
then the maximum size of join is.......
(ix) The natural join is equal to of R1 and R2
produces the relation that has attributes
(X) is....
organization that provides very fast access to any arbitrary record of file
b(xi) The file
definition of a table is
The statement in SQL which allow changing the
(xii)
store in the database.
are used to identify which type of data we are going to
(xii)
attributes to form a primary key is a
(xiv)An entity set that does not have sufficient
(xv) 'AS' clause is used in SOL for
PART-B(20 Marks)
UNIT-I
example,
gencralizato) with
avd UNIT-II
DisCuNs Cardinality
dependencics in DBMS.
andnon-trivial
soaeeaA
reverseprogram?
Draw
Write analog
available
transferring
Interface
anthe input
direction
assembly
diagram for 8-bit
ADC. output
is
present ADC
with
language toDraw of
interface with
delay. ADC
at
the VP4 8086
program to
schematic
a the
ofusing
stepper the
CPU
to ADC UNIT-IV 8255
motor
run and and
and portports.
the write
with a
stepper ConfigureC
clock
8086 the for
requiredinput control
motor
microprocessor
of port
in
assembiy signal.
both suitabie A
f
forward A%2
freasy
arxd lat
ran A
a
a