Languages-Assembly Language [3i Infotech Placement]: Sample Questions 21 - 23 of 51

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 21

Assembly Language
Edit

Describe in Detail

Essay▾

What is the function of accumulator?

Explanation

Define Us of Accumulator in ALU
  • Accumulator is 8-bit the primary register for ALU.
  • Hold operands for operation which is performed/processed by the ALU.
  • After the successful operation done by the ALU , the accumulator replaces input data by results
  • Result can then be transferred to memory or output device depending on the instruction.
  • Used as temporary storage to perform arithmetic operations.

Question 22

Assembly Language

Question

MCQ▾

When a ‘C’ function call is made, the order in which parameters passed to the function are pushed into the stack is

Choices

Choice (4)

a.

left to right

b.

bigger variables are moved first than the smaller variables.

c.

smaller variables are moved first than the bigger ones.

d.

right to left

Answer

d.

Explanation

When a ‘C’ function call is made parameters passed to the function are pushed into the stack right to left.

Question 23

Assembly Language

Write in Short

Short Answer▾

How many memory locations can be addressed by a microprocessor with dress lines?

Explanation

  • No of memory locations that can be addressed is to the power of no of address lines.
  • Thus.

Developed by: