Olete.in
Articles
Mock Tests
🧪 Common Lisp MCQ Quiz Hub
Common Lisp MCQ Interview Questions for Freshers
Choose a topic to test your knowledge and improve your Common Lisp skills
1. Which of the following is the basic building blocks of S-expressions?
Lists
Atoms
Numbers
Predicates
2. Is LISP a case sensitive language?
No
Yes
3. Which of the following is part of basic syntax in LISP programming?
+
#include
NULL
Primitive
4. Symbol manipulation in LISP is called as _____
atoms
lists
list processing
none of the mentioned
5. Lists can be formed from ____
atoms
atoms and lists
lists
none of the mentioned
6. Which of the following are general-purpose dialects of LISP?
Clojure
Common LISP
Common LISP and Scheme
Clojure, Command LISP and Scheme
7. What can be used to print “yes, no”?
(print “yes,no”)
(write “yes , no!”)
(print “yes,”)(print “,no”)
(print “yes”)(print “,”)(print “no”)
8. Can write-line keyword be used for printing strings?
True
False
9. What will be the output of the following LISP statement?
“ABC”
ABC
‘ABC
none of the mentioned
10. What will be the output of the following LISP statement?
|ABC|
ABC
“ABC”
None of the mentioned
11. What will be the output of the following LISP statement?
“better””better”
“better”
“better “better””
error will occur
12. What will be the output of the following LISP statement?
“better””better”
“better”
error will occur
none of the mentioned
13. What will be the output of the following LISP statement?
welcome
“welcome”
no output due to error
both welcome and “welcome” are possible
14. ............. is the notation used for writing LISP Syntax.
Infix
Prefix
Postfix
None of above
15. What does Lisp stands for?
Like Processing
List Processing
Light Processing
None of above
16. What does Lisp stands for?
Like Processing
List Processing
Light Processing
None of above
17. In lisp, what is meant by symbolic expression?
Atoms and list
Lists
Atoms
Numbers
18. In lisp, what is meant by symbolic expression?
Atoms and list
Lists
Atoms
Numbers
19. How many types of arguments are available in lisp?
2
3
4
5
20. The Lisp facilitates _ _ _ _ in computer science learning.
Clojure
Common LISP
Common LISP and Scheme
All of the Above
21. Which of the following symbol is used to represent the prompt in lisp?
$
&
*
#
22. Which of the following is used to build the lisp procedures?
Data
Definition
Primitives
All of the Above
23. Language model used in LISP is
Logic programming
Functional programming
Object oriented programming
All of the Above
24. The files are specified as _ _ _ _ in LISP.
Strings
Characters
Booleans
All of the Above
25. Which primitive is used to define a procedure?
defun
defpro
defin
def
26. Does value of an actual parameter change in the procedure?
Yes
No
Sometimes
None of the mentioned
27. What is the output of the following LISP program? (defun b(p) (+ p p) ) * (setq z 1) * (b z)
2
1
3
error
28. What will be output of the following LISP program? (defun b(z) (+ z z) ) * (setq z 1) * (write b z)
Error
2
1
no output
29. What will be stored in Z at A & B? (defun b (z) z (Position A) (setf z '(u v)) ) * (setf z '(c d)) * (b z) * z (Position B)
(C D) (C D)
(C D) (U V)
(U V) (U V)
(U V (C D)
30. What is the output of the following LISP program? (defun raw(p) (if (equal p '(not cooked)) (setq q 'YES) (setq q 'NO))) (setq rice '(not cooked)) *(raw rice)
YES
NO
NIL
T
Submit