Question Pattern
Question Pattern
Find
the minimum table nos. from this ER diagram. Which of the following is a correct attribute set for one of the tables ?
Justify your answer properly.
d. {M1, P1}
What are the functional components of DDMS? Construct an ER diagram for a Banking System. Indicate the entities,
relationships, cardinality, and the key constraints
suitable example?
What is meant by lexical analysis? Identify the lexemes that makeup the token in the following program
segment.indicate the correspond token and pattern.
{ int t; t = i ; i = j ; j = t ;
Explain in detail the tool for generating Lexical-Analyzer with an example program
Derivation and Parse Tree: a. Let G be a Context Free Grammar for which the production Rules are given below:
S -> aB|bA
A -> a|aS|bAA
B -> b|bS|aBB
Derive the string aaabbabbba using the above grammar (using Left Most Derivation and Right most Derivation).
a) Specification of Tokens
b) Recognition of Tokens
compiler
Write down the steps to calculate FIRST() and FOLLOW(). Calculate the first and follow functions for the given
grammar-
S → aBDh
B → cC
C → bC / ∈
D → EF
E→g/∈
F→f/∈
Considering the string “10201”, design a shift-reduce parser for the following grammar-
S → 0S0 | 1S1 | 2
Describe the differences between Multiprogramming and Multiprocessing. What are the advantages and
disadvantages of Multiprocessor System?
How does operating system function as resource manager? Discuss different types of events in operating system.
Explain the process lifecycle with a suitable diagram. Describe PCB with proper diagram.
Describe two different scenarios of context switching in an operating system. Write down the importance of PCB in
controlling the context switching of a process.
What is the difference between a scheduler and a dispatcher? What is the meaning of CPU-burst and l/O-burst? How
do they affect the performance of multi-programming?
v) Number of subnets if total 10 bits are used for the global network ID
What is the throughput achievable in stop and wait protocol by a maximum packet size of 1000 bytes and network
span of 10 km.? Assume the speed of light in cable is 70% of the speed of light in vaccum.
Consider two hosts X and Y connected by a single direct link of rate 106 bits/sec. The distance between the two hosts
is 10,000 km and the propagation speed along the link is 2 x 108 m/sec. Host X sends a file of 50,000 bytes as one
large message to host Y continuously. Let the transmission and propagation delays be p milliseconds and q
milliseconds respectively. Find the value of p and q.
In Selective Repeat protocol, suppose frames through 0 to 4 have been transmitted. Now, imagine that 0 times out,
5 (a new frame) is transmitted, 1 times out, 2 times out and 6 (another new frame) is transmitted. At this point, what
will be the outstanding packets in sender’s window?
What is TCP/IP model? Explain the functions and protocols and services of each layer. Compare it with OSI model.
Given a remainder of 111, a data unit of 10110011 and a divisor of 1001, is there an error in the data unit. Justify
your answer with necessary principles.
A) Given data polynomial x7+x6+x4+x2+x+1 and a divisor polynomial is x3+1. Find the CRC and check at receiver
side.
We have a big single network having IP Address 200.1.2.0. How we can divide this network in 3 subnets. For each
subnet find IP address of subnet, Number of hosts, Range of IP Addresses, Limited Broadcast Address and Direct
Broadcast Address.