We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
SS MSE IMP QUESTIONS
1 Explain the various stages of life cycle of a source program with neat diagram.
2 Define the following term.
Compiler Interpreter Assembler Macro Linker Loader System software.
3 What is the difference between System Software and application software.
4 Define Language processing.
List various phases of language processor and explain each phase in detail.
5 Define following term.
Semantic Gap Execution Gap
6 What is semantic expansion? Explain the cause of large semantic gap.
7 Difference between procedure oriented language and problem oriented language.
8 Describe following data structures: OPTAB, SYMTAB, LITTAB and POOLTAB.
9 Explain the tasks performed by the PASS-1 and PASS-2 assembler?
10 Consider following assembly language program: Show (i)
Contents of Symbol Table (ii) Intermediate codes using Variant-I representation. START 101 READ N MOVER BREG, ONE MOVEM BREG, TERM AGAIN MULT BREG, TERM MOVER CREG, TERM ADD CREG, ONE MOVEM CREG, TERM COMP CREG, N BC LE, AGAIN MOVEM BREG, AGAIN PRINT RESULT STOP N DS 1 RESULT DS 1 ONE DC ‘1’ TERM DS 1 END Instruction opcode: STOP – 00, ADD – 01, MULT – 03, MOVER – 04, MOVEM –05, COMP – 06, BC – 07, READ – 09, PRINT – 10, LE – 02 Assembler directives: START – 01, END – 02 Declaration statements: DC – 01, DS – 02 Register code: BREG – 02, CREG – 03
11 Given the source program:
START 100 A DS 3 L1 MOVER AREG, B ADD AREG, C MOVEM AREG, D D EQU A+1 L2 PRINT D ORIGIN A-1 C DC ‘5’ ORIGIN L2+1 STOP B DC ‘19’ END L1 a) Show the contents of the symbol table at the end of Pass I. b) Explain the significance of EQU and ORIGIN statement in the program and explain how they are processed by the assembler. c) Show the intermediate code generated for the program.
12 Differentiate one pass and two pass assembler.
13 Explain forward reference with suitable examples .How to solve
it using back -patching? 14 What is interpreter? Explain benefits of interpreter. Compare interpreter and compiler.