3i Infotech Papers: Sample Questions 1046 - 1048 of 1245

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 1046

» Languages » Assembly Language

MCQ▾

Question

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) Response

a.

right to left

b.

smaller variables are moved first than the bigger ones.

c.

left to right

d.

bigger variables are moved first than the smaller variables.

Answer

a.

Explanation

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

Question number: 1047

» Basic CS » Operating System

Short Answer Question▾

Write in Short

What is macro? What are its advantages and disadvantages?

Explanation

  • A micro is a name given to block of C statements given as a pre-processor directive.

  • A pre-processor communicates the block of code to the compiler before entering into the actual compiling.

  • A macro is defined with the pre-processor directive.

Advantages:

  • Symbolic constants are evaluated by the pre-processor.

  • It is easy to modify the value of the constant variable.

  • Run time cost of inline functions (using macro) is less as no function call is made.

Disadvantages:

  • Macro are not useful when the function definitions are big and when the function is used many number of times.

Question number: 1048

» Languages » Assembly Language

Short Answer Question▾

Write in Short

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.