MCQOPTIONS
Saved Bookmarks
This section includes 34 Mcqs, each offering curated multiple-choice questions to sharpen your Lisp knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
A processor- |
| A. | is a sequence of instructions |
| B. | is the device where information is stored |
| C. | is a device that performs a sequence of operations specified by instructions in memory |
| D. | none of these |
| Answer» D. none of these | |
| 2. |
Macro-processors are ______ |
| A. | Hardware |
| B. | Compilers |
| C. | Registers |
| D. | None of the above |
| Answer» C. Registers | |
| 3. |
A macro can be defined at |
| A. | beginning of a program |
| B. | end of a program |
| C. | after initialisation of program |
| D. | anywhere in a program |
| Answer» E. | |
| 4. |
A co-processor- |
| A. | is used to support in software |
| B. | is used in fifth generation computers |
| C. | is used in combination with every application |
| D. | none of these |
| Answer» B. is used in fifth generation computers | |
| 5. |
The beginning of the macro can be represented as |
| A. | START |
| B. | BEGIN |
| C. | MACRO |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 6. |
Nested Macro calls are expanded using the |
| A. | FIFO rule (First in first out) |
| B. | LIFO (Last in First out) |
| C. | FILO rule (First in last out) |
| D. | None of the above |
| Answer» C. FILO rule (First in last out) | |
| 7. |
Macro processor is an inbuilt function of ? |
| A. | Loader |
| B. | Editor |
| C. | Linker |
| D. | Assembler |
| Answer» E. | |
| 8. |
What are x and y in the following macro definition? macro Add x, y Load y Mul x Store y end macro |
| A. | variables |
| B. | identifiers |
| C. | formal parameters |
| D. | actual parameters |
| Answer» D. actual parameters | |
| 9. |
What is the value of X printed by the following program ? program COMPUTE ( input, output ); var X : integer ; procedure FIND ( X: real ) ; begin X : = sqrt ( X ) ; end ; begin X : = 2 FIND(X); |
| A. | n |
| B. | 2 |
| C. | √2 |
| D. | Run-time error |
| Answer» C. √2 | |
| 10. |
Macro processor is an inbuilt function of - |
| A. | Assembler |
| B. | Loader |
| C. | Linker |
| D. | Editor |
| Answer» B. Loader | |
| 11. |
If a number of instructions are repeating through the main program, then to reduce the length of the program, ……. is used. |
| A. | procedure |
| B. | subroutine |
| C. | macro |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 12. |
The time required for execution of a macro is ……… that of procedure. |
| A. | greater than |
| B. | less than |
| C. | equal to |
| D. | none of the mentioned |
| Answer» C. equal to | |
| 13. |
The end of a macro can be represented by the directive |
| A. | END |
| B. | ENDS |
| C. | ENDM |
| D. | ENDD |
| Answer» D. ENDD | |
| 14. |
A macro can be used |
| A. | in data segment |
| B. | to represent directives |
| C. | to represent statements |
| D. | all of the mentioned |
| Answer» E. | |
| 15. |
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 |
| Answer» B. bcg | |
| 16. |
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 |
| Answer» C. both (a) and (b) | |
| 17. |
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. |
| Answer» D. to expand certain model statements depending upon the value of a condition during the process of macro expansion. | |
| 18. |
Non-modifiable procedures are called ? |
| A. | concurrent procedures |
| B. | serially usable procedures |
| C. | reentrant procedures |
| D. | topdown procedures |
| Answer» C. reentrant procedures | |
| 19. |
During macro expansion each statement is replaced by |
| A. | the original program |
| B. | the sequence of assembly statement |
| C. | by specific synbols |
| D. | None of the above |
| Answer» C. by specific synbols | |
| 20. |
Expansion time variables are used |
| A. | Before expansion of micro calls |
| B. | only during expansion of macro calls |
| C. | After expansion of micro calls |
| D. | Any one of the above |
| Answer» C. After expansion of micro calls | |
| 21. |
A ________________ statement declare the name of macro. |
| A. | macro prototype |
| B. | macro definition |
| C. | macro identification |
| D. | None of the above |
| Answer» B. macro definition | |
| 22. |
A macro is |
| A. | a small program inside a program |
| B. | set of special instructions |
| C. | a unit of specification for program generation through expansion |
| D. | None of the above |
| Answer» D. None of the above | |
| 23. |
A model statement contains call for another macro is called as |
| A. | referential macro call |
| B. | nested macro call |
| C. | inbuilt macro call |
| D. | inherited macro call |
| Answer» C. inbuilt macro call | |
| 24. |
The flow control during macro expansion is |
| A. | combination |
| B. | chronological |
| C. | indexable |
| D. | sequential |
| Answer» E. | |
| 25. |
Each macro statement is marked with the __________ sign preceded it. |
| A. | + |
| B. | @ |
| C. | ~ |
| D. | $ |
| Answer» B. @ | |
| 26. |
The translator which perform macro expansion is called a |
| A. | Macro processor |
| B. | Macro pre-processor |
| C. | Micro pre-processor |
| D. | assembler |
| Answer» C. Micro pre-processor | |
| 27. |
T?$ |
| A. | Nil |
| B. | Alarm |
| C. | None of the mentioned |
| Answer» C. None of the mentioned | |
| 28. |
Pick out the correct statement about macro. |
| A. | Macro is dependant |
| B. | Macro is interoperable |
| C. | Macro is complex |
| D. | Macro deserve their own file |
| Answer» E. | |
| 29. |
Which exploit the fact that lisp forms are just expressions meant to be evaluated? |
| A. | List |
| B. | Procedure |
| C. | Macro |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 30. |
Which forms can be constructed with the same primitives that manipulate lisp expressions? |
| A. | Lisp |
| B. | Macro |
| C. | Procedure |
| D. | Defun |
| Answer» B. Macro | |
| 31. |
What is the difference between the appearance of macro and ordinary definition? |
| A. | Argument list |
| B. | Reture value |
| C. | Just the defining keyword |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 32. |
Which do not evaluate their arguments? |
| A. | List |
| B. | Procedure |
| C. | Setf |
| D. | Macros |
| Answer» E. | |
| 33. |
Which keyword is used to define macro procedures? |
| A. | Defun |
| B. | Demacro |
| C. | Defmacro |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 34. |
Which uses their arguments to build intermediate forms and evaluating them to produce a value? |
| A. | Backquote |
| B. | Macros |
| C. | List |
| D. | Procedures |
| Answer» C. List | |