Professional Documents
Culture Documents
DEPARTMENT OF
COMPUTER SCIENCE AND ENGINEERING
____________________________________________________________________________________
Section -1
1. Discuss the phases of a compiler indicating the inputs and outputs of each phase in translating
OR
2. Define an LL(1) grammar. Is the following grammar LL(1). G:S → iEtS | iEtSes |a , E → b.
Also write the rules for computing FIRST() and FOLLOW(). [14M]
Section -2
3. What is an LALR(1) grammar?. Construct LALR parsing table for the following grammar:
OR
Section -3
5. What are different intermediate code forms? Discuss different Three Address code types and
implementations of Three Address statements. [14 M]
OR
6. With a neat diagram explain the format of the Symbol Table. And discuss the tree structures
representation of scope information. [14 M]
Section -4
b) Discuss how induction variables can be detected and eliminated from the given [7 M]
intermediate code
t1:=4*j
t2:=a[t1]
if t2<10 goto B2
Section -5
OR
____________________________________________________________________________________
Section -1
1. List out the functions of a Lexical Analyzer? State the reasons for the Separation of Analyses
OR
2. Define a Parser. What is the role of grammars in Parser construction? Construct the Predictive
parsing table for the grammar G : E → E+T |T , E →T*F |F , F →(E) |id. [14M]
Section -2
3. What is an LR(0) item? Construct an SLR parsing table for the grammar
OR
4. Construct SLR parsing table for the following grammar: R-> R’|’R|RR|R*|(R)|al b [14 M]
Section -3
5. What do you mean by attributed grammars? Discuss the a translation scheme for Converting
an infix expression to its equivalent postfix form. [14 M]
OR
8. What is DAG and flow graph? Explain their role in compilation process. [14 M]
Section -5
9 a) Explain why next-use information is required for generating object code? [7M+7M]
OR
b) Generate code for the following C program using any code generation algorithm.
main()
Int I;
Int a[10];
while(i<=10)
a[i]=0;
}
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
Permanently Affiliated to JNTUH, Approved by AICTE-Accredited by NBA & NAAC- A-Grade; ISO
9001:2008 Certified
____________________________________________________________________________________
Section -1
OR
Section -2
3. a) Obtain the directed acycJic graph for the expression : x+x*(y+ z)+(y+z)* w [7M+7M]
.
b) Explain the following with example: i) Quadqaples ii) Triples iii) Indirect triple
OR
4. Compare and contrast SLR with LALR. Define Kernel items and Non-kernel items. [14 M]
A-> d
Section -3
5. Generate the three address code for the following code fragment. [14 M]
OR
6. Write a note on simple type checker and list the different types of type checking [14 M]
Section -4
OR
Section -5
OR
Write the next-use information for each line of the basic block.
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
Permanently Affiliated to JNTUH, Approved by AICTE-Accredited by NBA & NAAC- A-Grade; ISO
9001:2008 Certified
Section -1
1. What is LEX? Discuss the usage of LEX in Lexical Analyzer generation. [14 M]
OR
2. State the various phases of a compiler and explain them in detail. [14 M]
Section -2
S-> CC
C-> cC / d OR
4. Compare and contrast SLR with LALR. Define Kernel items and Non-kernel items. [14 M]
A-> d
Section -3
5. Generate the three address code for the following code fragment. [14 M]
while(a>b)
if(c<d)
x=y+z;
else
x=y-z;
OR
6. Explain the use of symbol table in compilation process. List out the various attributes for
implementing the symbol table. [14 M]
Section -4
OR
Section -5
OR
10. Explain the following terms: i) Register Descriptor ii) Address Descriptor iii) Instruction
Costs [14 M]
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
COMPUTER SCIENCE AND ENGINEERING
Computer Graphics(R17A0517)
MODEL QUESTION PAPER-I
III CSE I Semester
Duration: 3hrs Max Marks: 70
SECTION -I
1 a) What are the application areas of computer graphics? Explain briefly? [7+7]
b)Explain about video display devices?
OR
2.Consider a raster display system with resolution of 800 by 400. How many pixels could
be accessed per second by a display controller that refreshes the screen at the rate of 60
frames per second? [14]
SECTION -II
SECTION -III
SECTION -I
SECTION -III
1.Explain the mathematical procedure in deciding the points on the periphery of the
ellipse using mid point ellipse algorithm [14]
OR
2.What are the steps involved in the DDA line drawing algorithm [14]
SECTION -II
3.What is the principle of cyrus-Beck algorithm for clipping polygon? Illustrate with an
example. [14]
OR
4.What are the stages involved in the window to viewport coordinate transformation.
Explain about each stage. [14]
SECTION -III
7.Discuss about the scan line method for visible surface detection. [14]
OR
8. Which algorithms are suitable for hidden surface removal of objects with non-planar
surface .justify?
[14]
SECTION -V
9.Discuss about the techniques used to achieve the simple animation effects. [14]
OR
10.List the typical tasks for which the animation functions are defined in animation
languages. [14]
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
COMPUTER SCIENCE AND ENGINEERING
Computer Graphics(R17A0517)
MODEL QUESTION PAPER-IV
III CSE I Semester
Duration: 3hrs Max Marks: 70
1. a)What are the application areas of computer graphics? Explain briefly? [7+7]
b)describe the bresenham line drawing algorithm with an example?
OR
2.a)describe about the flat pnnel display devices [7+7]
b)draw the flowchart for midpoint circle generation algorithm?
SECTION -II
(OR)
8. Explain the congestion control in TCP. [14]
SECTION – V
9 Describe how SMTP protocol is used in E-mail applications [14]
(OR)
10. (a)Explain the features of FTP and its operation. [10]
(b) Discuss the features of TELNET. What is the need for network virtual terminal? [4]
*****
R17
Code No: R17A0514
MALLA REDDY COLLEGE OF ENGINEERING &
TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester Model Question Paper – 2
Computer Networks
(CSE)
Time: 3 hours Max. Marks: 70
Note: This question paper Consists of 5 Sections. Answer FIVE Questions, Choosing ONE
Question from each SECTION and each Question carries 14 marks.
*********
SECTION – I
1. (a)Explain different types of switching techniques along with their advantages and
disadvantages. [7M]
b) Explain Guided media with neat diagrams.[7M]
(OR)
2 (a) Write short notes on TCP/IP model. [7M]
(b) Explain the OSI reference model. [7M]
SECTION – II
3 Compare various sliding window protocols of data link layer. [14M]
(OR)
4 What is the purpose of CSMA/CD? And also explain it. [14M]
SECTION – III
5 Explain the various congestion control mechanisms. [14M]
(OR)
6 (a)What is Classless Inter Domain Routing. [7M]
(b)Explain The Address Resolution Protocol. [7M]
SECTION – IV
7 Explain Crash Recovery in Transport Layer. [14M]
(OR)
8 Explain the TCP segment header and TCP connection establishment. [14M]
SECTION – V
9 Describe how SMTP protocol used in Email application. [14M]
(OR)
10 (a)Explain (i ) HTTP (ii) TELNET. [7M]
(b) Explain Domain Name System. [7M]
******
Code No: R17A0514
R17
MALLA REDDY COLLEGE OF ENGINEERING &
TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester Model Paper - 3
Computer Networks
(CSE)
SECTION – I
1 A) What are the different types of error detection methods? Explain the CRC error
detection technique using generator polynomial x4+x3+1 and data 11100011 [7M]
B) Explain about various guided transmission media in physical layer with a neat sketch.[7]
(OR)
2 A) Explain how are OSI and ISO related to each other. [5M]
B) Suppose a computer sends a frame to another computer on a bus topology LAN., the
physical destination address of the frame is corrupted during the transmission. what
happens to the frame how can the sender be informed about the situation [9M]
SECTION – II
3 Write in detail about sliding window protocols. [14M]
(OR)
4 A) What are the functions of medium access control layers protocol? Explain. [7M]
B) Compare and contrast a controlled access protocol with a channelizing protocol [7M]
SECTION – III
5 A) Derive the optimality principle with a suitable example [6M]
(B) Explain various congestion control mechanisms in detail [8M]
(OR)
6 A) Describe Dijkstra shortest path algorithm. Also show working of Dijkstra algorithm
with the help of an example. [7M]
B) Describe the problem and solutions associated with distance vector routing. [7M]
SECTION – IV
7 A) Describe three way hand shaking protocol to establish the transport level connection.
(B). Describe TCP header format [5M+9M]
(OR)
8 What happens when large packet wants to travel through network with smaller
maximum packet size? Explain [14M]
SECTION – V
9 What is cryptography and explain RSA algorithm with an example [14M]
(OR)
10 A) What is electronic mail? Describe in brief about sending and receiving e-mail. [9M]
(b) Write short notes on: [3+2=5M]
a) DNS
b) FTP
*****
Code No: R17A0514 R17
MALLA REDDY COLLEGE OF ENGINEERING &
TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester Model Paper - 4
Computer Networks
(CSE)
Time: 3 hours Max. Marks: 70
Note: This question paper Consists of 5 Sections. Answer FIVE Questions, Choosing ONE
Question from each SECTION and each Question carries 14 marks.
*********
SECTION – I
1 (a) Discuss about Internet standards [7M]
(b) Compare and contrast the OSI and TCP/IP reference models ? [7M]
(OR)
2 (a) Explain about Go Back ‘N’ Sliding Window Protocol? [7M]
(b) Explain the algorithm for CRC method of error checking [7M]
SECTION – II
3 Explain about the following: [7+7]
a) Spanning Tree Bridge b) Remote bridge.
(OR)
4 (a) Explain fast Ethernet and gigabit Ethernet. [7M]
(b) Illustrate the frame structure of IEEE 802.3 [7M]
SECTION – III
5 (a) What are the advantages of adaptive routing approach over non adaptive routing?
[4M]
(b) Explain various congestion control mechanisms in detail.[10M]
(OR)
6 Describe Dijkstra shortest path algorithm. Also show working of Dijkstra
algorithm with the help of an example. [14M]
SECTION – IV
7 (a). Illustrate the connection establishment and release in transport layer. [7M]
(b). Explain in detail about crash recovery. [7M]
(OR)
8 Explain the elements of a Transport protocol [14M]
SECTION – V
9 (a) Explain FTP protocol [7M]
(b) What are the services provided by transport layer to the upper layers [7M]
(OR)
10 What is DNS? What are the services provided by DNS and explain how it works
[14M]
11 *****
R17
Code No: xxxxxx
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester, Model Paper-I
Operating Systems
(CSE & IT)
Roll No
SECTION-II
3 a. Explain different types of schedulers and scheduling queues [7M]
b. What is process? Explain different states of process. [7M]
OR
4 What is a monitor? Explain how dinning philosopher’s problem is solved using monitors [14M]
with example pseudo code.
SECTION-III
5 [8M]
a. Explain paging concept with neat diagram.
[6M]
b. Explain about shared pages.
OR
6 Explain LRU, FIFO page replacement algorithms for the following example reference [8M]
1,3,4,0,5,3,2,1,0,4,5,2,1,3,2,5 and frame size=3 and 4 and compare them.
Write short notes on allocation of frames. [6M]
SECTION-IV
7 a. What are different file access methods? [7M]
b. Discuss about free space management. [7M]
OR
8 a. Explain about disk structure. [7M]
b. Discuss about disk attachment. [7M]
SECTION-V
9 a. Write short notes on deadlock detection. [7M]
b. Explain different methods of recovery from deadlocks. [7M]
OR
10 Explain the different implementation methods of access matrix [14M]
**********
R17
Code No: xxxxxx
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester, Model Paper-II
Operating Systems
(CSE & IT)
Roll No
SECTION-II
3 Following is the snapshot of a CPU [14M]
Process CPU Burst Arrival Time
P1 75 0
P2 40 10
P3 25 10
P4 20 80
P5 45 85
Draw the Gantt chart and calculate the turnaround time and waiting time of the
jobs for FCFS (First Come First Served), SJF (Shortest Job First), SRTF (Shortest
Remaining Time First) and RR (Round Robin with time quantum 15) scheduling
algorithms.
OR
4 State and Explain critical section problem. Give software based solution(Peterson’s) for [14M]
critical section problem
SECTION-III
5 Explain different Page table structures with neat diagram. [14M]
OR
6 a. Explain Demand paging. [6M]
b. Discuss about paging with segmentation. [8M]
SECTION-IV
7 a. Explain different directory structures with examples. [10M]
b. Discuss about file mounting. [4M]
OR
8 a. Discuss about disk management. [7M]
b. Explain swap space management. [7M]
SECTION-V
9 a. What are the necessary conditions of deadlocks? [7M]
b. What are the different methods of handling deadlocks? [7M]
OR
10 a. Discuss about access control [6M]
b. Explain the following. [8M]
i. Goals of protection
ii. Principles of protection
**********
R17
Code No: xxxxxx
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester, Model Paper-III
Operating Systems
(CSE & IT)
Roll No
SECTION-II
3 a. Explain about semaphores. [7M]
b. Explain multilevel queue scheduling and multilevel queue feedback [7M]
scheduling.
OR
4 Consider the following four processes, with the length of the CPU burst given in [14M]
milliseconds.
Process Arrival Time Burst Time
P1 0 5
P2 1 6
P3 2 2
P4 3 8
Calculate the average waiting time and average turnaround time for round robin
(time quanta=3), pre-emptive and non pre-emptive SJF.
SECTION-III
5 a. Differentiate between logical and physical address. [6M]
b. Explain about Contiguous memory allocation [8M]
OR
6 Discuss LRU approximation algorithms with examples. [14M]
SECTION-IV
7 a. Describe the following Directory Implementation methods? [7M]
i. Linear List ii. Hash Table
b. Explain the concept of file sharing? What are the criteria to be followed in systems [7M]
which implement file sharing?
OR
8 Consider that a disk drive has 5,000 cylinders, numbered 0 to 4,999. The drive is [14M]
currently serving request at cylinder 143, and the previous request was at cylinder 125.
The queue of pending requests, in FIFO order, is: 86, 1470, 913, 1774, 948, 1509, 1022,
1750, 130 Starting from the current head position, what is the total distance (in
cylinders) that the disk arm moves to satisfy all pending requests for each of the
following disk scheduling algorithms?
A. FCFS
B. SSTF
C. SCAN
D. C-SCAN
E. LOOK
F. C-LOOK
SECTION-V
9 a. Write banker’s algorithm for deadlock avoidance.
b. Consider the following snapshot of a system: [8M]
Processes Allocation Max Available
A B CD A B CD ABCD
P0 0012 0012 2100
P1 2000 2750
P2 0034 6656
P3 2345 4356
P4 0332 0652
Answer the following questions using the banker’s algorithm:
a) What is the content of the matrix Need?
b) Is the system in a safe state? Why?
c) Is the system currently deadlocked? Why or why not?
Which process, if any, or may become deadlocked if this whole request is granted
immediately?
OR
10 a. Explain about Cambridge CAP system. [7M]
b. does the programming language Java support protection? Explain [7M]
**********
R17
Code No: xxxxxx
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester, Model Paper-IV
Operating Systems
(CSE & IT)
Roll No
SECTION-I
1 a. What are the functions provided by operating system services? [8M]
b. Explain about special purpose systems. [6M]
OR
2 a. Explain different types of system programs. [7M]
b. Discuss about real-time systems and distributed systems. [7M]
SECTION-II
3 a. Differentiate between pre-emptive and non pre-emptive scheduling with [7M]
examples.
b. explain hardware based solutions for critical section problem [7M]
OR
4 Explain different Problems of Synchronization. [14M]
SECTION-III
5 a. Explain about swapping. [6M]
b. Explain segmentation with neat diagram. [8M]
OR
6 a. Explain optimal page replacement algorithm for the following example reference , 2, [8M]
3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6 and frame size=3 and 4 and compare
them.
b. Write a note on thrashing. [6M]
SECTION-IV
7 a. Explain different file allocation methods. [7M]
b. Explain the following file concepts: [7M]
i. File attributes
ii. File operations
iii. File types
iv. Internal file structure.
OR
8 a. A hard disk has 63 sectors per tracks, 10 platters each with 2 recording surfaces and [8M]
1000 cylinders. The address of a sector is given as a triple <c, h, and s> where c is the
cylinder number, h is the surface number and s is the sector number. Thus 0th sector is
addressed as <0, 0, and 0>, the 1st sector is Addressed as <0, 0, and 1> and so on.
Calculate the address of 1050th sector.
b. Explain how disk caching can improve disk performance? [6M]
SECTION-V
9 a. Consider the following snapshot of a system [8M]
Allocation Max Available
A B C D A B C D A B C D
P1 0 0 1 3 0 0 1 2 1 5 2 0
P2 1 0 0 0 1 7 5 0
P3 1 3 5 4 2 3 5 6
Answer the following questions using the banker’s algorithm:
a) What is the content of matrix “Need”?
b) Is the system in a safe state?
If a request from process P1 arrives for (0, 4, 2, 0) can the request be granted
immediately?
b. Write banker’s for deadlock detection. [6M]
OR
10 a. Discuss about domain of protection with example. [7M]
b. Explain Revocation of rights with examples. [7M]
**********
R17
Code No: XXXXXXX
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
QUESTION PAPER
SOFTWARE ENGINEERING
(CSE)
Roll No
SECTION-I
1). Explain iterative waterfall and spiral model for software life cycle and discuss various
activities in each phase.
[14M]
(OR)
2 ) List several software process paradigms. Explain how both waterfall model and prototyping
model can be accommodated in the spiral process model. [14M]
SECTION-II
3. ) Mention Non-functional requirements on software to be developed [14M]
(OR)
4. Explain the ways and means for collecting the software requirements and how are they
organized and represented? [14M]
SECTION-III
5 a) Explain about the various design concepts considered during design? [7M]
b) Write short notes on user interface design process? [7M]
(OR)
6 Describe decomposition levels of abstraction and modularity concepts in software design.
[14M]
SECTION- IV
7). Discuss the differences between black box and white box testing models. Discuss how these
testing models may be used together to test a program schedule. [14M]
(OR)
SECTION- V
(OR )
***********
R17
Code No: XXXXXXX
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY 8
(Autonomous Institution – UGC, Govt. of India)
QUESTION PAPER
SOFTWARE ENGINEERING
(CSE)
Roll No
SECTION-I
1). Explain in detail Boehm's spiral model for software life cycle and discuss various activities in
each phase [14M]
(OR)
2. a) a) What is SPICE? Explain. [7M]
SECTION-II
3. a) Discuss in detail the data modeling activity [7M]
b) Write briefly about the utility of state transition diagram in analysis modeling activity
[7M]
(OR)
4. a) Compare functional and behavioral models. [7M]
b)With a suitable diagram explain the elements of the analysis model [7M]
SECTION-III
5 a) Explain in detail about the characteristics and criteria for a good design. [7M]
b) Describe the golden rules for interface design. [7M]
(OR)
6 a) discuss in detail about the design process in software development process [7M]
b) Justify “Design is not coding and coding is not design”. [7M]
SECTION- IV
8. Explain the integration testing process and system testing process and discuss their
outcomes [14M]
SECTION- V
(OR )
10. Explain the role of software engineering methods in achieving software quality 14M]
***********
R18
Code No: XXXXXXX
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
QUESTION PAPER
SOFTWARE ENGINEERING
(CSE)
Roll No
SECTION-II
3. Discuss about the Context Models and Behavioral models [14M]
(OR)
4. Explain about the object models and structured methods. [14M]
SECTION-III
5. Explain about the User interface analysis and design [14M]
(OR)
6. Explain about the interface design steps and Design evaluation. [14M]
SECTION- IV
7 .Explain white box testing methods and its advantages and disadvantages. [14M]
(OR)
8. a)Explain about the Black-Box and White- Box testing. [7M]
b) Explain about the Alpha and Beta testing. [7M]
SECTION- V
9. a)Differentiate between Reactive vs. Proactive Risk strategies. [7M]
b) Differentiate between Risk identification and Risk projection. [7M]
(OR )
SECTION-I
1 a) Which is more important-the product or process? Justify your answer. [7M]
b) Identify the umbrella activities in software engineering process. [7M]
(OR)
2. List several software process paradigms. Explain how both waterfall model and
prototyping model can be accommodated in the spiral process model. [14M]
SECTION-II
3 a) Describe how software requirements are documented? State the
importance of documentation. [7M]
b) Explain the software requirement analysis and modeling.
[7M]
(OR)
4 Explain a typical SRS structure and its parts. [14M]
SECTION-III
5. What are the various model of abstraction? Discuss any two in detail? [14M]
(OR)
6 a) Explain the set of principles for software engineering design? [14M]
SECTION- IV
***********