Which primitive removes all but the last element from the list?
Last
First
Remove
Revoke
Answer and explanation
"Last" is used whenever there is a requirement of only last element of list.
ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
Which primitive removes all but the last element from the list?
Last
First
Remove
Revoke
"Last" is used whenever there is a requirement of only last element of list.
Which is used to build the lisp procedures?
Data
Primitives
Definition
None of the mentioned
Lisp procedures are formed by using lisp primitives and it is the primary purpose of procedure definition.
Which hides details behind abstraction boundaries?
Procedures
Procedure abstraction
Recursion
Both Procedures & Procedure abstraction
Procedure abstraction hides details behind abstraction boundaries and it is increase the security between layers.
Which is used to seperate the abstraction layers?
Abstraction boundaries
Data
Procedure
All of the mentioned
Abstraction boundaries help to keep abstraction layers separate from each other.
What is the process of arranging procedures into layers?
Procedure
Abstraction
Abstraction layers
Procedure abstraction
Abstraction layers helps to arrange procedures into layers.
Which abstractions have a prescribed behavior?
Auxiliary procedures
Procedure abstraction
Primary procedures
None of the mentioned
Auxiliary procedures will help to produce a proper result and it will have a prescribed behavior.
Which process helps to build large and complicated programs?
Macros
Procedure abstraction
Defun
None of the mentioned
Procedure abstraction process helps to build large and complicated programs and it is easy to understand.
Which makes it possible to print in tabulated columns?
Read
Directive
Format
Format also has the option to print the values in tabulated columns.
Which evaluates the expression twice during execution?
Read
Eval
Format
Eval evaluates the expression twice during execution.
Which primitive makes the messages consists of uppercase and lowercase letters?
Format
Directive
Read
Format primitive helps to create messages consisting of both uppercase and lowercase letters.
Which evaluates the single argument and prints it on a new line?
Format
With-open-file
All of the mentioned
The print primitive evaluates its single argument and prints it on a new line and prints a trailing space character.
Which can read expressions from data-files one at a time?
With-open-file
Directive
None of the mentioned
With-open-file can read expressions from data files one at a time, as they are needed for processing.
Which is used to produce a procedure object from a procedure name?
EQ
#'
EQUAL
None of the mentioned
From procedure name to produce procedure object # is used always.
What is meant by keyword argument?
Arguments that follows a keyword
Lists
Data
Procedure
It is used to modify a procedure's basic behaviour along the line.
Which predicate tests to see if its first argument is an element of its second argument?
EQ
=
MEMBER
None of the mentioned
MEMBER will return what is left of the list when the matching symbol is encountered.
Which primitive tests two arguments to see if their values are the same expression?
Equal
Eql
Eq
=
Equal primitive tests two arguments to see if their values are the same expression. It works on atoms and lists.
What is a procedure that returns a value that signals true or false?
List
Predicates
Data
None of the mentioned
A predicate is a procedure that returns a value that signals true or false.
Which is used to compare patterns and datums element by element?
Procedure
Compare
Equal
Matching
To compare patterns and datums element by element matching is used.
Which keeps variable binding on an association list?
Match
Compare
Equal
None of the mentioned
Match keeps variable binding on an association list.