A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

31. Which of the following macros can put a macro assembler into an infinite loop ?
a. MACRO                    M1, XIF EQ, X                    if X = 0 then....M1  X + 1ENDCIF NE, X :                   IF X ≠ 0 then......WORD X :                 address (X) is stored hereENDCENDM
b. MACRO M2, XIF EQ, XM2 XENDCIF NE, XWORD X + 1ENDCENDM
c. both (a) and (b)
d. none of these
View Answer Report Discuss Too Difficult!
Answer: (b).MACRO M2, XIF EQ, XM2 XENDCIF NE, XWORD X + 1ENDCENDM

32. If control signals {a,b,c,d,e,f,g} for some micro instructions and their corresponding MCCS (Maximum Compatibility Classes) are [ad f* g, abd, beg, b deg} then to determine minimal MCC cover, we need to remove
a. afd
b. bcg
c. adfg
d. bdeg
View Answer Report Discuss Too Difficult!
Answer: (a).afd

33. The conditional expansion facility of macro procesors is provided to
a. to expand certain model statements depending upon the value of a condition during the execution of the expanded program
b. test a condition during the execution of the expanded program
c. Both (a) and (b)
d. to expand certain model statements depending upon the value of a condition during the process of macro expansion.
View Answer Report Discuss Too Difficult!
Answer: (c).Both (a) and (b)

34. The advantage(s) of incorporating the macro processor into pass 1 is/ are:
a. many functions do not have to be implemented twice
b. more flexibility is available to the programmer in which he/she may use all the features of the assembler in conjunction with macros
c. Functions are combined and it is not necessary to create intermediate files as output from the macro processor and input to the assembler
d. All of the above
View Answer Report Discuss Too Difficult!
Answer: (d).All of the above

35. In which way(s) can a macro processor for assembly language be implemented?
a. independent one-pass processor
b. independent two-pass processor
c. processor incorporated into pass of a standard two-pass assembler
d. all of the above
View Answer Report Discuss Too Difficult!
Answer: (d).all of the above

Page 4 of 4