Top 150+ Solved Principles of Programming Languages MCQ Questions Answer
Q. A strict substitution is called ‘in-line expansion’or_________.
a. macro extension
b. local function
c. both a & b
d. none of these
Q. Types of parameter passing techniques______.
a. call by value
b. call by name
c. call by reference
d. all of these
Q. The address of actual parameter is passed to the formal parameter, “______”can happen.
a. overloading
b. aliasing
c. caller
d. none of these
Q. Any manipulation on the formal parameters doesn’t have effect on values in activation of the_____.
a. caller
b. callee
c. call
d. value
Q. ________is a second usuage demonstrate for in-out parameter.
a. call by value
b. pass by reference
c. call by address
d. none of these
Q. This sort of intercommunication between the modules is accomplished by_________.
a. parameter passing
b. fully dynamic data allocation
c. call by value
d. call by reference
Q. The hybid method between call by value and call by reference is______.
a. call by name
b. copy restore
c. call by address
d. none of these
Q. The node of activation tree represents___________.
a. main
b. procedure
c. a and b
d. none of these
Q. The root of activation tree represents_________.
a. main program
b. called procedure
c. a and b
d. none of these
Q. ______field ,of activation record refers to non local data in another activation record .
a. actual parameters
b. access link
c. control link
d. return values
Q. The control link of activation record points to__________.
a. caller procedure
b. callee procedure
c. both a & b
d. none of these
Q. An interpreter is a program that repetitively executes :
a. get the next statement
b. determine the action to be executed
c. perform the action
d. all of the above
Q. ____translate code into some efficient ntermesiate representation and immediately execute that.
a. translator
b. interpreter
c. compiler
d. none of the above