Shivaji University, Kolhapur T.E Computer Science and Engg. (SEMESTER-VI)

Size: px
Start display at page:

Download "Shivaji University, Kolhapur T.E Computer Science and Engg. (SEMESTER-VI)"

Transcription

1 Shivaji University, Kolhapur T.E Computer Science and Engg. (SEMESTER-VI) Sr. Name of Subject Teaching Scheme Examination Scheme L T P Total Theory Marks TW POE Ora l Total Marks Written Online 1 Compiler Construction Operating System - II Database Engineering Storage Networks Information Security Programming Lab - IV Domain Specific Mini- Project Total INDEX Sr. Name of the Subject Code Page 1 Compiler Construction CSE Operating System - II CSE Database Engineering CSE Storage Networks CSE Information Security CSE Programming Lab - IV CSE Domain Specific Mini- Project CSE Page 1 of 87

2 Course Plan for Compiler Construction Course Compiler Construction Course Code Examination Scheme Theory Term Work POE Total Max. Marks Contact Hours/ week Prepared by Mr.S.S.More Date 2 November 2017 Prerequisites 1. Students should know basic concept of system programming 2. Details of compilers and interpreters 3. Aspects of compilation 4. Basics of Assembler and its working stages in terms of pass I and II 5. Compilation of control structures 6. Compilation of expressions Course Outcomes At the end of the course the students should be able to: CO308.1 CO308.2 Explain 2 phases of compiler and compiler construction tools Discuss 2 complete lexical analyzer in C language with symbol table CO308.3 Define 1 the concept of parsing technique like top-down and bottom-up parsing. CO308.4 Analyze 4 S and L attributed syntax directed definitions, storage organization and it s allocations strategies CO308.5 Identify 4 the basics of code optimization techniques and data flow analysis and algorithms CO308.6 Illustrate 3 intermediate code generation techniques with procedure calls issues in design of code generator and target machines Page 2 of 87

3 Mapping of COs with POs POs a b c d e f g h i j k l m COs CO CO CO CO CO CO Course Contents Unit Title of Hours Section I 1. Introduction to Compiling: 6 Compilers, Phases of a compiler, Compiler construction tools, Cousins of compiler 2. Lexical Analysis: 5 Role of a Lexical analyzer, input buffering, specification and recognition of tokens, finite automata implications, designing a lexical analyzer generator. 3 Syntax Analysis: 7 Role of Parser, Writing grammars for context free environments, Topdown parsing, Recursive descent and predictive parsers (LL), Bottom- Up parsing, Operator precedence parsing, LR, SLR and LALR parsers. Page 3 of 87

4 Section II 4 Syntax Directed Translation and Intermediate Code Generation : 7 Syntax directed definitions, construction of syntax tree, S-attributed definitions, L-attributed definitions, Intermediate languages, assignment statements, back patching, procedure calls 5 Code Optimization : 5 Sources of optimization, Peephole optimization and basic blocks, loops in flow graphs, Data flow analysis and equations, code improving transformation and aliases 6 Code Generation : 6 Issues in design of a code generator and target machine, Run time storage management, Basic blocks and flow graphs, Next use information and simple code generator, Issues of register allocation, code generation from Dags Reference Books: Sr. Title of Book Author Publisher/Edition Topics 1 Compilers Principles, Techniques and Tools A.V. Aho, R. Shethi and J.D.Ullman Pearson Education 1 to 6 2 Crafting A Compiler with C Charles Fischer, Richard LeBlanc Pearson Publication 1 to 6 3 Modern Compiler Design D. Grune, H. Bal, C. Jacobs, K. Langendoen Wiley publication 1 to 6 4 Modern Compiler Implementation in Java Andrew W. Appel Cambridge University Press to 6 Page 4 of 87

5 5 Compiler construction D.M. Dhamdare Mc-Millan 1 to 6 6 Unix / Linux manuals. Scheme of Marks Section Unit Title Marks 01 Introduction to Compiling 06 I 02 Lexical Analysis Syntax Analysis 24 II 04 Syntax Directed Translation and Intermediate Code Generation 05 Code Generation Course Unitization 06 Code Optimization 24 Unit Course Outcomes of Questions in Title CAT-I CAT-II CAT-III 1 Introduction to Compiling CO question 2 Lexical Analysis CO question 3 Syntax Analysis CO question 4 Syntax Directed CO questions Translation and Intermediate Code Generation 5 Code Generation CO question 6 Code Optimization CO questions Page 5 of 87

6 Unit wise Lesson Plan Unit No Section I 1 Unit Title Introduction to Compiling Planned Hrs. 6 Unit Outcomes At the end of this unit the students should be able to: UO1 Explain phases of compiler CO308.1 UO2 Construct compiler construction tools CO308.1 Lesson schedule Class Details to be covered 1 Definition of Compilers 2 Phases of a compiler 3 Compiler construction tools 4 Cousins of the compiler 5 Compilers in programming languages Review Questions Q1 What is Compiler? CO308.1 Q2 What are the functions of compiler? CO308.1 Q3 What are the different phases of compiler? CO308.1 Q4 Design and explain various compiler construction tools CO308.1 Page 6 of 87

7 Unit No 2 Unit Title Lexical Analysis Planned Hrs. 5 Unit Outcomes At the end of this unit the students should be able to: UO1 Elaborate the role of a lexical analyzer, input buffering CO308.2 UO2 Design a lexical analyzer generator CO308.2 Lesson schedule Class Details to be covered 1 Role of a Lexical analyzer, 2 Specification and recognition of tokens 3 Finite automata implications 4 Designing a lexical analyzer generator 5 Input buffering Review Questions Q1 What is role of Lexical analyzer in lexical analysis? CO308.2 Q2 How to specify and recognize the tokens? CO308.2 Q3 List and explain finite automata implications CO308.2 Q4 Design lexical analyzer by considering suitable example? CO308.2 Page 7 of 87

8 Unit No 3 Unit Title Syntax Analysis Planned Hrs. 7 Unit Outcomes At the end of this unit the students should be able to: UO1 Demonstrate the role of parser CO308.3 UO2 Explain top-down and bottom-up parsing techniques CO308.3 UO3 Construct LR, SLR and LALR parser CO308.3 Lesson schedule Class Details to be covered 1 Role of a parser, Syntax error recovery, Context free grammar, Eliminating Ambiguity 2 Top down parsing technique 3 Recursive descent parsing, predictive parsing, First and Follow, LL grammars 4 Bottom up parsing, Shift reduce parsing, Operator precedence parsing 5 LR parsing 6 SLR parsing, Canonical LR parsing 7 LALR parsers, parser generators Review Questions Q1 What is bottom up parsing? Explain the shift reduce bottom up parsing algorithm. CO308.3 Q2 What is top down parsing? Explain the non recursive predictive parsing CO308.3 Page 8 of 87

9 Q3 algorithm. What is the role of parser? Explain syntax error handling and error recovery strategies. CO308.3 Unit No 4 Unit Title Syntax Directed Translation and Intermediate Code Generation Planned Hrs. 7 Unit Outcomes At the end of this unit the students should be able to: UO1 Define Syntax Directed Definitions, L and S attributed definitions CO308.4 UO2 Construct syntax tree CO308.4 UO3 Analyze Syntax Directed Definitions CO308.4 UO4 Classify back patching techniques with procedure calls CO308.4 UO5 Design intermediate languages CO308.4 Lesson schedule Class Details to be covered 1 Syntax Directed Definitions-Inherited attributes 2 Syntax Directed Definitions Synthesized attributes 3 Construction of syntax tree with example 4 S- attributed definitions, Bottom up evaluation of S- attributed definitions 5 L- attributed definitions 6 Intermediate Languages, Assignment Statements Page 9 of 87

10 7 Back patching, Procedure calls Review Questions Q1 Explain inherited and synthesized attributes of syntax directed translation CO308.4 Q2 What is meant by S-attributed definitions and Back patching? CO308.4 Q3 Write short note on analysis of syntax directed definition and procedure calls. CO308.4 Unit No 5 Unit Title Code Optimization Planned Hrs. 5 Unit Outcomes At the end of this unit the students should be able to: UO1 Express sources of optimization and basic blocks CO308.5 UO2 Design Directed Acyclic Graph (DAG) and dynamic code generation algorithm CO308.5 Lesson schedule Class Details to be covered 1 Sources of optimization, Semantic preserving transformations, global common sub expression elimination 2 Peephole optimization, Redundant instruction elimination 3 Data flow analysis 4 Code improving transformations copy propagation, code motion, Induction variable elimination 5 Computing aliases Review Questions Page 10 of 87

11 Q1 What is peephole optimization? Describe different characteristics of peephole optimization. CO308.5 Q2 Write and explain an algorithm for common sub expression elimination. CO308.5 Q3 Explain in detail code improving transformation, copy propagation, code motion CO308.5 Unit No 6 Unit Title Code Generation Planned Hrs. 6 Unit Outcomes At the end of this unit the students should be able to: UO1 Write issues in design of a code generator and target machine CO308.6 UO2 Recognize run time storage management CO308.6 UO3 Explain register allocation and dynamic code generation algorithm CO308.6 Lesson schedule Class Details to be covered 1 Issues in design of code generator, register allocation 2 Runtime storage management, basic blocks and flow graphs 3 Next use information 4 Issues of register allocation, global register allocation, usage count, graph coloring 5 Code generation from DAG 6 DAG representation of basic blocks Review Questions Q1 Discuss different issues in design of code generator CO308.6 Page 11 of 87

12 Q2 Write short note on flow graph representation of basic blocks CO308.6 Q3 Represent the basic block by using DAG with suitable example CO308.6 Q4 Write detail note on issues of register allocation in code generation mechanism CO308.6 Model Question Paper Course Title : Compiler Construction Duration 2 Hrs Max. Marks 50 Instructions: Instructions: Figures to right indicate full marks Question number 1 and 4 is compulsory Attempt any one question from remaining Section-I Marks 1 a What are different phases of compiler? Explain in detail 6 b How to specify and recognize the tokens? 6 2 a Design and Explain various compiler construction tools 6 b List out and Explain finite automata implications 7 3 a What is top down parsing? Explain non recursive predictive parsing algorithm in detail 6 b Explain SLR parsing with suitable example 7 Section-II Marks Page 12 of 87

13 4 a What is peephole optimization? Describe different characteristics of peephole optimization 6 b Write and Explain an algorithm for common sub expression elimination 6 5 a Discuss different issues in design of code generator 6 b Represent the basic block by using DAG with suitable example 7 6 a Explain in detail three address statements using quadruple and triple 6 b Write short note on Back patching mechanism 7 Model Question Paper Subject: Compiler Construction (MCQ) Note: All questions are compulsory. Maximum Marks: The current token being scanned in the input is frequently referred to as the. A Terminal symbol B non-terminal symbol C lookahead symbol D Symbol 2. The error can be such as an arithmetic expression with unbalanced parenthesis. A lexical B Syntactic C Symantic D Logical 3. A lexical analysis can detect error like. A Missing semicolon B 1-value required C Type mismatch D None of the above 4. reduces running time of a program. A Call by value B Call by reference C Call by copy restore D Call by name. 5. language allows data to be allocated under program control. Page 13 of 87

14 A C B C++ C Pascal D java. 6. A uses a symbol table to keep track of scope and binding information about names. A Linker B loader C Compiler D Assembler 7. upper-case letters late in the alphabet, such as x,y,z represent. A Terminals B Non-terminals C Grammer symbols D strings of terminals 8. The minimum dfa for (a b)*a(a b)*a will have states. A 2 B 3 C 4 D None of the above. 9. A compiler generates. A Executable code B Relocatable code C both D None of the above. 10. A is a sequence of characters in the source program that matches the pattern for a token. A Token B Pattern C lexeme D None of the above 11. To speed up the lexical analyzer, two-buffer scheme use the to mark the buffer end. A Sentinels B eof C Null D ' \0 ' 12. i) Every token must have an attribute value. ii) Lexical analyzer is called by parser. Which of the above is/are false? A i only B ii only C Both D Neither I or ii 13. i) Regular expressions are used for specifying the tokens in lexical analysis. ii) Finite automata is used for implementing regular expressions. Which of above is/are true? A i only B ii only C neither D Both 14. The table is accessed in every phases of a compiler. A literal B Parse C Symbol D Hash 15. Errors found during compilation are called as errors. Page 14 of 87

15 A Dynamic B Static C Semantic D None of the above 16. What are the stages in the compilation process? A Feasibility study, system design, and testing 17. What is a compiler? B Implementation and documentation C Lexical analysis, syntax analysis, and code generation D None of the above A A compiler does a conversion line by line as the program is run. B A compiler converts the whole of a higher level program code into machine code in one step. 18. What is the first stage in program development? C compiler is a general purpose language providing very efficient execution. D None of the above A Specification and design 19. What is system analysis? A The design of the screen the user will see and use to enter or display data B System analysis C Testing D None of the above B System analysis defines the format and type of data the program will use. C System analysis involves creating a formal model of the problem to be solved. D None of the above 20. A scanner reads a stream of characters and puts them together into some meaningful (with respect to the source language) units called. A String B Variable C Lexeme D Token 21. Code optimization can be done: A After semantic analyzing - performed on a parse tree B After intermediate code generation - performed on a intermediate code C After code generation - performed on a target code. D All of the above. 22. A of a string is a substring that matches the right side of a production and whose reduction to the non-terminal on the left side of the production represents one step along the reverse of a rightmost derivation. Page 15 of 87

16 A Prefix B Suffix C Handle D State 23. can be used to generate code for Boolean expression in one pass. A Back patching B Syntax tree C Declaration D Overall 24. de allocation requires cooperation between the user program and the run time package. A Explicit B Implicit C Controlled D No controlled 25. A declaration in a language is a construct that associates information with a name. A Semantic B Syntactic C Lexical D Procedural 26. The parsing table of LR parser has parts. A 2 B 3 C 5 D Consider the translation scheme shown below: S--> tr, r--> +t {printf( +");} r a T --> num {print (num.val); } Here num is a token that represents an integer and nom. Val represents the corresponding integer value for an input string. A B C D Which of the following is not characteristic of peephole optimization? A Flow of control optimization B Use of machine idioms C Algebric simplifications D None of the above 29. Which of the following is advantage of transformation on basic blocks? A It increases speed of execution B It is useful for improving quality of code. 30. The input to yacc compiler is. C Both a & b. D None of the above A Lex specification B Yacc specification C C program D Target program 31. is the LALR parser generator. Page 16 of 87

17 A Lex B Yacc C Syntax analyzer D Loader 32. In programming language semantic, the term environment refers to a function that maps a to a storage location. A Name B Body C Function D Procedure 33. Control stack is used to keep track of live. A Procedure activation B Function activation C Program activation D Declaration 34. A graph representation of three address statement is A Flow chart B Structure chart C Flow graph D None of the above 35. exists if the last reference occurs before de allocation. A Dangling reference B Garbage C Local correction D Loader 36. A shift reduces parser performs reductions in the reverse order specified by a left-most derivation: A False B True C None of these 37. is intermediate in power and cost between the other two. A Look ahead LR B Simple LR C Canonical LR D YACC 38. In static allocation, data structure cannot be created dynamically, since there is no mechanism for allocation at runtime. A static B Storage C Heap D Stack 39.a) parser generator 1)code optimization b) scanner generation 2)code generation c) data-flow engines 3) syntax analysis 4) lexical analysis A A-4, b-3, c-1 B A-3, b-4,c-2 C A-3,b-4,c-1 D A-3, b-2, c Which of the following statement is false about basic blocks? Page 17 of 87

18 A First statement is leader B Any statement that is the target of conditional or unconditional go to is leader 41. In labeling algorithm labeling can be done by C Both a & b D None of the above A Visiting nodes in top-down order B Visiting nodes in bottom-up order C Both a & b D None of the above 42. Synthesized attributes can be easily simulated by a A LL grammar B Ambiguous grammar C LR grammar D None of the above 43. is the most powerful & the most expensive A Simple LR B Canonical LR C Look ahead LR D Predictive parser 44. A transformation of a program is called if it can be performed by looking only at the statements in a basic block. A Global B Local C Regular D Irregular 45. A variable is live at a point in a program if its value can be used. A Frequently B currently C subsequently D Previously 46. Advantage of copy propagation is that it often turns the copy statement into. A live code B restore C dead code D usable code 47. moves code outside a loop. A Induction motion B Reduction C Compaction D Code motion replaces an expensive operation by a cheaper one such as a multiplication by an addition A Code motion B Compaction C Reduction in strength D Induction Page 18 of 87

19 49. When there are two or more induction variables in a loop, it may be possible to get rid of all by the process of. A Induction variable elimination B Code migration C Code motion D Compaction 50. We say node d of a flow graph node n, if every path from the initial node of the flow graph to n goes through d. A Migrates B Dominates C Captures D Acquires Assignments List of experiments/assignments to meet the requirements of the syllabus Assignment 1 Assignment Title Batch I CO308.1 Remove white spaces (space, tab) and comments from input and construct the symbol table for tokens and attributes. Batch II Batch III Batch IV Design and implement program for symbol table generation Write a program to implement data structure of assembly program Write program which consider input as assembly program and to generate a table for the symbols Assignment 2 Assignment Title CO308.2 Batch I Batch II Batch III Batch IV Eliminate Left Recursion from given input grammar. Design and implement LEX tools Design and implement YACC tools Design and implement LEX tools and its input specification Page 19 of 87

20 Assignment 3 Assignment Title CO308.3 Batch I Left factor the given input grammar to remove the ambiguity. Batch II Implement a program for Bottom up parsing of given input grammar. Batch III Implement a program for Top-down parsing of given input grammar. Batch IV Write a program for LR, SLR and LALR parsers of given input grammar. Assignment 4 Assignment Title CO308.4 Batch I Batch II Batch III Batch IV Write a program for S attributed definitions Write a program for L attributed definitions Construct syntax tree by using C language Implement a program for inherited attributes in syntax directed definitions Assignment 5 Assignment Title Batch I Batch II Batch III CO308.5 Write a program for storage allocation strategies in run time environments Implement program for dynamic storage allocations With the help of program demonstrate parameter passing mechanism Page 20 of 87

21 Batch IV Write program to implement token generation Assignment 6 Assignment Title CO308.5 Batch I Batch II Batch III Batch IV Write a program for intermediate languages Implement program for Boolean expressions With the help of program demonstrate back patching mechanism Write program to implement procedure calls Assignment 7 Assignment Title CO308.6 Batch I Batch II Batch III Batch IV Design a code generator using C language Implement program for flow graphs Construct register allocation strategy using object oriented programming Write program to implement DAG Assignment 8 Assignment Title CO308.6 Batch I Batch II Batch III Batch IV Write a program for peephole optimization techniques Demonstrate code improving transformation by using C language With the help of program demonstrate data flow analysis algorithm Write program to implement loops in flow graphs Page 21 of 87

22 Course Plan Course Code CS309 Course Operating Systems-II Prepared by Ms.P K Akulwar, Mr. M P Gaikwad Date 3/11/2017 Prerequisites This course requires the student to know about the basic concepts of UNIX operating systems, System calls, Assembly language & different types of signals related to UNIX. Course Outcomes At the end of the course the students should be able to: CO309.1 Explain 4 UNIX operating system kernel architecture & buffer cache management algorithms. CO309.2 Describe 2 internal file system organizations and related algorithms in UNIX. CO309.3 CO309.4 CO309.5 Write 6 various system calls for UNIX file system Discuss 2 process structure, creation and management in UNIX Demonstrate 3 architecture and explain algorithms of process scheduling. CO309.6 Mapping of COs with POs Discuss 2 memory management concepts, I/O subsystem architecture & algorithms COs POs a b c d e f g h i j k l m CO CO CO CO Page 22 of 87

23 CO CO Course Contents Unit Operating Systems-II of Hours 1. Introduction & The Buffer Cache General Overview of the System - History, System Structure, User Perspective, Operating System Services, Assumption About Hardware, Introduction to the KERNEL - Architecture of UNIX OS, Introduction to system concepts, Kernel Data Structure, System Administration. 10 The Buffer Cache Buffer headers, structure of the buffer pool, scenarios for retrieval of a buffer, reading and writing disk blocks, advantages and disadvantages of cache. 2. Internal Representation of Files 8 I-nodes, structure of the regular file, directories, conversion of a pathname to i-node, super block, i-node Experiment to a new file, allocation of disk blocks, other file types. 3. System calls for the file System 6 Open, Read, write, File and Record Locking, Adjusting the position of FILE I/O-LSEEK, Close, File Creation, Creation of Special File, Change Directory and Change Root, Change Owner and Change Mode, Stat and Fstat, Pipes, Dup, Mounting and Un-mounting file systems, Link, Unlink, File System Abstractions, File system maintenance. 4. The Structure of process 8 Process states and transitions, layout of system memory, the context of a process, Saving context of a process, manipulation of the process Page 23 of 87

24 address space. 5. Process Control & Scheduling 8 Process creation, signals, process termination, awaiting process termination, invoking other programs, the user id of a process, the shell, System Boot and the Init process. Process Scheduling and Time Process Scheduling, system call for time, clock. 6. Memory management & The I/O Subsystem 8 Reference Books: Swapping, Demand paging, a hybrid system with demand paging and swapping. The I/O Subsystem Driver interfaces, disk drives, terminal drivers, Streams. Sr. Title of Book Author Publisher/Edition Topics 1 The design of UNIX Operating System. 2 Linux System Programming Robert Love, Publisher 3 Unix concepts and administration. Maurice J. Bach 3 rd edition. PHI All Robert Love SPD O REILLY 1 Sumitabha Das 3rd Edition. TMGH 1 Evaluation scheme Examination Scheme Theory Term Work OE Total Max. Marks Contact Hours/ week 4 -- Page 24 of 87

25 Scheme of Marks Section Unit Title Marks I 1 Introduction & The Buffer Cache 16 2 Internal Representation of Files 16 3 System calls for the file System 16 II 4 The Structure of process 16 5 Process Control & Scheduling 16 6 Memory management & The I/O Subsystem 20 Weightage may differ Course Unitization CO Evaluation Notes CO309.1 CAT 1 All Questions compulsory CO309.2 CO309.3 CAT 2 All Questions compulsory CO309.4 CO309.5 CO309.6 CAT 3 All Questions compulsory Unit wise Lesson Plan Unit No Unit Title Planned Hrs. 1 Introduction & The Buffer Cache 10 Lesson schedule Page 25 of 87

26 Class Details to be covered 1 General Overview of the System History, System Structure, User Perspective. 2 Operating System Services, Assumption About Hardware. 3 Introduction to the KERNEL - Architecture of UNIX OS. 4 Introduction to system concepts, Kernel Data Structure. 5 System Administration, The Buffer Cache. 6 Buffer headers, structure of the buffer pool. 7 Scenarios for retrieval of a buffer. 8 Reading and writing disk blocks. 9 Advantages of cache. 10 Disadvantages of cache Review Questions Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Draw a neat diagram & explain the architecture of UNIX system in detail. Explain user perspective of the UNIX systems. What are the different types of operating system services? What are the different assumptions about the hardware with respect to UNIX systems? Draw & explain a block diagram of system kernel. Explain file system layout with a neat diagram. Explain system administration process. Draw a neat diagram & explain the buffer header in detail. CO309.1 Page 26 of 87

27 Q9 Q10 Q11 Q12 Q13 Explain structure of the buffer pool. What are the different scenarios for retrieval of a buffer? Explain algorithm for reading & writing disk block. Explain algorithm for block read ahead. List out different advantages & disadvantages of cache. Unit No Unit Title Planned Hrs. 2 Internal Representation of Files 8 Lesson schedule Class Details to be covered 1 I-nodes 2 Structure of the regular file 3 Directories, conversion of a pathname to i-node 4 Super block 5 i-node experiment to a new file, 6 Allocation of disk blocks 7 Other file types. 8 Represent a super block & i-node experiment to a new file. Page 27 of 87

28 Review Questions Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Define INODE & explain algorithm for allocation of In-Core Inodes. Explain an algorithm for releasing an Inode. Draw & explain direct & indirect blocks in inode. Explain algorithm for conversion of a path name to an inode. List different types of fields in a super block. Explain an algorithm for assigning new inodes & algorithm for freeing inode. Explain race condition in assigning inodes Explain an algorithm for allocating disk block. CO309.2 Unit No Unit Title Planned Hrs. 3 System calls for the file System 6 Lesson schedule Class Details to be covered 1 System calls for the file System, Open, Read, write, 2 Adjusting the position of FILE I/O-LSEEK, Close, File Creation, Creation of Special File. 3 Change Directory and Change Root, Change Owner and Change Mode. 4 Stat and Fstat, Pipes, Dup, Mounting and Un-mounting file systems. Page 28 of 87

29 5 Link, Unlink, File and Record Locking File System Abstractions, 6 File system maintenance. Review Questions Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10 Q11 Q12 Q13 Explain an algorithm for opening & reading a file. Explain a reader & writer process. Write a program with Lseek system call. Explain an algorithm for creating a file. Explain an algorithm for making a new node. Explain an algorithm for changing current directory of a file. Explain stat & fstat. Explain an algorithm for creation of unnamed pipes. Explain an algorithm for reading & writing a pipe & reading & writing a named pipe. Write a C program illustrating Dup. Explain mounting & unmounting file systems with algorithms. Explain an algorithm for linking & unlinking files. Explain deadlock scenario for linking & unlinking files. CO309.3 Unit No Unit Title Planned Hrs. 4 The Structure of process 8 Lesson schedule Page 29 of 87

30 Class Details to be covered 1 The Structure of process 2 Process states and transitions 3 layout of system memory 4 the context of a process 5 Saving context of a process 6 Manipulation of the process address space 8 Mapping of virtual addresses to physical addresses 9 System call interface with an algorithm Review Questions Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Draw & explain process state transition diagram. Explain process & regions with respect to layout of system memory. Explain mapping of virtual addresses to physical addresses. Explain how user mode is changed to kernel mode? Explain different components of the context of a process. Explain saving the context of a process. Explain algorithm for handling Interrupts. Explain how manipulation of the process address space is done? CO309.4 Unit No Unit Title Planned Hrs. 5 Process Control & Scheduling 6 Page 30 of 87

31 Lesson schedule Class Details to be covered 1 Process Control & Scheduling 2 Process creation, signals, process termination 3 Awaiting process termination, invoking other programs 4 The user id of a process 5 The shell 6 System Boot and the Init process. 7 Process Scheduling and Time 8 System call for time, clock Review Questions 1 Explain the sequence of process creation. 2 Explain algorithm for fork. 3 List all 19 signals in the UNIX System V. 4 Explain algorithm for handling signals. 5 Explain algorithm for exit, wait and exec. CO Explain the user id of a process. 7 Explain the concept of Shell. 8 Explain system boot & init process. 9 Explain algorithm for process scheduling. Page 31 of 87

32 10 Explain different scheduling parameters. 11 Draw & explain how a process moves on a priority queue. 12 Explain system calls for time. 13 Explain the functions of clock interrupt. 14 Write & explain program using alarm call. 15 Explain algorithm for clock handler. Unit No Unit Title Planned Hrs. 6 Memory management & The I/O Subsystem 8 Lesson schedule Class Details to be covered 1 Memory management & The I/O Subsystem 2 Swapping 3 Demand paging 4 A hybrid system with demand paging 5 Swapping. 6 The I/O Subsystem 7 Driver interfaces 8 Disk drives, terminal drivers, Streams Review Questions Q1 Q2 Q3 Explain algorithm for allocating space from maps. Explain how allocation of swap space is done. Explain mapping of virtual addresses to physical addresses. CO309.6 Page 32 of 87

33 Q4 Q5 Q6 Q7 Q8 Q9 Q10 Q11 Q12 Q13 Q14 Q15 Explain why a process is swapped out. Explain in short what demand paging is? Explain saving the context of a process. Explain the concept of page aging. Explain the concept of page fault. Explain what hybrid system with swapping & demand paging is? Explain algorithm for opening a device. Explain algorithm for closing a device. Write a program for reading disk data using block & raw interface. List different function of line discipline. Explain algorithm for writing data to a terminal. Explain the concept of stream. Model Question Paper Course Title : Operating Systems-II Duration 3 Hours Marks: 100 Instructions: 1] Attempt any three questions from each section. 2] Figures to the right indicate full marks. Section-I 1 a Explain the algorithm when the process opens the file Letc/ passwd to get its Inode. Marks 8 b If the super block free Inode list is empty & remembered Inode are 470. Explain the steps to fill the superblock free Inode list. 8 Page 33 of 87

34 2 a Write system call & example to create unnamed pipe. What is the inode reference count value when pipe was opened initially? Give reason for the same. 8 b Give & explain the syntax for the month system call. List the different entries from the mount table. 7 3 a Assume that a disk block contains 1024 bytes & there are 5 direct blocks & two single indirect blocks. Find the byte capacity of a file. 8 b Give the structure of buffer Header. Explain different conditions of status field? 7 4 Write short note (any three): [3*6] a. List the scenarios for retrieval of buffer & explain any one with example. b. Algorithm for releasing buffer. c. Block diagram of UNIX system kernel. d. Change directory of & change root. Section-II Marks 5 a Draw & explain complete set of process state & transitions. 8 b List the sequence of operation performed by forces system call. Explain in brief. 8 6 a Explain system boot & Init process. 8 b List the functions of clock interrupt handler. Explain each in brief. 7 7 a Explain malloc algorithm. 8 b Explain algorithm for opening device? 7 8 Write short note (any three): [3*6] a. Terminal drivers. b. Validity page fault handler c. Signals. Page 34 of 87

35 d. Attaching region to a process. Practical/ Assignments: Expt. Brief description about the experiment 1 To study the system structure of UNIX operating system 2 Study and execution of basic commands of UNIX 3 Implementation of file copy program by using different file system calls Use the previous programs (sr.no. 3 s) executable code to implement file copy program using parent and child processes. Study & Demonstration of user buffer I / O by writing and reading, to and from a file. (Use C file handling functions). Study and demonstration of Advanced file I/O. Write a simple program that uses mmap() to print a file chosen by the user to standard output. Study & Demonstration of Unix Process Management. From creation to termination. Write a program to implement two processes reading and writing to the same file simultaneously. Study & demonstration of the File and Directory Management. Write a program to change current working directory and display the inode details for each file in the new directory Study & demonstration of Signals. Write a simple program to show the handling of signals practically 10 Study & Demonstration of Time, Sleep and Clock Management. 11 Study of boot loader like Grub 12 Implementation of system call for UNIX/Linux. Page 35 of 87

36 Course Plan Course Code Course Database Engineering Prepared by Dr. Bhuvaneshwari Melinamath & Mr. Vinayak. N. Malavade. Date 03/11/2017 Pre-requisites This course requires the student to know about the basic concepts in database and object oriented programming(java) Course Outcomes At the end of the course the students should be able to: CO309.1 CO309.2 CO309.3 CO309.4 CO309.5 CO309.6 Describe 1 Fundamental Concepts and algorithms related to database. Demonstrate 2 the concepts of DBMS using SQL. Apply 3 normalization techniques to maintain the consistency. Describe 2 different types of indexing and hashing techniques. Explain 5 the various techniques of concurrency control. Identify 4 the reasons for system crash and recovery methodologies Mapping of COs with POs POs a b c d e f g h i j k l m COs CO CO CO CO CO CO Mild correlation 2 Moderate correlation 3 Strong correlation Page 36 of 87

37 Course Contents Unit Title of Hours 1. Unit 1: Introduction to databases [Text Book- 1 & 3 ] 1.1 Introduction 1.2 Traditional File based Systems 1.3 Database Approach 1.4 Roles in Database Environment 1.5 History of Database management systems 1.6 Advantages and Disadvantages of DBMS s. 1.7 Structure of Relational Databases 1.8 Database Schema 1.9 Keys 1.10 Schema Diagram 1.11 Relational Query Languages Relational Operations 2. Unit 2: Structured Query Language (SQL) [Text Book -2 & 3] 2.1 Introduction to SQL 2.2 Data Definition Commands 2.3 Data manipulation Commands 2.4 Queries 2.5 Advanced data management commands 2.6 More complex queries and SQL functions 08 Hours 08 Hours 3 Unit 3: Normalization [Text Book 1] 3.1 The purposes of Normalization 3.2 Data Redundancies and Update Anomalies 3.3 Functional Dependencies 3.4 The Process of Normalization 3.5 First Normal Form 3.6 Second Normal Form 3.7 Third Normal Form 3.8 Boyce-Codd Normal Form 3.9 Fourth Normal Form 3.10 Fifth Normal Form 4 Data Storage & Indexing [Text Book -3] 4.1 File Organization 4.2 Organization of records in File 06 Hours 07 Hours Page 37 of 87

38 4.3 Data Dictionary Storage 4.4 Database Buffer 4.5 Basic Concepts indexing & hashing 4.6 Ordered Indices 4.7 Multiple-Key Access 4.9 Static Hashing 4.10 Dynamic Hashing 4.11 Bitmap Indices 4.12 Index Definition in SQL 5 Transaction Management & Concurrency Control [Text Book 2 & 3] 5.1 What is a Transaction? 5.2 Concurrency Control 5.3 Concurrency Control with Locking Methods 5.4 Concurrency Control with Times tamping Methods 5.5 Concurrency Control with Optimistic Methods 6 Recovery System [Text Book-3] 6.1 Failure Classification 6.2 Storage 6.3 Recovery & atomicity 6.4 Recovery Algorithm 6.5 Buffer Management 6.6 Failure with loss of non- volatile Storage 10 Hours 06Hours Reference Books: Sr. Title of Book Author Publisher/Edition Topics 1 Database Systems- A practical approach to Design, Implementation and Management Thomas Connolly, Carolyn Begg Pearson Education, 3 rd Edition 1,3 2 Database Systems- Design, Implementation and Management Rob and Coronel 3 Database System Concepts A Silberschatz, H. F. Korth, S. Sudarshan Thomson Course Technology, 5 th edition Mc Graw Hill Education, 6 th edition 2,5 1,2,4,5,6 Page 38 of 87

39 Evaluation scheme Examination Scheme Theory Term Work POE Total Max. Marks Contact Hours/ week Scheme of Marks Section Unit Title Marks 1 Introduction to Databases 20 I 2 Structured Query Language 15 3 Normalization 15 4 Data Storage & Indexing 20 II 5 Transaction Management & Concurrency Control 15 6 Recovery System 15 Course Unitization Section Unit Course Outcomes of Questions in Title CAT-I CAT-II CAT-III 1 Introduction to Databases CO questions I 2 Structured Query Language CO Normalization CO Data Storage & Indexing CO309.4 questions II 5 Transaction CO questions Management & Concurrency Control 6 Recovery System CO309.6 Page 39 of 87

40 Unit wise Lesson Plan Unit No 1 Unit Title Introduction to Databases Planned Hrs. Lesson schedule Class Details to be covered 1 Introduction 2 Traditional File based Systems, Database Approach 3 Roles in Database Environment 4 History of Database management systems 5 Advantages and Disadvantages of DBMS s. 6 Structure of Relational Databases 7 Database Schema, Keys, Schema Diagram 8 Relational Query Languages, Relational Operations 08 Review Questions Q1 Explain the introduction to the database system. CO309.1 Q2 Describe different types of real time relational database systems. CO309.1 Q3 What are advantages and disadvantages of DBMS? CO309.1 Q4 What is key in database? explain what are different types of keys? CO309.1 Q5 Explain roles in database management? CO309.1 Q6 What are relational query languages? CO309.1 Q7 Explain Relational Operations. CO309.1 Unit Class 2 Unit Title Structured Query Language (SQL) Planned Hrs Lesson schedule Details to be covered 1 Introduction to SQL 2 DDL & DML 3 Data Definition Commands 4 Data manipulation Commands 5 Queries 6 Advanced data management commands 7 More complex queries 08 Page 40 of 87

41 8 SQL functions Review Questions Q1 What are functions of SQL? CO9.2 Q2 What is DDL and DML? CO9.2 Q3 Write different queries fired on hospital database management system. CO9.2 Q4 What are DDL and DML commands? CO9.2 Q5 What are advanced data management commands? CO9.2 Unit 3 Unit Title Normalization Planned Hrs 06 Lesson schedule Class Details to be covered 1 The purposes of Normalization, data Redundancies and Update Anomalies 2 Functional Dependencies, the Process of Normalization 3 First normal form, second normal form 4 Third normal form 5 Boyce-codd normal form 6 Fourth normal form, Fifth normal form Review Questions Q1 Explain the purpose of normalization in detail. CO9.3 Q2 What are different dependencies? CO9.3 Q3 Explain all types of normal form. CO9.3 Q4 What is difference between first normal form and second normal form? CO9.3 Q5 Explain concept of data redundancies. CO9.3 Unit 4 Unit Title Data Storage and Indexing Planned Hrs Lesson schedule Class Details to be covered 1 File organization 07 Page 41 of 87

42 2 File Organization, Organization of records in File 3 Data Dictionary Storage, Database Buffer 4 Basic Concepts indexing & hashing, Ordered Indices 5 Multiple-Key Access, Static Hashing 6 Dynamic Hashing, Bitmap Indices 7 Index Definition in SQL Review Questions Q1 Explain what is file organization system? CO9.4 Q2 Write a note on database buffer CO9.4 Q3 What is data dictionary storage? CO9.4 Q4 Explain in detail the indexing technique. CO9.4 Q5 What is Basic Concepts indexing & hashing? CO9.4 Q6 Write a note on Dynamic Hashing and Bitmap Indices. CO9.4 Unit No 5 Unit Title Transaction Management And Concurrency Control Lesson schedule Class Details to be covered 1 What is a Transaction 2 Concept of Concurrency Control 3 Need of concurrency control 4 Different methods of concurrency control 5 Concurrency Control with Locking Methods 6 Algorithm for Concurrency Control with Locking Methods 7 Concurrency Control with Times tamping Methods 8 Algorithm for Concurrency Control with Times tamping Methods 9 Concurrency Control with Optimistic Methods 10 Algorithm for Concurrency Control with Optimistic Methods Planned Hrs. 10 Review Questions Q1 Explain Algorithm for Concurrency Control with Optimistic Methods CO9.5 Q2 Explain Concept of Concurrency Control CO9.5 Q3 Explain Different methods of concurrency control CO9.5 Unit No 6 Unit Title Recovery System Planned Hrs. Lesson schedule Class Details to be covered 1 Failure Classification 06 Page 42 of 87

43 2 Storage 3 Recovery & atomicity 4 Recovery Algorithm 5 Buffer Management 6 Failure with loss of non- volatile Storage Review Questions Q1 Explain what is failure and its types? CO9.6 Q2 Explain what is buffer management? CO9.6 Q3 Write short note on crash recovery process. CO9.6 Model Question Paper Course Title : Database Engineering Duration 03 Hours Max. Marks Instructions: Question 4 and 5 are compulsory. Attempt any two questions from each Section Figures to the right indicate full marks. Assume suitable data if necessary Section-I 1 a Explain the distinction among the terms. i) Primary Key ii) Candidate Key iii) Super Key iv) Foreign Key Marks 8 b Distinguish database system versus file system. 8 2 a What do you understand by domain and tuple relational calculus? 8 Explain with examples. b Discuss the concept of generalization, aggregation and specialization. 8 3 a compute the closure of the following set F of function for relational schema R=(A'B'C'D'E) A->BC CD->E B->D E->A List the candidate keys for R 4 b using the functional dependencies of above example compute the canonical cover F 4 Page 43 of 87

44 c Explain about Sequential file organization with an example 6 4 Write a short note on (any three) t18l 18 a) Reducing E'R diagram to tables b) sql c) Data Dictionary Storage d) Normalization using Functional Dependency Section-II Marks 5 a Explain data structures used for dynamic hashing' 10 b What are the techniques used in searching record. 8 6 a Explain query evaluation using pipelining 8 b How to handle failure during data transfer 8 7 a What is log? How it is used for recovery. 8 b Explain timestamp ordering protocol 8 8 a Explain basis of evaluation of indices. 8 b Explain crash recovery system in detail. 8 Assignments List of experiments/assignments to meet the requirements of the syllabus Assignment Titles 1 Draw an E-R Diagram for any organization like Insurance Company, Library systems, College Management systems, Hospital Management systems etc. 2 Convert the Above mentioned E-R Diagram in Relational Tables 3 Installation & Demonstration of DBMS like My Sql, Oracle, IBM-DB2 etc., Draw the architectures of installed DBMS. 4 Write a program of Database connectivity with any object oriented language like Java, C++ etc. 5 Use DDL Queries to create, alter & drop Tables 6 Use DML Queries to insert, delete, update & display records of the tables. 7 Create tables using primary key & foreign key with all constraints. 8 Display the records using group by, order by, having and between clauses. 9 Display the records using Aggregate functions 10 Create Indexes & Views for the table. 11 Display the results of union, intersection, set difference, Cartesian product and Join operations of two different tables 12 Write a program to implement Static Hashing. Page 44 of 87

45 13 Write a program to implement to Dense Index. 14 View the contents of data dictionary from the DBMS and write the contents. 15 Find the FC and F+ of relation schema r (A, B, C, G, H, I) and F= {A _B, A _ C, CG_H, CG_I, B_H}. Page 45 of 87

46 Course Plan Course Storage Networks Course Code Examination Scheme Theory Term Work Oral Total Max. Marks Contact Hours/ week Prepared by Mr. P.S.Khot and Mr. G. A.Walikar Date : 07/11/17 Prerequisites This course requires the student to know about the Basic concepts Computer Networks, Database System Knowledge about File systems & Data structures, algorithms. Course Outcomes At the end of the course the students should be able to CO311.1 CO311.2 CO311.3 CO311.4 CO311.5 CO311.6 Explain 2 key challenges in information management Describe 2 Storage system architecture and data protection Illustrate 3 Storage Area Network- concepts, components and protocols Discuss 3 information about Network Attached Storage and concept of storage virtualization Apply 4 knowledge for business Continuity, Backup and Recovery Summarize 5 need of Replication, Replication techniques and Storage Security Page 46 of 87

47 Mapping of COs with POs POs COs a b c d e f g h i j k l m CO CO CO CO CO CO Mild correlation 2 Moderate correlation 3 Strong correlation Course Contents Unit Title of Hours Introduction to information storage: Evolution of storage technology and architecture, Data Center Infrastructure, Key challenges in Managing Information, Information Lifecycle. Components of Storage System Environment, Disk Drive Components, Disk Drive Performance, Laws governing disk Performance, Logical Components of Host, Application requirements and disk performance. 1 Intelligent Storage System, Direct Attached Storage and Data Protection: Components of Intelligent Storage System, Intelligent Storage Array. Direct Attached Storage types, benefits and limitation, Disk drive Interface, Introduction to parallel SCSI, SCSI command model. Data Protection (RAID):- Implementation of RAID, RAID array components, RAID levels, Comparison, RAID,Impact on disk 7 Page 47 of 87

48 performance, Hot Spares Storage Area Network: SAN Evolution, Components of SAN, Fibre Channel Protocol Stack- Links, ports and topologies, FC-0: Cables, plugs and Signal Encoding, FC-1: 8b/10b encoding, ordered sets and link control protocol, FC-2: data Transfer, FC-3: common Services, FC-4 and ULPs, Fibre Channel SAN point-to- point topology, Fabric topology, Arbitrated loop topology, Hardware components of Fibre channel SAN. IP SAN iscsi-components, connectivity, topology, protocol stack, discovery, names, session, PDU. Network -Attached Storage: Local File Systems, Network File System and File Servers, Benefits of NAS, NAS file I/O, Components of NAS, NAS Implementations, NAS File sharing Protocols, NAS I/O operations, Factors affecting NAS Performance. Case Study: Direct Access File System, Shared Disk File System Comparison: NAS, Fibre Channel SAN and iscsi SAN Storage Virtualization:Introduction, Virtualization in the I/O path, Limitations and requirements, Definition of Storage Virtualization, Implementation considerations, Storage Virtualization on block level, File level Virtualization, Storage Virtualization on various levels of the storage network, Symmetric and Asymmetric Storage Virtualization. Business Continuity, Backup and Recovery: Introduction, InformationAvailability, Cause of Information unavailability, Measuring information Availability, Consequences of down time, BC terminology, BC planning life cycle, Failure Analysis, BC Technology Solutions, Backup Purpose, Backup Considerations, Backup Granularity, Recovery Considerations, Backup Methods, Backup Process, Backup and Restore Operations, Backup Topology, Backup in NAS environment, Backup Technologies Replication and storage security: Local Replication, Uses of Local Replicas, Data Consistency, Local Replication Technologies, Restore and 6 Page 48 of 87

49 Restart Considerations. Storage Security: Storage Security Framework, Risk Triad, Storage Security Domains, Security Implementations in Storage Networking. Reference Books: Sr. Title of Book Author Publisher/Edition Topics 1 Information Storage and Management G. Somasudaram EMC Education Services (Wiley India Edition) 1,2,3,4,5,6 2 Storage Networks Explained Ulf Troppen, Rainer Erkens, Wolfgang Müller (Wiley India Edition) 3,4 Scheme of Marks Unit Title Marks 1 Introduction to information storage and Storage System Environment 20 2 Storage Area Network 15 3 Network Attached Storage 15 4 Storage Virtualization 20 5 Business Continuity, Backup and Recovery 15 6 Replication and storage security 15 Page 49 of 87

50 Course Unitization Unit Course Outcomes of Questions in Title CAT-I CAT-II CAT III 1 Introduction to information storage and Storage System Environment CO questions Storage Area Network CO questions Network Attached Storage CO questions - 4 Storage Virtualization CO questions - 5 Business Continuity, Backup and Recovery 6 Replication and storage security CO questions CO questions Unit wise Lesson Plan Unit No 1 Unit Title Section I Introduction to information storage Lesson schedule Planned Hrs. : 7 Class Details to be covered 1 Evolution of storage technology and architecture, Data Center Infrastructure, Key challenges in Managing Information 2 Information Lifecycle, Components of Storage System Environment, Disk Drive Page 50 of 87

About the Authors... iii Introduction... xvii. Chapter 1: System Software... 1

About the Authors... iii Introduction... xvii. Chapter 1: System Software... 1 Table of Contents About the Authors... iii Introduction... xvii Chapter 1: System Software... 1 1.1 Concept of System Software... 2 Types of Software Programs... 2 Software Programs and the Computing Machine...

More information

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR / ODD SEMESTER

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR / ODD SEMESTER KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR 2011-2012 / ODD SEMESTER Question Bank Subject Code/Name: CS1005-Unix Internals Year / Sem: IV / VII UNIT I- GENERAL

More information

SHRI ANGALAMMAN COLLEGE OF ENGINEERING AND TECHNOLOGY (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI

SHRI ANGALAMMAN COLLEGE OF ENGINEERING AND TECHNOLOGY (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI SHRI ANGALAMMAN COLLEGE OF ENGINEERING AND TECHNOLOGY (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI 621 105 DEPARTMENT OF COMPUTER SCIENCE AND ENGG. Cs 1005- UNIX INTERNALS UNIT

More information

SYED AMMAL ENGINEERING COLLEGE (An ISO 9001:2008 Certified Institution) Dr. E.M. Abdullah Campus, Ramanathapuram

SYED AMMAL ENGINEERING COLLEGE (An ISO 9001:2008 Certified Institution) Dr. E.M. Abdullah Campus, Ramanathapuram CS6660 COMPILER DESIGN Question Bank UNIT I-INTRODUCTION TO COMPILERS 1. Define compiler. 2. Differentiate compiler and interpreter. 3. What is a language processing system? 4. List four software tools

More information

GUJARAT TECHNOLOGICAL UNIVERSITY

GUJARAT TECHNOLOGICAL UNIVERSITY Type of course: Core GUJARAT TECHNOLOGICAL UNIVERSITY SUBJECT NAME: Compiler Design SUBJECT CODE: 21701 B.E. 7 th SEMESTER Prerequisite: Data Structures and Algorithms, Theory of Computation, Rationale:

More information

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN Course Code : CS0301 Course Title : Compiler Design Semester : V Course Time : July Dec 2011 DAY SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN SECTION

More information

DEPARTMENT OF INFORMATION TECHNOLOGY / COMPUTER SCIENCE AND ENGINEERING UNIT -1-INTRODUCTION TO COMPILERS 2 MARK QUESTIONS

DEPARTMENT OF INFORMATION TECHNOLOGY / COMPUTER SCIENCE AND ENGINEERING UNIT -1-INTRODUCTION TO COMPILERS 2 MARK QUESTIONS BHARATHIDASAN ENGINEERING COLLEGE DEPARTMENT OF INFORMATION TECHNOLOGY / COMPUTER SCIENCE AND ENGINEERING Year & Semester : III & VI Degree & Branch : B.E (CSE) /B.Tech (Information Technology) Subject

More information

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur 603203. DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Year & Semester : III & VI Section : CSE 1 & 2 Subject Code : CS6660 Subject Name : COMPILER

More information

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Subject Name: CS2352 Principles of Compiler Design Year/Sem : III/VI

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Subject Name: CS2352 Principles of Compiler Design Year/Sem : III/VI DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Subject Name: CS2352 Principles of Compiler Design Year/Sem : III/VI UNIT I - LEXICAL ANALYSIS 1. What is the role of Lexical Analyzer? [NOV 2014] 2. Write

More information

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR / EVEN SEMESTER

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR / EVEN SEMESTER KINGS COLLEGE OF ENGINEERING PUNALKULAM DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR 2010-2011 / EVEN SEMESTER SUBJECT CODE\SUBJECT NAME: CS1352 \ PRINCIPLES OF COMPILER DESIGN QUESTION BANK

More information

SYLLABUS UNIT - I UNIT - II UNIT - III UNIT - IV CHAPTER - 1 : INTRODUCTION CHAPTER - 4 : SYNTAX AX-DIRECTED TRANSLATION TION CHAPTER - 7 : STORA

SYLLABUS UNIT - I UNIT - II UNIT - III UNIT - IV CHAPTER - 1 : INTRODUCTION CHAPTER - 4 : SYNTAX AX-DIRECTED TRANSLATION TION CHAPTER - 7 : STORA Contents i SYLLABUS UNIT - I CHAPTER - 1 : INTRODUCTION Programs Related to Compilers. Translation Process, Major Data Structures, Other Issues in Compiler Structure, Boot Strapping and Porting. CHAPTER

More information

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTER SCIENCE AND ENGINEERING COURSE PLAN

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTER SCIENCE AND ENGINEERING COURSE PLAN SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTER SCIENCE AND ENGINEERING COURSE PLAN Course Code : CS1014 Semester: VI Course Title : System Software and Compiler Design Course Time:

More information

VIVA QUESTIONS WITH ANSWERS

VIVA QUESTIONS WITH ANSWERS VIVA QUESTIONS WITH ANSWERS 1. What is a compiler? A compiler is a program that reads a program written in one language the source language and translates it into an equivalent program in another language-the

More information

G.PULLAIH COLLEGE OF ENGINEERING & TECHNOLOGY

G.PULLAIH COLLEGE OF ENGINEERING & TECHNOLOGY G.PULLAI COLLEGE OF ENGINEERING & TECNOLOGY Nandikotkur Road, Kurnool 518002 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Semester VI (2017-2018) COURSE DESCRIPTION Course Code : 15A05601 Course Title

More information

The analysis part breaks up the source program into constituent pieces and creates an intermediate representation of the source program.

The analysis part breaks up the source program into constituent pieces and creates an intermediate representation of the source program. COMPILER DESIGN 1. What is a compiler? A compiler is a program that reads a program written in one language the source language and translates it into an equivalent program in another language-the target

More information

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Compiler Design

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Compiler Design i About the Tutorial A compiler translates the codes written in one language to some other language without changing the meaning of the program. It is also expected that a compiler should make the target

More information

Question Bank. 10CS63:Compiler Design

Question Bank. 10CS63:Compiler Design Question Bank 10CS63:Compiler Design 1.Determine whether the following regular expressions define the same language? (ab)* and a*b* 2.List the properties of an operator grammar 3. Is macro processing a

More information

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTER SCIENCE AND ENGINEERING DEPARTMENT OF CSE COURSE PLAN Course Code : CS0301 Course Title : Compiler Design Semester : V Course Time

More information

Gujarat Technological University Sankalchand Patel College of Engineering, Visnagar B.E. Semester VII (CE) July-Nov Compiler Design (170701)

Gujarat Technological University Sankalchand Patel College of Engineering, Visnagar B.E. Semester VII (CE) July-Nov Compiler Design (170701) Gujarat Technological University Sankalchand Patel College of Engineering, Visnagar B.E. Semester VII (CE) July-Nov 2014 Compiler Design (170701) Question Bank / Assignment Unit 1: INTRODUCTION TO COMPILING

More information

Evaluation Scheme L T P Total Credit Theory Mid Sem Exam

Evaluation Scheme L T P Total Credit Theory Mid Sem Exam DESIGN OF LANGUAGE PROCESSORS Semester II (Computer Engineering) SUB CODE: MECE201 Teaching Scheme (Credits and Hours): Teaching scheme Total Evaluation Scheme L T P Total Credit Theory Mid Sem Exam CIA

More information

GUJARAT TECHNOLOGICAL UNIVERSITY

GUJARAT TECHNOLOGICAL UNIVERSITY Type of course: System Programming GUJARAT TECHNOLOGICAL UNIVERSITY SYSTEM PROGRAMMING SUBJECT CODE: 21508 B.E. 5 th SEMESTER Prerequisite: Data Structures and Operating Systems Rationale: NA Teaching

More information

CST-402(T): Language Processors

CST-402(T): Language Processors CST-402(T): Language Processors Course Outcomes: On successful completion of the course, students will be able to: 1. Exhibit role of various phases of compilation, with understanding of types of grammars

More information

LECTURE NOTES ON COMPILER DESIGN P a g e 2

LECTURE NOTES ON COMPILER DESIGN P a g e 2 LECTURE NOTES ON COMPILER DESIGN P a g e 1 (PCCS4305) COMPILER DESIGN KISHORE KUMAR SAHU SR. LECTURER, DEPARTMENT OF INFORMATION TECHNOLOGY ROLAND INSTITUTE OF TECHNOLOGY, BERHAMPUR LECTURE NOTES ON COMPILER

More information

INSTITUTE OF AERONAUTICAL ENGINEERING (AUTONOMOUS)

INSTITUTE OF AERONAUTICAL ENGINEERING (AUTONOMOUS) Name Code Class Branch INSTITUTE OF AERONAUTICAL ENGINEERING (AUTONOMOUS) Dundigal, Hyderabad - 500 043 Year 0-0 INFORMATION TECHNOLOGY ASSIGNMENT QUESTIONS AUTOMATA AND COMPILER DESIGN A50513 III B. Tech

More information

2068 (I) Attempt all questions.

2068 (I) Attempt all questions. 2068 (I) 1. What do you mean by compiler? How source program analyzed? Explain in brief. 2. Discuss the role of symbol table in compiler design. 3. Convert the regular expression 0 + (1 + 0)* 00 first

More information

PSD3A Principles of Compiler Design Unit : I-V. PSD3A- Principles of Compiler Design

PSD3A Principles of Compiler Design Unit : I-V. PSD3A- Principles of Compiler Design PSD3A Principles of Compiler Design Unit : I-V 1 UNIT I - SYLLABUS Compiler Assembler Language Processing System Phases of Compiler Lexical Analyser Finite Automata NFA DFA Compiler Tools 2 Compiler -

More information

Course Outline Faculty of Computing and Information Technology

Course Outline Faculty of Computing and Information Technology Course Outline Faculty of Computing and Information Technology Title Code Instructor Name Credit Hours Prerequisite Prerequisite Skill/Knowledge/Understanding Category Course Goals Statement of Course

More information

CS606- compiler instruction Solved MCQS From Midterm Papers

CS606- compiler instruction Solved MCQS From Midterm Papers CS606- compiler instruction Solved MCQS From Midterm Papers March 06,2014 MC100401285 Moaaz.pk@gmail.com Mc100401285@gmail.com PSMD01 Final Term MCQ s and Quizzes CS606- compiler instruction If X is a

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 60 20 DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK VI SEMESTER CS6660 COMPILER DESIGN Regulation 20 Academic Year 207 8 Prepared by Ms. S.

More information

KALASALINGAM UNIVERSITY ANAND NAGAR, KRISHNAN KOIL DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING ODD SEMESTER COURSE PLAN

KALASALINGAM UNIVERSITY ANAND NAGAR, KRISHNAN KOIL DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING ODD SEMESTER COURSE PLAN Subject with Code KALASALINGAM UNIVERSITY ANAND NAGAR, KRISHNAN KOIL 626 126 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING ODD SEMESTER 2013-2014 Semester/Branch/Section Credits : 3 COURSE PLAN : Compiler

More information

CS 406/534 Compiler Construction Putting It All Together

CS 406/534 Compiler Construction Putting It All Together CS 406/534 Compiler Construction Putting It All Together Prof. Li Xu Dept. of Computer Science UMass Lowell Fall 2004 Part of the course lecture notes are based on Prof. Keith Cooper, Prof. Ken Kennedy

More information

BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE, Pilani Pilani Campus Instruction Division

BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE, Pilani Pilani Campus Instruction Division SECOND SEMESTER 2015-2016 Course Handout (Part II) Date:23-01-2017 In addition to part I (General Handout for all courses appended to the time table) this portion gives further specific details regarding

More information

QUESTIONS RELATED TO UNIT I, II And III

QUESTIONS RELATED TO UNIT I, II And III QUESTIONS RELATED TO UNIT I, II And III UNIT I 1. Define the role of input buffer in lexical analysis 2. Write regular expression to generate identifiers give examples. 3. Define the elements of production.

More information

INSTITUTE OF AERONAUTICAL ENGINEERING

INSTITUTE OF AERONAUTICAL ENGINEERING INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 00 043 INFORMATION TECHNOLOGY TUTORIAL QUESTION BANK Name AUTOMATA AND COMPILER DESIGN Code A03 Class III B. Tech I Semester Branch

More information

VETRI VINAYAHA COLLEGE OF ENGINEERING AND TECHNOLOGY

VETRI VINAYAHA COLLEGE OF ENGINEERING AND TECHNOLOGY VETRI VINAYAHA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6660 COMPILER DESIGN III year/ VI sem CSE (Regulation 2013) UNIT I -INTRODUCTION TO COMPILER PART A

More information

CJT^jL rafting Cm ompiler

CJT^jL rafting Cm ompiler CJT^jL rafting Cm ompiler ij CHARLES N. FISCHER Computer Sciences University of Wisconsin Madison RON K. CYTRON Computer Science and Engineering Washington University RICHARD J. LeBLANC, Jr. Computer Science

More information

PRINCIPLES OF COMPILER DESIGN

PRINCIPLES OF COMPILER DESIGN PRINCIPLES OF COMPILER DESIGN 2 MARK QUESTIONS WITH ANSWERS UNIT I 1. What is a Complier? A Complier is a program that reads a program written in one language-the source language-and translates it in to

More information

B.C.A DATA BASE MANAGEMENT SYSTEM MODULE SPECIFICATION SHEET. Course Outline

B.C.A DATA BASE MANAGEMENT SYSTEM MODULE SPECIFICATION SHEET. Course Outline B.C.A 2017-18 DATA BASE MANAGEMENT SYSTEM Course Outline MODULE SPECIFICATION SHEET This course introduces the fundamental concepts necessary for designing, using and implementing database systems and

More information

Rajiv GandhiCollegeof Engineering& Technology, Kirumampakkam.Page 1 of 10

Rajiv GandhiCollegeof Engineering& Technology, Kirumampakkam.Page 1 of 10 Rajiv GandhiCollegeof Engineering& Technology, Kirumampakkam.Page 1 of 10 RAJIV GANDHI COLLEGE OF ENGINEERING & TECHNOLOGY, KIRUMAMPAKKAM-607 402 DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING QUESTION BANK

More information

Name of chapter & details

Name of chapter & details Course Title Course Code Compiler Design CE702 Theory : 03 Course Credit Practical : 01 Tutorial : 00 Course Learning Outcomes The objectives of this course are Credits : 04 Improve the theory and practice

More information

Compiler Design. Computer Science & Information Technology (CS) Rank under AIR 100

Compiler Design. Computer Science & Information Technology (CS) Rank under AIR 100 GATE- 2016-17 Postal Correspondence 1 Compiler Design Computer Science & Information Technology (CS) 20 Rank under AIR 100 Postal Correspondence Examination Oriented Theory, Practice Set Key concepts,

More information

Department of Computer Science and Technology

Department of Computer Science and Technology M.Sc. (CA) (2 nd Semester) 040020202 : UNIX Internals and Shell Programming Teaching Schedule Objective: To acquaint the students with the basic internal structure & operations of UNIX operating system,

More information

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad INTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, yderabad - 500 043 COMPUTER CIENCE AND ENGINEERING COURE DECRIPTION FORM Course Title Course Code Regulation Course tructure Course Coordinator

More information

M S Ramaiah Institute of Technology Department of Computer Science And Engineering

M S Ramaiah Institute of Technology Department of Computer Science And Engineering M S Ramaiah Institute of Technology Department of Computer Science And Engineering COURSE DESIGN, DELIVERY AND ASSESMENT Semester: V Course Code: CS513 Course Name: Database systems Course Faculty: Sl#

More information

Unit 2. Unit 3. Unit 4

Unit 2. Unit 3. Unit 4 Course Objectives At the end of the course the student will be able to: 1. Differentiate database systems from traditional file systems by enumerating the features provided by database systems.. 2. Design

More information

Faculty of Electrical Engineering, Mathematics, and Computer Science Delft University of Technology

Faculty of Electrical Engineering, Mathematics, and Computer Science Delft University of Technology Faculty of Electrical Engineering, Mathematics, and Computer Science Delft University of Technology exam Compiler Construction in4020 July 5, 2007 14.00-15.30 This exam (8 pages) consists of 60 True/False

More information

DEPARTMENT OF INFORMATION TECHNOLOGY AUTOMATA AND COMPILER DESIGN. B.Tech-IT, III Year -I Sem

DEPARTMENT OF INFORMATION TECHNOLOGY AUTOMATA AND COMPILER DESIGN. B.Tech-IT, III Year -I Sem DEPARTMENT OF INFORMATION TECHNOLOGY AUTOMATA AND COMPILER DESIGN B.Tech-IT, III Year -I Sem Dr. Smriti Agrawal Assoc. Professor J.B.Institute of Engg & Technology Yenkapally, Moinabad(Mandal) Himathnagar(post),Hydreabad

More information

COMPILER DESIGN LEXICAL ANALYSIS, PARSING

COMPILER DESIGN LEXICAL ANALYSIS, PARSING COMPILER DESIGN LEXICAL ANALYSIS, PARSING 1. Which of the following system program forgoes the production of object code to generate absolute machine code and load it into the Physical main storage location

More information

PRINCIPLES OF COMPILER DESIGN UNIT I INTRODUCTION TO COMPILERS

PRINCIPLES OF COMPILER DESIGN UNIT I INTRODUCTION TO COMPILERS Objective PRINCIPLES OF COMPILER DESIGN UNIT I INTRODUCTION TO COMPILERS Explain what is meant by compiler. Explain how the compiler works. Describe various analysis of the source program. Describe the

More information

Principles of Compiler Construction ( )

Principles of Compiler Construction ( ) Principles of Compiler Construction ( ) Dr Mayer Goldberg September 5, 2016 Contents 1 Course Objectives 1 2 Course Requirements 2 3 Detailed Syllabus 3 4 References 6 Course number: 201-1-2061 Mandatory

More information

Compiler Design Aug 1996

Compiler Design Aug 1996 Aug 1996 Part A 1 a) What are the different phases of a compiler? Explain briefly with the help of a neat diagram. b) For the following Pascal keywords write the state diagram and also write program segments

More information

CS5363 Final Review. cs5363 1

CS5363 Final Review. cs5363 1 CS5363 Final Review cs5363 1 Programming language implementation Programming languages Tools for describing data and algorithms Instructing machines what to do Communicate between computers and programmers

More information

Govt. of Karnataka, Department of Technical Education Diploma in Computer Science Sixth Semester. Contact Hrs / week: 4 Total hrs: 64

Govt. of Karnataka, Department of Technical Education Diploma in Computer Science Sixth Semester. Contact Hrs / week: 4 Total hrs: 64 Govt. of Karnataka, Department of Technical Education Diploma in Computer Science Sixth Semester Subject: Information Storage and Management Contact Hrs / week: 4 Total hrs: 64 Table of Contents Slno Chapters

More information

COURSE: DATA STRUCTURES USING C & C++ CODE: 05BMCAR17161 CREDITS: 05

COURSE: DATA STRUCTURES USING C & C++ CODE: 05BMCAR17161 CREDITS: 05 COURSE: DATA STRUCTURES USING C & C++ CODE: 05BMCAR17161 CREDITS: 05 Unit 1 : LINEAR DATA STRUCTURES Introduction - Abstract Data Types (ADT), Arrays and its representation Structures, Stack, Queue, Circular

More information

Noorul Islam College Of Engineering, Kumaracoil MCA Degree Model Examination (October 2007) 5 th Semester MC1642 UNIX Internals 2 mark Questions

Noorul Islam College Of Engineering, Kumaracoil MCA Degree Model Examination (October 2007) 5 th Semester MC1642 UNIX Internals 2 mark Questions Noorul Islam College Of Engineering, Kumaracoil MCA Degree Model Examination (October 2007) 5 th Semester MC1642 UNIX Internals 2 mark Questions 1. What are the different parts of UNIX system? i. Programs

More information

DADI INSTITUTE OF ENGINEERING & TECHNOLOGY (Approved by A.I.C.T.E., New Delhi & Affiliated to JNTUK, Kakinada)

DADI INSTITUTE OF ENGINEERING & TECHNOLOGY (Approved by A.I.C.T.E., New Delhi & Affiliated to JNTUK, Kakinada) DADI INSTITUTE OF ENGINEERING & TECHNOLOGY (Approved by A.I.C.T.E., New Delhi & Affiliated to JNTUK, Kakinada) NAAC Accredited Institute An ISO 9001:2008, ISO 14001:2004 & OHSAS 18001:2007 Certified Institute.

More information

Principles of Programming Languages [PLP-2015] Detailed Syllabus

Principles of Programming Languages [PLP-2015] Detailed Syllabus Principles of Programming Languages [PLP-2015] Detailed Syllabus This document lists the topics presented along the course. The PDF slides published on the course web page (http://www.di.unipi.it/~andrea/didattica/plp-15/)

More information

Principles of Compiler Construction ( )

Principles of Compiler Construction ( ) Principles of Compiler Construction ( ) Dr Mayer Goldberg October 25, 2017 Contents 1 Course Objectives 1 2 Course Requirements 2 3 Detailed Syllabus 3 4 Computation of grade 6 5 References 6 Course number:

More information

HOLY ANGEL UNIVERSITY COLLEGE OF INFORMATION AND COMMUNICATIONS TECHNOLOGY COMPILER THEORY COURSE SYLLABUS

HOLY ANGEL UNIVERSITY COLLEGE OF INFORMATION AND COMMUNICATIONS TECHNOLOGY COMPILER THEORY COURSE SYLLABUS HOLY ANGEL UNIVERSITY COLLEGE OF INFORMATION AND COMMUNICATIONS TECHNOLOGY COMPILER THEORY COURSE SYLLABUS Code : 6COMTHEORY Prerequisite : 6AMATA Credit : 3 s (3 hours LEC) Year Level: 3 rd year Degree

More information

Compilers for Modern Architectures Course Syllabus, Spring 2015

Compilers for Modern Architectures Course Syllabus, Spring 2015 Compilers for Modern Architectures Course Syllabus, Spring 2015 Instructor: Dr. Rafael Ubal Email: ubal@ece.neu.edu Office: 140 The Fenway, 3rd floor (see detailed directions below) Phone: 617-373-3895

More information

Roll No. :... Invigilator's Signature :. CS/B.Tech(CSE)/SEM-7/CS-701/ LANGUAGE PROCESSOR. Time Allotted : 3 Hours Full Marks : 70

Roll No. :... Invigilator's Signature :. CS/B.Tech(CSE)/SEM-7/CS-701/ LANGUAGE PROCESSOR. Time Allotted : 3 Hours Full Marks : 70 Name : Roll No. :... Invigilator's Signature :. CS/B.Tech(CSE)/SEM-7/CS-701/2011-12 2011 LANGUAGE PROCESSOR Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates

More information

Life Cycle of Source Program - Compiler Design

Life Cycle of Source Program - Compiler Design Life Cycle of Source Program - Compiler Design Vishal Trivedi * Gandhinagar Institute of Technology, Gandhinagar, Gujarat, India E-mail: raja.vishaltrivedi@gmail.com Abstract: This Research paper gives

More information

Question 1. Notes on the Exam. Today. Comp 104: Operating Systems Concepts 11/05/2015. Revision Lectures

Question 1. Notes on the Exam. Today. Comp 104: Operating Systems Concepts 11/05/2015. Revision Lectures Comp 104: Operating Systems Concepts Revision Lectures Today Here are a sample of questions that could appear in the exam Please LET ME KNOW if there are particular subjects you want to know about??? 1

More information

CS 2210 Sample Midterm. 1. Determine if each of the following claims is true (T) or false (F).

CS 2210 Sample Midterm. 1. Determine if each of the following claims is true (T) or false (F). CS 2210 Sample Midterm 1. Determine if each of the following claims is true (T) or false (F). F A language consists of a set of strings, its grammar structure, and a set of operations. (Note: a language

More information

Compiler Design Overview. Compiler Design 1

Compiler Design Overview. Compiler Design 1 Compiler Design Overview Compiler Design 1 Preliminaries Required Basic knowledge of programming languages. Basic knowledge of FSA and CFG. Knowledge of a high programming language for the programming

More information

Logical disks. Bach 2.2.1

Logical disks. Bach 2.2.1 Logical disks Bach 2.2.1 Physical disk is divided into partitions or logical disks Logical disk linear sequence of fixed size, randomly accessible, blocks disk device driver maps underlying physical storage

More information

Notes on the Exam. Question 1. Today. Comp 104:Operating Systems Concepts 11/05/2015. Revision Lectures (separate questions and answers)

Notes on the Exam. Question 1. Today. Comp 104:Operating Systems Concepts 11/05/2015. Revision Lectures (separate questions and answers) Comp 104:Operating Systems Concepts Revision Lectures (separate questions and answers) Today Here are a sample of questions that could appear in the exam Please LET ME KNOW if there are particular subjects

More information

LESSON PLAN (Aug-Dec 2018) Paper Code: MCA Subject: Advance Web Technology. Week Topic Remarks

LESSON PLAN (Aug-Dec 2018) Paper Code: MCA Subject: Advance Web Technology. Week Topic Remarks LESSON PLAN (Aug-Dec 2018) Paper Code: MCA-14-52 Subject: Advance Web Technology Lecture No. Week Topic Remarks 1 Introduction: DNS caching and prefetching, CSS Expressions and performance, 2 Buffering,

More information

INSTITUTE OF AERONAUTICAL ENGINEERING

INSTITUTE OF AERONAUTICAL ENGINEERING INSTITUTE OF AERONAUTICAL ENGINEERING Course Title Course Code Regulation (Autonomous) Dundigal, yderabad - 500 043 COMPUTER SCIENCE AND ENGINEERING COURSE DESCRIPTION FORM DATABASE MANAGEMENT SYSTEMS

More information

Chapter 4. Lexical and Syntax Analysis. Topics. Compilation. Language Implementation. Issues in Lexical and Syntax Analysis.

Chapter 4. Lexical and Syntax Analysis. Topics. Compilation. Language Implementation. Issues in Lexical and Syntax Analysis. Topics Chapter 4 Lexical and Syntax Analysis Introduction Lexical Analysis Syntax Analysis Recursive -Descent Parsing Bottom-Up parsing 2 Language Implementation Compilation There are three possible approaches

More information

4. An interpreter is a program that

4. An interpreter is a program that 1. In an aboslute loading scheme, which loader function is accomplished by programmer? A. Allocation B. LInking C. Reallocation D. both (A) and (B) 2. A compiler program written in a high level language

More information

Comp 204: Computer Systems and Their Implementation. Lecture 25a: Revision Lectures (separate questions and answers)

Comp 204: Computer Systems and Their Implementation. Lecture 25a: Revision Lectures (separate questions and answers) Comp 204: Computer Systems and Their Implementation Lecture 25a: Revision Lectures (separate questions and answers) 1 Today Here are a sample of questions that could appear in the exam Please LET ME KNOW

More information

Faculty of Electrical Engineering, Mathematics, and Computer Science Delft University of Technology

Faculty of Electrical Engineering, Mathematics, and Computer Science Delft University of Technology Faculty of Electrical Engineering, Mathematics, and Computer Science Delft University of Technology exam Compiler Construction in4303 April 9, 2010 14.00-15.30 This exam (6 pages) consists of 52 True/False

More information

MTA Database Administrator Fundamentals Course

MTA Database Administrator Fundamentals Course MTA Database Administrator Fundamentals Course Session 1 Section A: Database Tables Tables Representing Data with Tables SQL Server Management Studio Section B: Database Relationships Flat File Databases

More information

R13 SET Discuss how producer-consumer problem and Dining philosopher s problem are solved using concurrency in ADA.

R13 SET Discuss how producer-consumer problem and Dining philosopher s problem are solved using concurrency in ADA. R13 SET - 1 III B. Tech I Semester Regular Examinations, November - 2015 1 a) What constitutes a programming environment? [3M] b) What mixed-mode assignments are allowed in C and Java? [4M] c) What is

More information

Compiler Design (40-414)

Compiler Design (40-414) Compiler Design (40-414) Main Text Book: Compilers: Principles, Techniques & Tools, 2 nd ed., Aho, Lam, Sethi, and Ullman, 2007 Evaluation: Midterm Exam 35% Final Exam 35% Assignments and Quizzes 10% Project

More information

ADMINISTRATIVE MANAGEMENT COLLEGE

ADMINISTRATIVE MANAGEMENT COLLEGE First Semester ADMINISTRATIVE MANAGEMENT COLLEGE BACHELOR OF COMPUTER APPLICATION COURSE OUTCOME (CO) Problem solving techniques Using C CO 1: Understand the basic concepts of programming, software and

More information

Programme Outcome COURSE OUTCOMES MCA

Programme Outcome COURSE OUTCOMES MCA Programme Outcome PO1: To provide trained human resource for the IT industry. COURSE OUTCOMES MCA MCA 101 : Object Oriented Programming CO1 The students develops a sound approach to problem solving using

More information

Front End. Hwansoo Han

Front End. Hwansoo Han Front nd Hwansoo Han Traditional Two-pass Compiler Source code Front nd IR Back nd Machine code rrors High level functions Recognize legal program, generate correct code (OS & linker can accept) Manage

More information

1. INTRODUCTION TO LANGUAGE PROCESSING The Language Processing System can be represented as shown figure below.

1. INTRODUCTION TO LANGUAGE PROCESSING The Language Processing System can be represented as shown figure below. UNIT I Translator: It is a program that translates one language to another Language. Examples of translator are compiler, assembler, interpreter, linker, loader and preprocessor. Source Code Translator

More information

Deccan Education Society s FERGUSSON COLLEGE, PUNE (AUTONOMOUS) SYLLABUS UNDER AUTONOMY. FIRST YEAR B.Sc. COMPUTER SCIENCE SEMESTER I

Deccan Education Society s FERGUSSON COLLEGE, PUNE (AUTONOMOUS) SYLLABUS UNDER AUTONOMY. FIRST YEAR B.Sc. COMPUTER SCIENCE SEMESTER I Deccan Education Society s FERGUSSON COLLEGE, PUNE (AUTONOMOUS) SYLLABUS UNDER AUTONOMY FIRST YEAR B.Sc. COMPUTER SCIENCE SEMESTER I SYLLABUS OF COMPUTER SCIENCE Academic Year 2016-2017 Deccan Education

More information

1. The output of lexical analyser is a) A set of RE b) Syntax Tree c) Set of Tokens d) String Character

1. The output of lexical analyser is a) A set of RE b) Syntax Tree c) Set of Tokens d) String Character 1. The output of lexical analyser is a) A set of RE b) Syntax Tree c) Set of Tokens d) String Character 2. The symbol table implementation is based on the property of locality of reference is a) Linear

More information

1. (a) What are the closure properties of Regular sets? Explain. (b) Briefly explain the logical phases of a compiler model. [8+8]

1. (a) What are the closure properties of Regular sets? Explain. (b) Briefly explain the logical phases of a compiler model. [8+8] Code No: R05311201 Set No. 1 1. (a) What are the closure properties of Regular sets? Explain. (b) Briefly explain the logical phases of a compiler model. [8+8] 2. Compute the FIRST and FOLLOW sets of each

More information

Compilers and Interpreters

Compilers and Interpreters Overview Roadmap Language Translators: Interpreters & Compilers Context of a compiler Phases of a compiler Compiler Construction tools Terminology How related to other CS Goals of a good compiler 1 Compilers

More information

COMP-421 Compiler Design. Presented by Dr Ioanna Dionysiou

COMP-421 Compiler Design. Presented by Dr Ioanna Dionysiou COMP-421 Compiler Design Presented by Dr Ioanna Dionysiou Administrative! [ALSU03] Chapter 3 - Lexical Analysis Sections 3.1-3.4, 3.6-3.7! Reading for next time [ALSU03] Chapter 3 Copyright (c) 2010 Ioanna

More information

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN Course Code : CS0304 Course Title : Data Base Management Systems Semester : VI Course Time : Dec 2012-

More information

Formal Languages and Compilers Lecture VII Part 3: Syntactic A

Formal Languages and Compilers Lecture VII Part 3: Syntactic A Formal Languages and Compilers Lecture VII Part 3: Syntactic Analysis Free University of Bozen-Bolzano Faculty of Computer Science POS Building, Room: 2.03 artale@inf.unibz.it http://www.inf.unibz.it/

More information

Compiling Regular Expressions COMP360

Compiling Regular Expressions COMP360 Compiling Regular Expressions COMP360 Logic is the beginning of wisdom, not the end. Leonard Nimoy Compiler s Purpose The compiler converts the program source code into a form that can be executed by the

More information

Week. Lecture Topic day (including assignment/test) 1 st 1 st Introduction to Module 1 st. Practical

Week. Lecture Topic day (including assignment/test) 1 st 1 st Introduction to Module 1 st. Practical Name of faculty: Gaurav Gambhir Discipline: Computer Science Semester: 6 th Subject: CSE 304 N - Essentials of Information Technology Lesson Plan Duration: 15 Weeks (from January, 2018 to April, 2018)

More information

CIS 1.5 Course Objectives. a. Understand the concept of a program (i.e., a computer following a series of instructions)

CIS 1.5 Course Objectives. a. Understand the concept of a program (i.e., a computer following a series of instructions) By the end of this course, students should CIS 1.5 Course Objectives a. Understand the concept of a program (i.e., a computer following a series of instructions) b. Understand the concept of a variable

More information

Introduction to Computer Science and Business

Introduction to Computer Science and Business Introduction to Computer Science and Business This is the second portion of the Database Design and Programming with SQL course. In this portion, students implement their database design by creating a

More information

15CS53: DATABASE MANAGEMENT SYSTEM

15CS53: DATABASE MANAGEMENT SYSTEM 15CS53: DATABASE MANAGEMENT SYSTEM Subject Code: 15CS53 I.A. Marks: 20 Hours/Week: 04 Exam Hours: 03 Total Hours: 56 Exam Marks: 80 Objectives of the Course: This course will enable students to Provide

More information

Processor : Intel Pentium D3.0 GigaHtz

Processor : Intel Pentium D3.0 GigaHtz CHALAPATHI INSTITUTE OF ENGINEERING & TECHNOLOGY CHALAPATHI NAGAR LAM,GUNTUR DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING INTRODUCTION ABOUT 'L2' LAB There are 30 systems (HCL) installed in this Lab.

More information

AFN-1255 PCA131 P.G.D.C.A. DIPLOMA EXAMINATION, MAY 2011 First Semester Computer Applications FUNDAMENTALS OF DIGITAL COMPUTER (Non-CBCS 2004 onwards) Time : 3 Hours Maximum : 100 Marks Part A (15 1 =

More information

OHLONE COLLEGE Ohlone Community College District OFFICIAL COURSE OUTLINE

OHLONE COLLEGE Ohlone Community College District OFFICIAL COURSE OUTLINE OHLONE COLLEGE Ohlone Community College District OFFICIAL COURSE OUTLINE I. Description of Course: 1. Department/Course: CNET - 122A 2. Title: Information Storage and Management - EMC 3. Cross Reference:

More information

DBMS Lesson Plan. Name of the faculty: Ms. Kavita. Discipline: CSE. Semester: IV (January-April 2018) Subject: DBMS (CSE 202-F)

DBMS Lesson Plan. Name of the faculty: Ms. Kavita. Discipline: CSE. Semester: IV (January-April 2018) Subject: DBMS (CSE 202-F) DBMS Lesson Plan Name of the faculty: Ms. Kavita Discipline: CSE Semester: IV (January-April 2018) Subject: DBMS (CSE 202-F) Week No Lecture Day Topic (including assignment/test) 1 1 Introduction to Database

More information

CSCI 565 Compiler Design and Implementation Spring 2014

CSCI 565 Compiler Design and Implementation Spring 2014 CSCI 565 Compiler Design and Implementation Spring 2014 Instructor: Description: Prerequisites: Dr. Pedro C. Diniz, e-mail pedro@isi.edu Lectures: Thursday, 8.00 10.50 AM, RTH 217, phone: (213) 740 4518

More information

SEM / YEAR : VI / III CS2352 PRINCIPLES OF COMPLIERS DESIGN UNIT I - LEXICAL ANALYSIS PART - A

SEM / YEAR : VI / III CS2352 PRINCIPLES OF COMPLIERS DESIGN UNIT I - LEXICAL ANALYSIS PART - A SEM / YEAR : VI / III CS2352 PRINCIPLES OF COMPLIERS DESIGN UNIT I - LEXICAL ANALYSIS PART - A 1. What is a compiler? (A.U Nov/Dec 2007) A compiler is a program that reads a program written in one language

More information

Compilers. Computer Science 431

Compilers. Computer Science 431 Compilers Computer Science 431 Instructor: Erik Krohn E-mail: krohne@uwosh.edu Text Message Only: 608-492-1106 Class Time: Tuesday & Thursday: 9:40am - 11:10am Classroom: Halsey 237 Office Location: Halsey

More information

Subject: Operating System (BTCOC403) Class: S.Y.B.Tech. (Computer Engineering)

Subject: Operating System (BTCOC403) Class: S.Y.B.Tech. (Computer Engineering) A. Multiple Choice Questions (60 questions) Subject: Operating System (BTCOC403) Class: S.Y.B.Tech. (Computer Engineering) Unit-I 1. What is operating system? a) collection of programs that manages hardware

More information