×

Top 28 LISP Interview Questions for 2024

1) What is LISP?

LISP is the high-level programming language after Fortran. LISP is stands for List Processing. This programming language was invented by John McCarthy in 1958 at the Massachusetts Institute of Technology (MIT).

2) Write a program in LISP to find sum of three numbers?

Example:
  1. (write (+ 8 10 12))

3) Write a program in LISP to print "LISP EXPERT"?

Example:
(write-line "LISP EXPERT")

4) What is the programming structure for LISP?

Programming structure is composed of symbolic expressions(s-expressions). s-expression: It consists of three valid objects:
  • Atom: string of contiguous characters
  • String: A group of characters
  • Lists: sequence of atoms

5) What are the common objectives of LISP?

The common objectives of LISP are:
  • Provides smooth growth path and easy transitions
  • Provides layered approach
  • Provides language for powerful programming environment
  • Provides the efficient delivery of applications

6) What is setq in LISP?

setq: It is used to set variables in LISP.

7) What is slot?

slot: It is a variable which is used to store data or field.

8) What are the most commonly used slot options?

Most Commonly used slot options are:
  • initarg symbol
  • initform expression
  • accessor function-name

9) What are the two pre-defined packages used in LISP?

Pre-defined packages LISP are:
  • Common Lisp User( Contains packages with editing and debugging tools)
  • Common Lisp(Contains functions and variables)

10) What is the importance of the hash table in LISP?

Hash table in LISP is a collection of key and value pairs which is based on the hash code of the key. It is used to access the items in the collection.

11) How many types of variables are available in LISP?

Two types of variables are available in lisp:
  • lexical variable
  • special variable

12) How many data types are categorized in LISP?

There are two types of data types:
  • Data Structure: Strings, list, bit-vectors etc
  • Scalar Types: Characters, Number types etc

13) What is Lisp Constants?

In Lisp, Constants are variables and the value of constant can't be changed. Construct constants are declared by using defconstant in Lisp.

14) What is the use of predicate in LISP?

It is a type of function that is used to test the arguments for specific conditions. Conditions are:
  • Returns nil value if condition is false
  • Retrieves some non-nil value if condition is true

15) What are the three defun macro arguments to define a function in LISP?

The arguments are:
  • Name of the function
  • Body of the function
  • Parameters of the function

16)What are the features of LISP?

The features of LISP are:
  • LISP is a machine-independent language
  • LISP uses iterative design methodology
  • LISP provides high level debugging.
  • LISP provides complete I/O library
  • LISP is a expression-based language

17)What are the types of applications built in LISP?

The types of applications built in LISP are:
  • G2
  • Emacs
  • AutoCad
  • Yahoo Store
  • Igor Engraver

18) What is the file extensions used in LISP?

lisp or .lsp is the file extensions used in LISP.

19) What is REPL?

REPL: stands for read-evaluate-print loop. It is interpreter that is used to check the source code in a repeated loop.

20) Which notation LISP follows?

LISP follows the prefix notation.

21) What is typep predicate in LISP?

typep predicate: It is used for finding whether an object belongs to a specific type.

22) What is macro in LISP?

macro: It is a function that takes an s-expression as arguments and returns a LISP form, which is then evaluated

23) Which construct is used to declare the global variables in LISP?

defvar construct is used to declare the global variables in LISP.

24) What is the use of block function in LISP?

block function: It is used to create a named block with a body composed of zero or more statements.

25) What is the use of defun macro in LISP?

defun macro: It is used for defining functions. Defun macro needs three arguments to define a function:
  • Name of the function
  • Parameters of the function
  • Body of the function

26) What are the number types supported by LISP?

The number types supported by LISP are:
  • Ratios
  • Integers
  • Complex numbers
  • Floating-point numbers

27) Which function is used to create a sequence in LISP?

make-sequence function is used to create a sequence in LISP.

28) What is the syntax used to create a sequence in LISP?

The syntax used to create a sequence is:
  1. make-sequence sqtype sqsize &key :initial-element

Related Topics

Top 30 Cassandra Interview Questions for 2024

1) Explain. What is Cassandra? Cassandra is an open source data storage system. It was developed at Facebook for inbox search and designed for storing and managing large amount of data. 2)...

5 minutes read.

Top 20 C Programming | Coding Interview Questions for 2024

Most Frequently asked C programming | Coding Interview Questions and answer for Fresher C is a powerful high-level programming language.  It is a fast, portable and available for all platforms. C...

15 minutes read.

Top 15 C Interview Questions for 2024

1) What are different storage class specifiers in C? Register,auto, static, extern are the storage class specifiers in C. 2) What is scope of a variable? How are variables scoped in C? Scope...

3 minutes read.

Top 15 Pure CSS Interview Questions for 2024

1) What is Pure CSS? Pure is a CSS (Cascading Style Sheet) framework. It is a collection of small set of responsive CSS modules. We can integrate it to any web...

5 minutes read.

Top 15 ASP.NET MVC Framework Interview Questions for 2024

1) What is ASP.NET MVC Framework? ASP.NET MVC framework is a software architecture pattern for developing web applications. It is used to split the application's implementation logic into three components: models,...

4 minutes read.

Top 10 Java Swing Interview Questions for 2024

1) What is Java Swing? It is a part of JFC (Java Foundation Classess) that is used to create window-based applications. Java Swing components are platform independent and lightweight . 2) What is...

3 minutes read.

Top 40 IoT Interview Questions and Answers in 2024

Q.1 What is IoT? IoT stands for the Internet of things refers to the interconnection of the network of various devices that can recognize, collect and transfer data over the internet...

13 minutes read.

Top 30 Flex Interview Questions for 2024

1) What is Flex? Flex is an open source framework which is used to build applications for mobile, browser and desktop. It provides FLEX SDK consisting of the Flex class library, Flex...

4 minutes read.

Top 15 KnockoutJS Interview Questions for 2024

1) What is KnockoutJS? It is a JavaScript library which is based on MVVM pattern that helps developers in building rich and responsive websites. 2) Who is the author of KnockoutJS? Steve Sanderson is...

2 minutes read.

Top 30 Magento Interview Questions for 2024

1) What is Magento? Magento is an open-source content management system. It is used to create e-commerce websites. It is developed by Varien ,Inc, a US private company headquartered in Culver City, California. It...

5 minutes read.

Top 25 MySQL Interview Questions for 2024

1) What is MySQL? MySql is defined as multi-user DBMS which is built and distributed my MySQLab now acquired by Oracle Co. 2) Enlist the features of MySQL. Cross-Platform Support Wide range...

3 minutes read.

Top 20 Java Programming Coding Interview Questions for 2024

Coding is an integral part of any programming language. It is the most important phase of an interview. Interviewee checks the capability of thinking of any particular. I think one...

13 minutes read.

Top 50 HTML Interview Questions for 2024

1) What is HTML? HTML stands for Hyper Text Markup Language. It is used for creating web pages and web applications. HTML documents are made up of two things: the content and the tags. 2) What are...

10 minutes read.

Top 30 Aurelia Interview Questions and Answers

1) What is Aurelia? Aurelia is an open source UI framework which is used for web and mobile app development. This framework is focused on web standards and follows simple conventions. 2) What...

2 minutes read.

Top 28 Scala Interview Questions for 2024

1) What is Scala? Scala is a functional and object-oriented programming language. It is used to develop web application, mobile application, enterprise application, desktop based application etc. Everything in Scala is in object...

4 minutes read.

Top 50 ReactJS Interview Questions for 2024

Top 50 Frequently asked ReactJS Interview Questions Q-1. What is React? Ans-1 React is a front-end JavaScript library which is developed by Facebook in 2011. It follows the component-based approach and allows us to...

15 minutes read.

Polymer.js Interview Questions

1) What is Polymer.js? Polymer.js is an open source JavaScript library. It is developed by Google. It is used to develop web applications for using of web components like HTML. 2) Describe...

3 minutes read.

Top 30 CodeIgniter interview Questions for 2024

1) What is CodeIgniter? CodeIgniter is an open source PHP framework. It is used to develop web applications and websites. It is loosely based on MVC pattern and easy to use...

4 minutes read.

Top 25 DB2 Interview question for 2024

1) Give breif detail about DB2? DB2 is a Relational Database Management System developed by IBM. It supports Object Oriented features and non-relational structures with XML. 2) Enlist the types of datatypes...

3 minutes read.

Top 30 AngularJS Interview Questions and Answers for 2024

Most Frequently asked AngularJS Interview Questions and Answers for Fresher 1) Describe Angular JS ? It is a powerful framework of JavaScript. AngularJS is used to design Rich Internet Application. This framework...

5 minutes read.