3i Infotech Papers: Sample Questions 1054 - 1056 of 1245

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

Question number: 1054

» Languages » Assembly Language



Which addressing mode is used in the following statements?

a. MVI B,

b. MOV B, A

c. MOV M, A


Choice (4) Response


Immediate addressing mode


Direct addressing mode.


Register addressing mode


Question does not provide sufficient data or is vague




  • MOV - Moves immediate data to a register or memory location.

  • MVI B, h: Transfers an immediate number to register B.

  • MOV M, A: Immediate constant A is transferred to M.

  • MOV B, A: Immediate constant A is transferred to B.

Question number: 1055

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

What are the advantages of using unions?


  • Advantages is in terms of the memory.

  • If a union & structure have one int and one float, then the size of the structure is sum of its members-10 (2 * 3+4), the size of the union is only 4- that is the size of its largest member (the size of the float, the largest one in this union).

Question number: 1056

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is a pointer?


Understanding of pointer to a variable.

Understanding of Pointer to a Variable.

Understanding of pointer to a variable.

  • Pointer in C language is a variable that stores the address of another variable.

  • A pointer in C is used to allocate memory dynamically at run time.

  • The pointer variable might “point” to any the data type as int, float, char, double, short etc.


Data_type * var_name;


int * p;

char * p;

  • Where, * is used to denote that “p” is pointer variable and not a normal variable.