Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

32. During the first pass of an assembler: A) instructions are only partially as

ID: 645595 • Letter: 3

Question

32. During the first pass of an assembler:

A) instructions are only partially assembled             B) the symbol table is only partially completed

C) addresses from the symbol table are placed in object code

D) external code is merged with the object code

33. During the second pass of an assembler:

A) instructions are only partially assembled                B) the symbol table is only partially completed

C) addresses from the symbol table are placed in object code

D) external code is merged with the object code

34. Which of the following is placed into the symbol table during the first pass?

A) labels                                  B) comments                           C) directives                                    D) mnemonics

35. What is the maximum value of the cycle counter when the following sequence of microoperations is executed?

MAR ? X, MBR ? AC

M[MAR] ? MBR

A) 1                                         B) 2                                         C) 3                                         D) 4

36. Suppose a computer's control unit consists of a 4-bit counter and a 4 16 decoder. What is the maximum number of clock cycles that can be consumed by any instruction?

A) 4                                         B) 16                                       C) 32                                       D) 48

37. Suppose a computer's control unit consists of a 5-bit counter and a 5 32 decoder. What is the maximum number of clock cycles that can be consumed by any instruction?

A) 4                                         B) 16                                       C) 32                                       D) 48

38. If a system's instruction set consists of a 5-bit opcode, what is the maximum number of output signal lines required for the control unit?

A) 4                                         B) 16                                       C) 32                                       D) 48

Explanation / Answer

32.

At the end of the first pass, all the necessary space has been allocated and each symbol defined in the program has been associated with a location counter value in the symbol table. When there are no more source statements to read, the second pass starts at the beginning of the program.

Thus, the correct answer is option A) instructions are only partially assembled.

33.

In the second pass, after the symbol table is complete, it does the actual assembly by translating the operations into machine codes and so on.

Thus, the correct option is C) addresses from the symbol table are placed in object code.

34.

In the first pass the assembler Omits the operand address if the symbol has not yet been defined.

Thus, the correct option is B) comments.

35.

Correct option is A) 1.

36.

The 4-bit counter is increased by one to every cycle. Thus, for 4 -bit counter, there are four clock cycles.

A 4: 16 decoders there are 4-bit counters. Therefore, the maximum number of clock cycles that can be consumed by any instruction is 4*4 = 16 clock cycles.

Thus, the correct option is B) 16

37.

Same as the 36th problem.

the correct option is C) 32

38.

2 to the power of n distinct signal lines we need for n bits in the opcode. Therefore,

2 to the power of 5 equal to 32 signals.

Thus, the correct option is C) 32.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote