Common Lisp/Common Lisp MCQ Interview Questions for Freshers Sample Test,Sample questions

Question:
 How many types of arguments are available in lisp? 

1.2

2.3

3.4

4.5


Question:
 Language model used in LISP is 

1.Logic programming

2. Functional programming

3.Object oriented programming

4.All of the Above


Question:
 Lists can be formed from ____

1.atoms

2.atoms and lists

3.lists

4.none of the mentioned


Question:
 The files are specified as _ _ _ _ in LISP. 

1.Strings

2.Characters

3.Booleans

4. All of the Above


Question:
 What will be output of the following LISP program?

(defun b(z) (+ z z) )
* (setq z 1)
* (write b z)

1.Error

2.2

3.1

4. no output


Question:
 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)

1. (C D) (C D)

2. (C D) (U V)

3.(U V) (U V)

4. (U V (C D)


Question:
 What will be the output of the following LISP statement?

1. “better””better”

2.“better”

3. “better “better””

4.error will occur


Question:
............. is the notation used for writing LISP Syntax. 

1. Infix

2.Prefix

3.Postfix

4.None of above


Question:
Can write-line keyword be used for printing strings?

1.True

2.False


Question:
Does value of an actual parameter change in the procedure?

1.Yes

2.No

3.Sometimes

4.None of the mentioned


Question:
In lisp, what is meant by symbolic expression?

1.Atoms and list

2.Lists

3.Atoms

4.Numbers


Question:
In lisp, what is meant by symbolic expression?

1.Atoms and list

2.Lists

3.Atoms

4.Numbers


Question:
Is LISP a case sensitive language?

1.No

2.Yes


Question:
Symbol manipulation in LISP is called as _____

1. atoms

2.lists

3. list processing

4.none of the mentioned


Question:
The Lisp facilitates _ _ _ _ in computer science learning. 

1.Clojure

2.Common LISP

3.Common LISP and Scheme

4.All of the Above


Question:
What can be used to print “yes, no”?

1.(print “yes,no”)

2. (write “yes , no!”)

3.(print “yes,”)(print “,no”)

4.(print “yes”)(print “,”)(print “no”)


Question:
What does Lisp stands for? 

1. Like Processing

2.List Processing

3. Light Processing

4.None of above


Question:
What does Lisp stands for? 

1. Like Processing

2.List Processing

3. Light Processing

4.None of above


Question:
What is the output of the following LISP program?

(defun b(p) (+ p p) )
* (setq z 1)
* (b z)

1.2

2.1

3.3

4.error


Question:
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)

1.YES

2.NO

3.NIL

4.T


Question:
What will be the output of the following LISP statement?

1. “ABC”

2.ABC

3. ‘ABC

4.none of the mentioned


Question:
What will be the output of the following LISP statement?

1.|ABC|

2.ABC

3.“ABC”

4.None of the mentioned


Question:
What will be the output of the following LISP statement?

1.“better””better”

2.“better”

3. error will occur

4.none of the mentioned


Question:
What will be the output of the following LISP statement?

1. welcome

2. “welcome”

3.no output due to error

4.both welcome and “welcome” are possible


Question:
Which of the following are general-purpose dialects of LISP?

1.Clojure

2.Common LISP

3.Common LISP and Scheme

4. Clojure, Command LISP and Scheme


Question:
Which of the following is part of basic syntax in LISP programming?

1.+

2.#include

3.NULL

4.Primitive


Question:
Which of the following is the basic building blocks of S-expressions?

1.Lists

2.Atoms

3.Numbers

4.Predicates


Question:
Which of the following is used to build the lisp procedures? 

1. Data

2. Definition

3.Primitives

4.All of the Above


Question:
Which of the following symbol is used to represent the prompt in lisp?

1. $

2.&

3. *

4.#


Question:
Which primitive is used to define a procedure?

1.defun

2.defpro

3.defin

4.def


More MCQS

  1. Common Lisp MCQ Interview Questions for Freshers
Learn Common Lisp MCQ Interview Questions for Freshers,Learn Common Lisp Objetive choice questions and answers,Common Lisp Multiple choice questions and answers,Common Lisp objective, Common Lisp questions , Common Lisp answers,Common Lisp MCQs questions and answer
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!