Wednesday, October 26, 2022

 Practice_study_Exercises_Question


 

1. Attempt all (1 M)

1)   “Vi is a structure editor”. True/False? Justify.

2)   Define the term location counter and instruction pointer.

3)   What is the difference between label and sequencing symbol?

4)   “Static binding leads to more efficient execution of program than dynamic binding”. True/False? Justify.

5)   “Runtime efficiency of program is better in compilation than interpretation”. True/False? Justify.

6)   Which code representations of expression are suitable for optimizing compilers?

7)   What is translated origin?

8)   What is SMACO?

 

Q2. Attempt the Following

1)   Explain various types of assembly language statements with their importance and suitable examples.

2)   “Definition of each macro is a source program is stored as it is in MDT”. True/False? Justify by giving suitable example.

3)   What is code optimization? Explain various code optimization techniques with suitable examples

4)   List various types of errors detected by compiler in various phases of compilation.

5)   Give any 2 differences between the instructions STOP and END.

6)   For the following assembly language program, show the entries in various data structures used by 2-Pass Assembler.

 

 

 

 

 

 

START 300

READ A

READ B

RAMA MOVER DREG, A

MOVER CREG, = ‘15’

MULT DREG, = ‘21’

MOVEM CREG, C

BC ANY, AGAIN

DIV AREG, C

LTORG

MOVER AREG, = ‘66’

ADD AREG, B

DIV AREG, = ‘15’

JMP1 SUB AREG, C

JMP2 DIV AREG, = ‘51’

ORIGIN RAMA + 5

SUB AREG, C

ORIGIN JMP2 + 1

AGAIN, EQU JMP1

PRINT C

STOP

A DS 1

B DS 1

C DS 1

D DC ‘7’

stop

 

7)   What is the use of statements AIF and AGO?

8)   List the properties of Intermediate code and show the Intermediate code variant – I and variant – II for the following assembly language program.

START 200

READ A

READ B

MOVER AREG, = ‘56’

ADD AREG, B

MOVER BREG, A

SUB BREG, A

MOVEM BREG, ZERO

STOP

A DS 1

B DS 1

END

9)   Explain the Lexical analysis phase of a language processor?

10)                  Discuss briefly about pass 2 of a compiler in detail?

11)                  Explain the data structures used by Two pass assembler?

12)                  Explain in detail the expansion processing of nested macro calls?

13)                  List the data structures used by a macro processor?

14)                  Differentiate between a compiler and interpreter?

15)                  Elaborate Declarative statements in Assembly Language?

16)                  Discuss the compilation process with a suitable example

17)                  Explain how control sections are handled by an Assembler? Explain with an example.

18)                  List out the functions of two pass assembler

19)                  With a neat block diagram explain the structure of an editor.

20)                  Compare and contrast among line editor and screen editor.

21)                  How the Assembler gives Program Relocation Information to the Loader?

22)                  State and explain the basic functions of a loader?

No comments:

Post a Comment

XOR Problem in neural network

  XOR problem with neural networks The XOR gate can be usually termed as a combination of NOT and AND gates The linear separability of p...