Which require sophisticated precedence computation?
Superclass
Multiple Superclass
Subclass
None of the mentioned
View Answer
Correct Answer: B — Multiple Superclass
Explanation:
Multiple superclasses require sophisticated precedence computations.
Browse topic-based LISP practice sets.
186 practice sets · Page 9 of 10
Which require sophisticated precedence computation?
Superclass
Multiple Superclass
Subclass
None of the mentioned
Correct Answer: B — Multiple Superclass
Explanation:
Multiple superclasses require sophisticated precedence computations.
Which class can help to select a method?
Nonoptional argument
Class
Method
None of the mentioned
Correct Answer: A — Nonoptional argument
Explanation:
Any nonoptional argument class can help to select a method.
Which keyword is used to define the method?
Defun
Destruct
Demake
Defmethod
Correct Answer: D — Defmethod
Explanation:
Defmethod is used for defining the method.
What is meant by collection of methods the same name?
Lisp class
Class
Generic function
None of the mentioned
Correct Answer: C — Generic function
Explanation:
Each collection of methods that share the same name is called a generic function.
Which makes it possible to define generic functions?
Lisp
CLOS
Class
Object-Oriented programming
Correct Answer: B — CLOS
Explanation:
Common Lisp Object System makes it possible to define generic functions.
Which helps you to write procedures on complicated things?
Development
Revoke
Progressive envelopment
All of the mentioned
Correct Answer: C — Progressive envelopment
Explanation:
Progressive envelopment helps you to write procedures on building complicated things incrementally.
What is the alternative of LET for parameter binding?
Let
Let*
Let^
Let%
Correct Answer: B — Let*
Explanation:
Let is like shorthand notation for nested LETs.
What will happen if a variable had not assigned a value by SETF form?
Warning
Nothing will happen
Error message
Crash
Correct Answer: C — Error message
Explanation:
Because of this condition, it will report an unbound variable error.
How does LET generally begins with?
Parameter list
Data
Fence
None of the mentioned
Correct Answer: A — Parameter list
Explanation:
Parameter list consists of two-elements lists, each of which has a parameter variable and an intial value form.
Which arranges for parameters to be bound on entering a procedure?
Form
Let
Initial
Parameter
Correct Answer: B — Let
Explanation:
LET arranges for parameters to be bound, just as parameter are bound on entering a procedure.
Which will be simplified by using backquote mechanism?
Time
Memory space
Error
Template filling
Correct Answer: D — Template filling
Explanation:
The backquote mechanism will simplify template filling.
Which simplifies the macro writing?
Macros
List
Backquote mechanism
None of the mentioned
Correct Answer: C — Backquote mechanism
Explanation:
The backquote mechanism simplifies macro writing.
Which is used to spliced the elements in the list?
%
@
None of the mentioned
Correct Answer: C — @
Explanation:
The elements in the list are spliced into the list when the @ appears.
Which are perfect for making and filling using backquote mechanism?
Templates
Macro templates
List
Procedure
Correct Answer: B — Macro templates
Explanation:
The backquote mechanism is perfect for making and filling macro templates.
Which isolates an entire expression from evaluation?
'
"
()
$
Correct Answer: A — '
Explanation:
The normal quote, ' isolates an entire expression from evaluation.
Which mechanism makes it easy to create and to complete template like expressions?
Macro
Backquote
Variable
None of the mentioned
Correct Answer: B — Backquote
Explanation:
Backquote mechanism makes it easy to create and to complete template like expressions in which only a few, variable details to be filled.
Which keyword embeds the initial element in an array?
Initial
Initial-content
Initial-element
None of the mentioned
Correct Answer: B — Initial-content
Explanation:
Initial-Contents keyword along with the desired intial elements wrapped up in an array.
Which is present in the writer procedure for arrays?
Setf
Aref
Fref
Both Setf & Aref
Correct Answer: D — Both Setf & Aref
Explanation:
Setf is writer procedure and aref is reader procedure for arrays.
Which keyword is used to construct an array?
Array
Make-array
Bins
Make
Correct Answer: B — Make-array
Explanation:
The array can be constructed and its dimension can be set by using make-array.
Which symbol holds the first element and also an index?
Nail
Tail
Initial
All of the mentioned
Correct Answer: A — Nail
Explanation:
The nails symbol indicates the first bin, the one with an index of 0 holds nails.