×

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 15 Bootstrap Interview Questions for 2024

1) Explain what is Bootstrap? It is a Framework which is used for building the web application with minimal effort. Bootstrap is also used for developing responsive, mobile-first web sites. 2) What...

10 minutes read.

PhoneGap Interview Questions 2024

Top 50 Phonegap Interview Questions with their Answers Once you have acquired practical knowledge of the PhoneGap technology, you will now be able to search for a job as a mobile...

9 minutes read.

Top 19 Google Maps Interview Questions for 2024

1) What is Google Maps? Google Maps is a web-based service developed by Google. It contains geographical information and provides routes and information to the client. 2) What are the features provided...

5 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 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.

Top 28 Firebase Interview Questions for 2024

1) What is Firebase? Firebase is a platform which is used for building Web, IOS and Android applications. It offers: Real time database Different APIs Multiple authentication types and Hosting platform 2) What are the features of...

3 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.

SSIS Interview Questions and Answers

Q.1 What is SSIS? SQL Server Integration Service (SSIS) is a component of Microsoft SQL Server. It is a powerful ETL tool that is used for building enterprise-level data transformation and...

5 minutes read.

Top 30 FuelPHP Framework Interview Questions for 2024

1) What is FuelPHPFramework? FuelPHP Framework is an open source web application and written in PHP scripting language. It is based on the HMVC (Hierarchical Model View Controller) design pattern. It was released...

6 minutes read.

Top 15 iOS (iPhone, iPad) Interview Questions for 2024

Top 20 Most Frequently asked iOS Interview Questions and Answers 1) What is iOS? iOS is a mobile operating system developed by Apple Inc. iOS offers iPhone and iPad application development using...

3 minutes read.

Top 30 Ruby on Rails Interview Questions for 2024

1) What is Ruby on Rails? It is a server-side web application framework. It is an open source ruby framework which is used for developing database-backed web applications. Here, no compilation phase is...

4 minutes read.

Top 31 Koa Interview Questions for 2024

1) What is Koa? Koa is a very small framework which provides us a minimal interface to build our applications. It is quite flexible and there are numerous modules available on...

4 minutes read.

Top 15 Framework7 Interview Questions for 2024

1) What is Framework7? Framework7 is an open source mobile HTML framework. It is used todevelop hybrid mobile apps for iOS and Android devices. 2) Why, framework7 is popular? There are various reasons...

8 minutes read.

Top 15 RequireJs Interview Questions for 2024

1) What is RequireJs? RequireJs is a open source JavaScript library which is used to maintain dependencies between JavaScript files and modular programming. 2) What are the features of RequireJs? Following are the...

3 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 15 Java BeanUtils Interview Questions for 2024

1) What is Java BeanUtils? Java BeanUtils is a design pattern component of the Apache Commons. It facilitates architecture for Java language which is derived from JavaAPI. It helps to set...

3 minutes read.

Top 15 ExpressJS Interview Questions for 2024

1) What is ExpressJs? Express Js is a framework for node.js which is light-weight and fast. It is used to develop web and mobile applications. 2) What are the features of ExpressJs? Following...

4 minutes read.

Ember.js Interview questions

1) What is Ember.js? Ember.js is a JavaScript front-end Framework. It provides developer both features for managing complexity in modern web-apps as well as integrated development kit. 2) Why choose Ember.js? Logical...

2 minutes read.

Top 29 Pascal Interview Questions for 2024

1) What is Pascal? Pascal is a high-level and Algol-based language that was developed by Niklaus Wirth. It is used to develop efficient and reliable programs. 2) What are the features of Pascal? Features...

4 minutes read.

Top 30 Go Programming Language Interview Questions for 2024

1) What is Go Programming language? Go programming language is an open source programming language. It is developed at Google in 2007. It is designed for system programming language. 2) Who designed...

4 minutes read.