Which arranges for one object to be placed on another?
Put-on
Put-up
Variable
List
View Answer
Correct Answer: A — Put-on
Explanation:
Put-on arranges the object one after the another in lisp.
Browse topic-based LISP practice sets.
186 practice sets · Page 4 of 10
Which arranges for one object to be placed on another?
Put-on
Put-up
Variable
List
Correct Answer: A — Put-on
Explanation:
Put-on arranges the object one after the another in lisp.
What value will assigned, if there is no argument marked by a matching keyword?
T
NIL
False
Both NIL & False
Correct Answer: B — NIL
Explanation:
If there is no argument marked by a matching keyword, the corresponding keyword parameter is bound to NIL.
Which can appear without an initial form?
Parameter
Block parameter
Optional parameter
Aux parameter
Correct Answer: D — Aux parameter
Explanation:
An aux parameter can appear without an initial form, in which case there are no surrounding parentheses.
Which eliminate the need for many auxiliaries?
Parameters
Block parameters
Optional parameters
All of the mentioned
Correct Answer: C — Optional parameters
Explanation:
None.
Which allow procedures to use themselves again?
Recursion
Reuse
Reintiate
None of the mentioned
Correct Answer: A — Recursion
Explanation:
Recursion allows procedures to use themselves again and again.
Which is bounded to a list of all unaccounted argument values?
REST
&REST
RAISE
&RAISE
Correct Answer: B — &REST
Explanation:
A rest parameter will be marked by &REST and it is bounded to a list of all unaccounted argument values.
How many types of read forms are available in file manipulation?
1
2
3
4
Correct Answer: B — 2
Explanation:
The two types of read forms available in read form are read-line and read-char.
What will happen if nil is supplied as second argument in read form?
T
Value
Nil
None of the mentioned
Correct Answer: C — Nil
Explanation:
In this case read will return NIL, instead of giving error.
Which stream is involved with print and format forms?
Input
Output
Both Input & Output
None of the mentioned
Correct Answer: B — Output
Explanation:
Output streams are involved with print and format forms.
How many types of streams are available in lisp?
1
2
3
4
Correct Answer: B — 2
Explanation:
There are two types of streams available in streams. They are input and output streams.
Which primitive is used to connect the files with the streams?
Read
Format
With-open-file
None of the mentioned
Correct Answer: C — With-open-file
Explanation:
Streams are created, variables are bound to them and they are connected to files using with-open-file.
Pick out the correct syntax in given order.
(setf (get ) )
(setf (get )
(setf (get )
None of the mentioned
Correct Answer: A — (setf (get ) )
Explanation:
The setf and get are used as writer for properties.
Which is used as writer for properties?
Setf
Get
Both Setf & Get
None of the mentioned
Correct Answer: C — Both Setf & Get
Explanation:
The setf used together with get, is the writer for properties.
What is the collection of property names and values associated with a symbol?
List
Property
Procedures
Property list
Correct Answer: D — Property list
Explanation:
The collection of property names and values associated with a symbol is said to be property list.
Which enables storage in symbolically indexed places?
Properties
Procedures
Variable
List
Correct Answer: A — Properties
Explanation:
Properties enables storage in symbolically indexed places.
How many values that a symbol may have?
1
2
3
4
Correct Answer: B — 2
Explanation:
Symbols may have property values as well as ordinary values.
Which procedure is used to create data?
List
Variable
Constructor
None of the mentioned
Correct Answer: C — Constructor
Explanation:
A procedure that creates data is a constructor.
What are the variables that are bound and that have values assigned to them?
Data
Variable
Parameters
None of the mentioned
Correct Answer: C — Parameters
Explanation:
The parameter of a procedure are variables that are bound and have values assigned to them.
How many types of variables are available in lisp?
1
2
3
4
Correct Answer: B — 2
Explanation:
There are two kinds of variables available in lisp. They are lexical variable and special variable.
What is a symbol thought of as a name for a place to store value?
Data
Variable
Parameters
None of the mentioned
Correct Answer: B — Variable
Explanation:
A variable is a symbol thought of as a name for a place to store value.