πŸ“Š Theory of Computation and Compiler Design
Q. Consider the following expression
u*v+a-b*c
Which one of the following corresponds to a static single assignment from the above expressions
  • (A) x1 = a - b y1 = p * c x2 = u * v y2 = p + q
  • (B) x 1 = a - b y1 = x2 * c x3 = u * v y2 = x4 + y3
  • (C) x1 = a - b y2 = x1 * c x2 = u * v y3 = x2 + y2
  • (D) p = a - b q = p * c p = u * v q = p + q
πŸ’¬ Discuss
βœ… Correct Answer: (C) x1 = a - b y2 = x1 * c x2 = u * v y3 = x2 + y2
πŸ“Š Theory of Computation and Compiler Design
Q. In multi-programmed systems, it is advantageous if some programs such as editors and compilers can be shared by several users. Which of the following must be true of multi-programmed systems in order that a single copy of a program can be shared by several users?
I. The program is a macro
II. The program is recursive
III.The program is reentrant
  • (A) I only
  • (B) II only
  • (C) Ill only
  • (D) I, II and III
πŸ’¬ Discuss
βœ… Correct Answer: (C) Ill only

Jump to