Interview Questions

AJAX Interview Questions Android Interview Questions Angular 2 Interview Questions AngularJs Interview Questions Apache Presto Interview Questions Apache Tapestry Interview Questions Arduino Interview Questions ASP.NET MVC Interview Questions Aurelia Interview Questions AWS Interview Questions Blockchain Interview Questions Bootstrap Interview Questions C Interview Questions C Programming Coding Interview Questions C# Interview Questions C++ Interview Questions Cakephp Interview Questions Cassandra Interview Questions CherryPy Interview Questions Clojure Interview Questions Cobol Interview Questions CodeIgniter interview Questions CoffeeScript Interview Questions Cordova Interview Questions CouchDB interview questions CSS Buttons Interview Questions CSS Interview Questions D Programming Language Interview Questions Dart Programming Language Interview Questions Data structure & Algorithm Interview Questions DB2 Interview Questions DBMS Interview Questions Django Interview Questions Docker Interview Questions DOJO Interview Questions Drupal Interview Questions Electron Interview Questions Elixir Interview Questions Erlang Interview Questions ES6 Interview Questions and Answers Euphoria Interview Questions ExpressJS Interview Questions Ext Js Interview Questions F# Interview Questions Firebase Interview Questions Flask Interview Questions Flex Interview Questions Fortran Interview Questions Foundation Interview Questions Framework7 Interview Questions FuelPHP Framework Interview Questions Go Programming Language Interview Questions Google Maps Interview Questions Groovy interview Questions GWT Interview Questions Hadoop Interview Questions Haskell Interview Questions Highcharts Interview Questions HTML Interview Questions HTTP Interview Questions Ionic Interview Questions iOS Interview Questions IoT Interview Questions Java BeanUtils Interview Questions Java Collections Interview Questions Java Interview Questions Java JDBC Interview Questions Java Multithreading Interview Questions Java OOPS Interview Questions Java Programming Coding Interview Questions Java Swing Interview Questions JavaFX Interview Questions JavaScript Interview Questions JCL (Job Control Language) Interview Questions Joomla Interview Questions jQuery Interview Questions js Interview Questions JSF Interview Questions JSP Interview Questions KnockoutJS Interview Questions Koa Interview Questions Laravel Interview Questions Less Interview Questions LISP Interview Questions Magento Interview Questions MariaDB Interview Questions Material Design Lite Interview Questions Materialize CSS Framework Interview Questions MathML Interview Questions MATLAB Interview Questions Meteor Interview Questions MongoDB interview Questions Moo Tools Interview Questions MySQL Interview Questions NodeJS Interview Questions OpenStack Interview Questions Oracle DBA Interview Questions Pascal Interview Questions Perl interview questions Phalcon Framework Interview Questions PhantomJS Interview Questions PhoneGap Interview Questions Php Interview Questions PL/SQL Interview Questions PostgreSQL Interview Questions PouchDB Interview Questions Prototype Interview Questions Pure CSS Interview Questions Python Interview Questions R programming Language Interview Questions React Native Interview Questions ReactJS Interview Questions RequireJs Interview Questions RESTful Web Services Interview Questions RPA Interview Questions Ruby Interview Questions Ruby on Rails Interview Questions SAS Interview Questions SASS Interview Questions Scala Interview Questions Sencha Touch Interview Questions SEO Interview Questions Servlet Interview Questions SQL Interview Questions SQL Server Interview Questions SQLite Interview Questions Struts Interview Questions SVG Interview Questions Swift Interview Questions Symfony PHP Framework Interview Questions T-SQL(Transact-SQL) Interview Questions TurboGears Framework Interview Questions TypeScript Interview Questions UiPath Interview Questions VB Script Interview Questions VBA Interview Questions WCF Interview Questions Web icon Interview Questions Web Service Interview Questions Web2py Framework Interview Questions WebGL Interview Questions Website Development Interview Questions WordPress Interview Questions Xamarin Interview Questions XHTML Interview Questions XML Interview Questions XSL Interview Questions Yii PHP Framework Interview Questions Zend Framework Interview Questions

Top 28 LISP Interview Questions for 2022

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



ADVERTISEMENT
ADVERTISEMENT