Atoms are considered as S-expressions.
True
False
Browse topic-based LISP practice sets.
186 practice sets · Page 1 of 10
Atoms are considered as S-expressions.
True
False
If X and Y are S-expression then (X.Y) is a/an ____
S-expression
Atom
List
Predicate
What are the basic building blocks of S-expressions?
Atoms
Lists
Numbers
Predicates
All program statements and data in LISP are represented by S-expressions?
True
False
What S-expression consists of?
Atoms and Lists
Numeric only
Literals only
Atoms only
Think of a way to write addition of four numbers using maximum possible braces?
(+ 1 2 3 4)
(+ (+ 1 2) (+ 3 4))
(+ 1 (+ 2 (+ 3 (4))))
(+ 1 2 (+ 3 4))
Can LISP programs be nested?
Yes
No
What is the basic syntax of LISP (Note: arg means argument here)
( ...)
( )
( )
( ... )
How many arguments do a single LISP program has?
One
Two
Any number of arguments
Three
Arguments are ____ a part of LISP Syntax.
sometimes
always
vever
not considered as
Which of the following is part of basic syntax in LISP programming?
Primitive
NULL
#include
Choose correct statement about arg1 of setq syntax.
It is a list
It is a symbol in which value is stored
It is an arithmetic operator
It is a primitive
What can be used as an argument for a primitive?
Atoms and List
Another LISP programs
A user-defined function
Atoms, List, Another LISP program, Used-defined function
What is the notation used for writing LISP Syntax?
Prefix
Infix
Postfix
Different notations for different LISP Primitives
In the syntax (setf arg1 arg2), what is arg2?
A variable
A value to be set on arg1
It is the definition of arg1
A formula
In the syntax (setf arg1 arg2), what is arg1?
Value to be set
Variable on which value is set
Set of lists
Set of elements forming a list
Does value of an actual parameter change in the procedure?
Yes
No
Sometimes
None of the mentioned
Can the actual parameters and formal parameters be of same name?
Yes
No
Can the parameters be passed to procedures in LISP?
No
Yes
Which primitive is used to define a procedure?
defun
defpro
defin
def