Lisp Programming Language

Lisp Interview Questions

Lisp is the second-oldest high-level programming language. It is dynamic and strongly typed programming language developed by Steve Russell, Timothy P. Hart, and Mike Levin in 1958.

Read Best LISP Programming interview questions

Download Lisp Interview Questions PDF

Lisp Interview Questions

There are two types of variables are available in LISP one is lexical variable, and other is special variable
List Processing – LISP (or LISP) is the second oldest high-level programming language after Fortran developed by John McCarthy in 1958 while he was at the Massachusetts Institute of Technology (MIT). LISP is a commonly used language for artificial intelligence (AI) programming.LISP has changed since its early days, and many dialects have existed over its history. Today, the best known general-purpose LISP dialects are Common LISP and Scheme.
Prefix notation facilitates uniformity in LISP.
LISP stand for – List Processing – LISP (or LISP)
LISP was invented by John McCarthy in 1958.
* symbol is used to represent the prompt in LISP.
keyword argument are function arguments that are passed by keyword, instead of position.Keyword arguments can be mixed with by-position arguments, and default-value expressions can be supplied for either kind of argument:
(define greet
  (lambda (given #:last surname)
    (string-append "Hello, " given " " surname)))
 
> (greet "John" #:last "Smith") 
"Hello, John Smith"
> (greet #:last "Doe" "John")
"Hello, John Doe"

In above example last is a keyword argument.

LISP machines are general-purpose computers designed to efficiently run LISP as their main software and programming language, usually via hardware support. They are an example of a high-level language computer architecture, and in a sense, they were the first commercial single-user workstations.