questions on system programming

4
Following is the list of the repeatedly asked questions on System Programming. UNIT –I Q-1.1 Draw and explain the general machine structure Q-1.! "hat do you mean #y system programming $xplain the components of system programming. Q-1.% $xplain the terms& i.' (ssem#ler ii' )icroprocessor iii' *ompiler i+' ,nterpreter +' *ross compiler +i' oader Q-1. (nswer the following&- i' "hy should we use #ase register/ index register and displacement format for the formation of address ii' "hy the technique address modification using instruction as data is a #ad programming technique iii' 0i+e the difference #etween (2 and 3S,40/ D* and $Q3. i+' "hy is it #etter to use 5620 pseudo 6P #efore the D* and DS pseudo 6P $xplain. Q-1.7 $xplain operating system user +iewpoint as #atch control language. Q-1.8 $xplain the different functions of operating system UNIT-II Q-!.1. 0i+e the data#ases used #y pass-1 and pass-! of assem#ler. Q-!.!. Draw and explain the detailed flowchart for pass-! of a two-pass assem#ler. Q-!.%. $xplain the pro#lems faced #y a one-pass assem#ler. Q-!.. $xplain in detail with a suita#le example/ the formats and contents of data#ases used in assem#ler design. Q-!.7. ist different instruction format for ,) %89:%;9 machine with example. Q-!.8 "hat is the difference #etween&- i' Procedure and program ii' 5raffic *ontroller and Scheduler 6pen Su#routine and *losed Su#routine. Q-!.; $xplain the pro#lems faced #y a one-pass assem#ler. <ow can we o+ercome with the pro#lems faced #y the one pass assem#ler Q-!.= $xplain with example different data formats of ,) %89:%;9 system. Q-!.> Define the following i' $xecution time. ii' *ompile time. Q-!.19 $xplain the meaning of following instruction of ,) %89.(2/ $Q3/ 5620/ D*/ DS. "hat restrictions are enforced on assem#ler while processing 5620/ DS/ D* instructions. UNIT-III Q-%.1 0i+e the entries in sym#ol ta#le/ literal ta#le/ and #ase ta#le at the end of pass-1 and pass-! of the assem#ler. (lso gi+e the code at the end of each pass P260 1 S5(25 9 (2 17/9 3S,40 ?/17 2 7/17 < 1/D(51 3S,40 ?/19 2 1 D(5 ! D* F@11@ D(5 1 D* <@!!@ 52S D* <@!!@ *A DS F (( $Q3 1

Upload: sowmyamukhamisrinivasan

Post on 18-Oct-2015

44 views

Category:

Documents


1 download

DESCRIPTION

Questions on System Programming

TRANSCRIPT

Following is the list of the repeatedly asked questions on System Programming.

UNIT I

Q-1.1 Draw and explain the general machine structure?Q-1.2 What do you mean by system programming? Explain the components of system programming.Q-1.3 Explain the terms:i.) Assemblerii) Microprocessoriii) Compileriv) Interpreterv) Cross compilervi) LoaderQ-1.4 Answer the following:-i) Why should we use base register, index register and displacement format for the formation of address?ii) Why the technique address modification using instruction as data is a bad programming technique?iii) Give the difference between BALR and USING, DC and EQU.iv) Why is it better to use LTORG pseudo OP before the DC and DS pseudo OP? Explain.Q-1.5 Explain operating system user viewpoint as batch control language.Q-1.6 Explain the different functions of operating system?

UNIT-II

Q-2.1. Give the databases used by pass-1 and pass-2 of assembler.Q-2.2. Draw and explain the detailed flowchart for pass-2 of a two-pass assembler.Q-2.3. Explain the problems faced by a one-pass assembler.Q-2.4. Explain in detail with a suitable example, the formats and contents of databases used in assembler design.Q-2.5. List different instruction format for IBM 360/370 machine with example.Q-2.6 What is the difference between:-i) Procedure and programii) Traffic Controller and SchedulerOpen Subroutine and Closed Subroutine.Q-2.7 Explain the problems faced by a one-pass assembler. How can we overcome with the problems faced by the one pass assembler?Q-2.8 Explain with example different data formats of IBM 360/370 system.?Q-2.9 Define the followingi) Execution time.ii) Compile time.Q-2.10 Explain the meaning of following instruction of IBM 360.BALR, EQU, LTORG, DC, DS. What restrictions are enforced on assembler while processing LTORG, DS, DC instructions.

UNIT-III

Q-3.1 Give the entries in symbol table, literal table, and base table at the end of pass-1 and pass-2 of the assembler. Also give the code at the end of each pass

PROG 1 START 0BALR 15,0USING *,15LR 5,15LH 1,DAT1USING *,10BR 14DAT 2 DC F11DAT 1 DC H22TRS DC H22BCK DS FAA EQU 1DD EQU 2BALR 2,0USING *+ AA,TRSLA 7,=A(BCK)BR 6DC H64DROP DL 9,A(DAT 1)A 9,=A(DAT1)LTORGST 9,=F400END

Q-2.2 Write a machine language program to add the contents of 20 adjacent full words in memory to the number 50 under following set of assumptions1) The program is in core at absolute location 482) The 20 adjacent full words are starting at absolute location 9003) The number 50 to be added is at absolute location 8963) The number 20 is at absolute location 8924) Register No. 1 contains 900

Q-3.3 for the following assembly program show :-i) The MDTii) The MNT andThe expanded assembly language program.

MACROSTORE & ANSST 1,& ANSMENDMACROPERFORM & ADD, & DESTSR 1,1MACRO& ADD &A, &BL 1,& AA 1, & BMEND&DEST DS FMENDARITH START 0USING *, 15PERFORM PLUS,RESULTPLUS NUM1,NUM2STORE RESULTNUM1 DC F 4NUM2 DC F 5ENDQ-3.4 Explain Macro call within macro definition with suitable example.Q-3.5 Draw flow charts for macro call within macro. Also explain it.Q-3.6 Define macro and explain the features of macro facility provide by the macro language of IBM 360/370.Q-3.7 Give the database required for the two pass microprocessor.

UNIT IV

Q-4.1 Explain absolute loader scheme with its advantages and disadvantages.Q-4.2 What are different loading schemes? Explain with example.Q-4.3 What do you mean by dynamic loading ?Q-4.4 Explain the use of MDLC and MDI in the algorithm for single pass macrodefinition within macro.Q-4.5 Give the entries in MNT, ALA and DMT for the following definition and call:-MACROOPRTN & macnm, &opMACRO& macnm &A, &BL 1, &A&OP 1, &BST 1,&BMENDMEND: .DATA 1 DC F 10DATE 2 DC F 11DATA 3 DC F 20:OPRTN ADD AOPRTN SUN S:ADD DATA1, DATA2:SUB DATA1, DATA3:END

Q-4.7 Explain the different functions of loader.Q-4.8 Give the various data structures in the design of pass-1 and pass-2 of a Two-pass direct linking loader.Q-4.9 Different loading scheme.Q-4.10 Write short notes oni) Dynamic Loadingii) Dynamic Linking

UNIT V

Q-5.1 Explain functional modularity of programming language.Q-5.2 Give general model of compiler.Q-5.3 Describe in brief features of high level language.Q-5.4 Give details about ESD,TXT,RLD and END cards.Q-5.5 Explain in briefi) GESTii) LESAQ-5.6 Write short notes on Asynchronous operation.Q-5.7 Explain the following address constantsi) Absoluteii) Simple re-locatableComplex re-locatable.Q-5.8 Consider the following program segments

PG 1 STARTENTRY SYM 11EXTRN PG 2, SYM 23DC A(PGA), A(PGB + 4)SYM 11 DC A(SYM 11-PG 1), (SYM 23 PG 2)END

PG 2 STARTENTRY SYM 23EXTRN PG 1, SYM 11

SYM 21 DC A(SYM 11-2),A(SYM 21)SYM 22 DC A(PG 2+4),A(SYM 21 PG 2)SYM 23 DC A(SYM 21 PG 1)ENDAssume these two programs are to be loaded starting at location 200 in order PG 1 and PG 2. Fill the GEST for each symbol. Also give the ESD and RLD card entries for the above program segments.

Q-5.9 Explain in brief the advantages of using high level languages over that of Assembly languages.Q-5.10 Explain what do you mean by functional modularity of programming languages.

Q-5.11 Write short note on Asynchronous operation.

UNIT VI

Q-6.1 What are the differences between:-i) Passes and Phases of compilerii) Syntax analysis and Semantic analysisTokens and Uniform symbol.Q-6.2 Explain in detail the phases of compiler.Q-6.3 Explain the following terms and differentiates between.i) Phase and pass.ii) Multitasking and multiprogramming.Q-6.4 Give the important features of higher level language.Q-6.5 Explain what do you mean by functional modularity of programming languages.Q-6.6 Explain in brief the advantages of using high level languages over that of assembly languages.Q-6.7 Write short note on Asynchronous operation.Q-6.8 What is the difference between:-i) Passes and phases of compilerii) Syntax analysis and semantic analysisTokens and Uniform symbol.Q-6.9 Explain in detail the phases of compiler.

Q-6.10 Explain in brief the advantages of using high level languages over that of Assembly languages.Q-6.11 Explain what do you mean by functional modularity of programming languages.Q-6.12 Write short note on Asynchronous operation.Q-6.13 Explain the parameter passing mechanisms in High level languages.Q-6.14 Explain in detail phases of compiler.Q-6.15 Describe in brief features of high level language.Q-6.16 Explain in detail phases of compiler.