Atoms are considered as S-expressions.
True
False
Answer and explanation
Atoms are also considered as S-expressions. Rather S-expressions are formed from atoms.
ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
10 practice sets · Page 1 of 1
Atoms are considered as S-expressions.
True
False
Atoms are also considered as S-expressions. Rather S-expressions are formed from atoms.
If X and Y are S-expression then (X.Y) is a/an ____
S-expression
Atom
List
Predicate
In LISP programming if X and Y are S-expressions then the dotted pair (X.Y) is also considered as S-expression.
What are the basic building blocks of S-expressions?
Atoms
Lists
Numbers
Predicates
Atoms are building blocks of S-expressions. Even atoms are considered as a fundamental unit of LISP.
All program statements and data in LISP are represented by S-expressions?
True
False
Yes, all the program statements and data are represented by S-expressions in LISP. S-expressions or symbolic expressions are the syntactic elements of the LISP programming language.
What S-expression consists of?
Atoms and Lists
Numeric only
Literals only
Atoms only
S-expression consists of both Atoms and Lists. It also consists of numeric and literals.
What is the use of (WRITE 'Argument)?
It converts argument in small letters to capital letters
It returns capital letters from the string
Same as (write 'argument)
It converts the string into alphabetical order/sequence
It works same as (write 'argument) because LISP is case insensitive language.
Is LISP a case sensitive language.
Yes
No
LISP is not a case sensitive language. Example: (print 'a) will behave same as (PRINT 'A).
Which of the following can be considered as List?
Number
T
NIL
Empty
An empty thing is also considered as List. Empty thing means the braces () with no arguments. Numbers are not counted in Lists.
What are examples of some of the atoms?
Numeric, Integer, Ratio
Numeric, Lists
Lists
Cons of two atoms
Atoms consist of Literals, Numbers, Integers, Ratios, Flonum. Lists are formed from atoms. Cons of two atoms is referred to as List.
If S1, S2, S3... are S-expressions then list: (S1 S2 S3 ....) is a/an ____
Atom
Error will occur
S-expression
Primitive
According to recursive definition of S-expression if S1, S2, S3... are S-expressions then list: (S1 S2 S3 ....) is also an S-expression. S-expression is short form of symbolic expressions.