×

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

SSRS Interview Questions

1. What is SSRS? The Microsoft SQL Server Reporting Service (SSRS) is a server-based reporting platform. It allows you to produce structured reports. The reports are generally represented in the form of data, graph,...

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

Backbone.js Interview Questions

1) What is Backbone.js? Backbone.js is a JavaScript framework or library. It is a client-side framework which helps in creating single page application in organized manner i.e. structured layout. 2) Backbone.js is...

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

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 16 Yii PHP Framework Interview Questions for 2024

1) What is Yii Framework? Yii is an open source, web application framework based on MVC. It is written in PHP and used to design PHP applications. This application was started...

4 minutes read.

Flutter Interview Questions

Here’s a list of top Flutter questions that are frequently asked. Q1.  Is Flutter an open-source? A1.  Yes, Flutter is a 100% open-source software development kit. Q2.  What are flutter widgets? A2.  Widgets are...

7 minutes read.

Bugzilla interview Questions

Frequently asked questions about Bugzilla Q1. What are reports in Bugzilla? A1. Reports can be defined as an interface between the user and the database of Bugzilla. It helps to examine and...

4 minutes read.

Top 30 JSF Interview Questions for 2024

1) What is JSF? JSF stands for Java Server Faces is a Java-Based web application framework. JSF (Java Server Faces) provides a facility to connect UI widgets with data sources. 2) What are...

4 minutes read.

Top 15 Haskell Interview Questions for 2024

1) What is Haskell? Haskell is a functional programming language. It is based on mathematical functions. This programming language is more intelligent than other popular programming languages. 2) Who is the developer of...

2 minutes read.

Top 15 Apache Tapestry Interview Questions for 2024

1) What is Apache Tapestry? It is an open source web framework written in Java and can work under any application server. It is easily integrate with back ends like Hibernate...

2 minutes read.

Top 15 NodeJS Interview Questions for 2024

1) What is NodeJs? NodeJs is open source JavaScript based feamework used to develop I/O intensive web application. It is collections of JavaScript library and runtime environment. It is used to...

3 minutes read.

Top 15 PostgreSQL Interview Questions for 2024

1) What is PostgreSQL? PostgreSQL is a most advance open source database system. PostgreSQL is an object Oriented Relational Database Management System (ORDBMS). PostgreSQL source code is available free of charge...

3 minutes read.

Top 15 Highcharts Interview Questions for 2024

1) What is Highcharts? Highcharts is a JavaScript based charting library. It is used to enhance web applications by adding interactive charting capability. Highcharts supports a wide range of charts. Charts are drawn using...

2 minutes read.

Top 30 Drupal Interview Questions for 2024

1) What is Drupal? Drupal is an open source CMS (Content Management System) framework. It is written in php and provides rich set of tools to create web sites. 2) What are...

4 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 30 D Programming Language Interview Questions for 2024

1) What is D programming language? D programming language is an object oriented programming language. It is created by Walter Bright of Digital Mars. It was released in 2001. 2) Who is the...

4 minutes read.

Top 25 Android Interview Questions for 2024

1) What is Android? It is a software package and open-source operating system that is used in mobile devices. It is also a Linux kernel-based system operating system and application executes within...

3 minutes read.

Top 16 Groovy interview Questions for 2024

1) What is Groovy? Groovy is an object oriented programming language. It is based on java platform. It can also be used as scripting language. 2) Who designed the Groovy? James Strachan designed...

2 minutes read.