Which arranges for one object to be placed on another?
Put-on
Put-up
Variable
List
Answer and explanation
Put-on arranges the object one after the another in lisp.
ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
Which arranges for one object to be placed on another?
Put-on
Put-up
Variable
List
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
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
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
None.
Which allow procedures to use themselves again?
Recursion
Reuse
Reintiate
None of the mentioned
Recursion allows procedures to use themselves again and again.
Which is bounded to a list of all unaccounted argument values?
REST
&REST
RAISE
&RAISE
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
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
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
Output streams are involved with print and format forms.
How many types of streams are available in lisp?
1
2
3
4
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
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 <symbol> <property name>) <property value>)
(setf (get <property name>)
(setf <property value> (get <symbol> <property name>)
None of the mentioned
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
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
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
Properties enables storage in symbolically indexed places.
How many values that a symbol may have?
1
2
3
4
Symbols may have property values as well as ordinary values.
Which procedure is used to create data?
List
Variable
Constructor
None of the mentioned
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
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
There are two kinds of variables available in lisp. They are lexical variable and special variable.