Explore topic-wise MCQs in Lisp.

This section includes 11 Mcqs, each offering curated multiple-choice questions to sharpen your Lisp knowledge and support exam preparation. Choose a topic below to get started.

1.

Choose the correct output statement among these.

A. 3.33
B. FLOAT
C. Error
D. 3View Answer
Answer» B. FLOAT
2.

What will be stored in tap after the execution of the following statement?

A. PLASTIC
B. WOOD
C. PLASTIC WOOD
D. ErrorView Answer
Answer» B. WOOD
3.

What will be the value of p after the following statement?

A. A B C D
B. B C D
C. A
D. ErrorView Answer
Answer» B. B C D
4.

What is the value of p after this statement?

A. 7
B. 3
C. 4
D. ErrorView Answer
Answer» B. 3
5.

What is the value of q after this statement?

A. 2
B. 22
C. 222
D. 3View Answer
Answer» B. 22
6.

In the syntax (setf arg1 arg2), what is arg2?

A. A variable
B. A value to be set on arg1
C. It is the definition of arg1
D. A formula
Answer» C. It is the definition of arg1
7.

7?$

A. 3
B. 4
C. Error
Answer» B. 4
8.

Choose correct statement about arg1 of setq syntax.

A. It is a list
B. It is a symbol in which value is stored
C. It is an arithmetic operator
D. It is a primitive
Answer» C. It is an arithmetic operator
9.

What can be used as an argument for a primitive?

A. Atoms and List
B. Another LISP programs
C. A user-defined function
D. Atoms, List, Another LISP program, Used-defined function
Answer» E.
10.

What is the notation used for writing LISP Syntax?

A. Prefix
B. Infix
C. Postfix
D. Different notations for different LISP Primitives
Answer» B. Infix
11.

In the syntax (setf arg1 arg2), what is arg1?

A. Value to be set
B. Variable on which value is set
C. Set of lists
D. Set of elements forming a list
Answer» C. Set of lists