






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Uiet 5th semester paper, Data base management system, Theory of computation, Compiler, Operating system, Design analysis and algorithm
Typology: Exams
1 / 11
This page cannot be seen from the preview
Don't miss anything!
END SEM (ODD SEM) EXAMINATION 2021- oPERATING SYSTEM (DIT-S309) IT (5th SEM) UNIVERSITY INSTITUTE OF ENGINEERING & TECHNOL.OGY CSJM UNIVERSITY, KANPUR
Roll No. ... Name^ ..^ .. Max Marks 40 Time^ 3:00^ Hrs.
(a) Explain layered architecture^ of^ operating^ system.^ Also^ state^ its (^) advantages and
disadvantages. (b) Differentiate^ between^ SMP^ and^ ASMP. (c) Write^ short^ notes^ on:
(d) What is the^ importance^ of^ Reentrant^ Kernel in (^) operating system?
e) Semaphore^ can^ be^ used^ to^
SectionB
(5 X 3-15)
aFor the following^ table^ find^ out^ average^ waiting^
time and^ average turn^ around^ time^ for
non (^) preemptive priority scheduling^ algorihm^ and^ round^ robin (^) scheduling algorithm with^ time
quantum 2 ms.
(ms) (ms) Po 0 4 P Pa^4 Ps 7
END (^) SEM (^) (ODD SEM) (^) EXAMINATION (^) 2021- INTRODUCTION To (^) COMPILER (DIT-S311) IT (5th SEM) UNIVERSITY (^) INSTITUTE OF ENGINEERING & (^) TECHNOLOGY CS.JM UNIVERSITY, KANPUR
Roll No. ..
Time3:00 Hrs. Section A
(d) (^) Explain (^) parser (^) generator tool (YACC). Also^ explain its (^) working with (^) LEX. (e) (^) Differentiate (^) between (^) synthesized attribute and (^) inherited attributes (^) with the (^) help of (^) SDD based grammar.
(e) What^ are the (^) problems (^) in (^) top dowr (^) parsing?
Ad) What^ are^ the basic (^) steps for (^) construction of (^) recursive (^) decent parser? (e) Find^ LEADING and (^) TRAILING of the (^) grammar: S aAB /bA /¬
A> aAb/a B bB /¬
() Automata is (^) the basis of (^) compiler. How?
UIET, CS.JM UNIVERSITY
Semester: 5th Semn End Semester Examination Year:^ 3rd^ Year Time: 3 h
applications of^ shortest (^) path (^) problem? Describe (^) different shortest (^) path problem in detail. types of 141 9 Consider^ the^ recurrence T (^) (n) =^ 3T (n/4) +^ cn'^ and^ solve it^ through Recursion method, show each (^) of (^) the step to (^) calculate (^) Time Complexity.
tree 4]
method, show each of through^ Substitution the (^) step till (^) the (^) Time (^) Complexity found.
Q
Q4. Write^ the (^) Selection sort (^) Algorithm and (^) analyze it (^) based on each Cost^ and^ Time^ taken^ by step. (^) Compute the^ Time^ Complexity for the Worst (^) Case. [
spanning tree. (^41)
9
SECTION-B
Write down the (^) Binary search^ Algorithm^ and^ Compute^ the^ time^ complexity^
of
Binary search^ Algorithm using^ substitution^ method.
Q6.
[P.T.O
DEPARTMENT OF^ INFORMATION (^) TECHNOLOGY UIET, CS.JM UNIVERSITY Database (^) Management (^) System (DIT-S
Semester: 5th Sem
Time 3h (^) Total Marks: 40
SECTION-A
. (^) By (^) considering the (^) given table writes down the (^) SQL query and shows the (^) output.
Empid Deptid Name DI D
Job (^) Salary Contact 50000 23434353 Delhi
City EL E
S. ahmad Anand
Sales manager Sr.manager Account manager45000 34343553 Delhi 3500054545454 | Delhi 45454534 Noida ISO0086867656 Noida 53564673 Gurgaon 45654733 Gurgaon 75686779 Gurgaon
E E ES
D | D
Aruna Alpesh Moniza
Accountant DI (^) Incharge 25000 E6 DI (^) Harish Salesman Incharge Worker Worker
20000 17000
E7 (^) D2 7.ain D D
Nilesh Raja
Find the (^) departments for^ which^ its^ employees average^ salary^ is^ more^ than^ or^ equal^ to
Find details^ of^ employees who^ are^ living^ in^ the^ same^ city^ as^ Anand lives.
A. For^ each^ department^ find^ the^ average^ salary^
of (^) employees. Retrieve detail of^ employees whose^ name^ start^ with^ character A and names (^) length is^ not
less than 5 characters.
Q2. Explain^ the^ syntax^ of^ adding^ and (^) dropping primary key^ constraint^ into^ an^ existing^
table. (^) [
Q3. Design a^ generalization-specialization^
hierarchy for^ a^ motor^ vehicle^ company.^ The
company sells^ motorcycles,^ cars,^
vans and^ buses.^ Justify^ your^ placement^
level of the hierarchy.
or non^ commercial.^12
and full outer^ Join, Explain^ these^ with^ the (^) help of^ two^ tables^ and^ write (^) SQL query for^ each 13
4What do^ you^ mean^ by^ Joining^
of tables^ such^ as^ Equi^ join,^ left^ outer (^) join, Right outer^ join
of one.
P.T.O Q5. Given^ relation^ R^ (A,^ B,^ C,^ D, E) with^ their^
F{AB (^) C, CD >^ E,^
DE 9 B}
MID (^) SEM (^) (ODD SEM) EXAMINATION (^) 2021- INTRODUCTION TO^ cOMPILERS (^) (DIT-S311) IT (^) (5th (^) SEM) 2K BATCH UNIVERSITY (^) INSTITUTE OF ENGINEERING & CSJM UNIVERSITY, KANPUR TECHNOLOGY
Roll No. .... Max Marks-30 (^) Name Note: (^) Attempt all Time^ -^ 1:30 Hrs. questions.
Section A
Find a (^) regular (^) expression (^) corresponding to each of the following subset^ [0,1]: (^) (4)
(i) The language of all strings containing at most two 0's. Gi) The language of all strings endingg with 1 and do not contain 00. (iv) The language of all strings in which both the number of 0's and number of 1's are odd.
What is the significance of bootstrapping in compiler? 3)
Secrion B
6Consider the following^ CFG^ and^ check^ whether^ this^ grammar^
is (^) LL1) or^ not:
S L)/a
. Do^ left^ factoring^ in^ the^ following^ grammar:
E eET/^ eE^ /e
T T/t
(5)
8/ Consider^ the (^) following grammar^ and^ perform^ rightmost derivation^ for^ the^ string^
aaabbabbba;
SaB/ bA Aa /aS/bAA B b/bS/aBB
DEPARTMENT OF (^) INFORMATION (^) TECHNOLOGY UIET, CSJM UNIVERSITY Database (^) Management System (^) (DIT-S (^) 307)
Semester: 5th (^) Year: 3rd (^) Year (2K18) Mid Semester Examination
SECTION-AA
Q1. What do you mean by Traditional data model, Describe Hierarchical,^ network^ and Relational data^ model^ in^ brief?^ 3]
independence?
the example?
Q3. [
SECTION-B
Q4. Create^ a^ table^ client^ with^ the^ following^ constraints- (
Column 1.^ Client_no - entered^ value^ must^ be^ start^ with^ c Column 2. Name^ entered^ value^ must^ be^ in^ upper^ case Column 3. City- in only delhi, Kanpur
Column 5. Mobile - unique
Column 6. Salesid -foreign key
Q5. Explain the^ syntax^ of^ adding^ and (^) droppinglconstraint at^ the^ time^ of
And apply these on constraints type Primary key Unique Show it with the help of example.
2
Q6. Consider^ the^ following^ table:^ [P.T.O
OPERATING SYSTEMS (DIT-S309) IT (5h SEM) 2K19 BATCH
Roll No. ...J 93 **°°^ Name..
Note:-Atempt all questions
Section A
() Operating system acts as a resource manager. Justify your answer. (^) (2)
) Differentiate between multiprogramming operating system and multitasking operating system. ()
Which type of kernel can suffer from race condition? Explain with a suitable example. (^) 3)
Explain critical section? What are the possible solutions to solve the critical section problem? 3)
Section B
(5) What^ are^ the^ advantages^ of^ reentrant^ kernel?^ (2) (6 How can dinning philosopher problem can suffer from deadlock and what are the solutions for it?
(7 Explain semaphore and write the modification in traditional definition of wait () and signal () function
to avoid busy waiting. (^) (3)
(8) What do you mean by process synchronization? Explain with an example. (^) (2)
Department of^ Information UIET, CSJM Technology University, (^) Kanpur Theory Of (^) Computation Semester:5h Sema (DIT-S303) Mid Semester Examination Year:^ 3rd^ Year
Maximum Marks: 30 Section A (All (^) questions are (^) compulsory)
L = (^) {a"|n2 1}, La = {8" (^) | n2 1}
Describe the language as per the set notation as(using DFA/NFA): [L.54-
A. L^ =Li1 B.^ L=L C.^ L=Li^ ULa D.^ L^ = (^) LinLa
02*3-06]