Which primitive removes all but the last element from the list?
Last
First
Remove
Revoke
View Answer
Correct Answer: A — Last
Explanation:
"Last" is used whenever there is a requirement of only last element of list.
Browse topic-based LISP practice sets.
186 practice sets · Page 5 of 10
Which primitive removes all but the last element from the list?
Last
First
Remove
Revoke
Correct Answer: A — Last
Explanation:
"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
Correct Answer: B — Primitives
Explanation:
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
Correct Answer: B — Procedure abstraction
Explanation:
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
Correct Answer: A — Abstraction boundaries
Explanation:
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
Correct Answer: C — Abstraction layers
Explanation:
Abstraction layers helps to arrange procedures into layers.
Which abstractions have a prescribed behavior?
Auxiliary procedures
Procedure abstraction
Primary procedures
None of the mentioned
Correct Answer: A — Auxiliary procedures
Explanation:
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
Correct Answer: B — Procedure abstraction
Explanation:
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
Correct Answer: D — Format
Explanation:
Format also has the option to print the values in tabulated columns.
Which evaluates the expression twice during execution?
Read
Eval
Format
Correct Answer: B — Eval
Explanation:
Eval evaluates the expression twice during execution.
Which primitive makes the messages consists of uppercase and lowercase letters?
Format
Directive
Read
Correct Answer: A — Format
Explanation:
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
Correct Answer: C — Print
Explanation:
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
Correct Answer: B — With-open-file
Explanation:
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
Correct Answer: B — #'
Explanation:
From procedure name to produce procedure object # is used always.
What is meant by keyword argument?
Arguments that follows a keyword
Lists
Data
Procedure
Correct Answer: A — Arguments that follows a keyword
Explanation:
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
Correct Answer: C — MEMBER
Explanation:
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
=
Correct Answer: A — Equal
Explanation:
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
Correct Answer: B — Predicates
Explanation:
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
Correct Answer: D — Matching
Explanation:
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
Correct Answer: A — Match
Explanation:
Match keeps variable binding on an association list.
What is the name of elements present in patterns?
Variables
Patterns
Pattern variables
Pattern elements
Correct Answer: C — Pattern variables
Explanation:
Patterns can contain elements called pattern variables.