Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

How To Pass Commands To Lg3?

Answer»

By selecting GENERAL OPERATIONS from the tools menu. You can think of the tools as BUILDING blocks – each tool corresponding to several LINES of LISP code. The tools you use and the order in which you SELECT them defines what your program does.

By selecting general operations from the tools menu. You can think of the tools as building blocks – each tool corresponding to several lines of LISP code. The tools you use and the order in which you select them defines what your program does.

2.

Explain What Is The Ouput Like?

Answer»

LG3 writes easy-to-read, fully indented AutoLISP programs LOADED with detailed comments in English that EXPLAIN what all of the LISP code is doing. The files are standard “.LSP” files. You can VIEW, edit, or print them with any editor, and run them on any AutoCAD system with or without the Generator.

LG3 writes easy-to-read, fully indented AutoLISP programs loaded with detailed comments in English that explain what all of the LISP code is doing. The files are standard “.LSP” files. You can view, edit, or print them with any editor, and run them on any AutoCAD system with or without the Generator.

3.

What If We Get Interrupted?

Answer»

You are FREE to come and go from the LISP Generator and do whatever you want in AutoCAD while you are in the middle of creating a program. There are helpful tools in CASE you FORGET things LIKE the names of variables you DEFINED.

You are free to come and go from the LISP Generator and do whatever you want in AutoCAD while you are in the middle of creating a program. There are helpful tools in case you forget things like the names of variables you defined.

4.

Why We Need Lisp?

Answer»

In short, no single improvement you can make to your AutoCAD system will save you more time, effort, and MONEY. You can SPEND thousands on the latest generation computers, the fastest video cards, and so on, but that won’t make nearly as big a difference as automating your system with software. With an arsenal of LISP routines, you will send accuracy, consistency, and productivity soaring while GREATLY reducing the STRESS and strain of CAD operation.

The right software is the key, and there is no amount of software you can buy that beats being able to program AutoCAD yourself with as many tailor-made routines as you want. And that is exactly what the LISP Generator enables you to do.

In short, no single improvement you can make to your AutoCAD system will save you more time, effort, and money. You can spend thousands on the latest generation computers, the fastest video cards, and so on, but that won’t make nearly as big a difference as automating your system with software. With an arsenal of LISP routines, you will send accuracy, consistency, and productivity soaring while greatly reducing the stress and strain of CAD operation.

The right software is the key, and there is no amount of software you can buy that beats being able to program AutoCAD yourself with as many tailor-made routines as you want. And that is exactly what the LISP Generator enables you to do.

5.

How To Save Programs To Files?

Answer»

FILES are standard LISP CODE that will RUN on any AutoCAD system.

files are standard LISP code that will run on any AutoCAD system.

6.

Mention How Many Types Of Variables Available Is Lisp? Explain What Are The Variables That Are Bound, And That Have Values Assigned To Them?

Answer»

The number of variables AVAILABLE in LISP is TWO ONE is lexical variable, and other is special variable. The parameter of procedures is variable which are BOUND and have values ALLOTTED to them.

The number of variables available in LISP is two one is lexical variable, and other is special variable. The parameter of procedures is variable which are bound and have values allotted to them.

7.

What Is Repl In Context Of Node?

Answer»

REPL stands for Read Eval Print Loop and it represents a computer environment LIKE a window console or unix/linux shell where a COMMAND is entered and system responds with an output. Node.js or Node comes bundled with a REPL environment. It performs the following desired tasks.

Read – Reads user’s INPUT, parse the input into JavaScript data-structure and stores in memory.

Eval – Takes and evaluates the data structure

Print – PRINTS the result

Loop – LOOPS the above command until user press ctrl-c twice.

REPL stands for Read Eval Print Loop and it represents a computer environment like a window console or unix/linux shell where a command is entered and system responds with an output. Node.js or Node comes bundled with a REPL environment. It performs the following desired tasks.

Read – Reads user’s input, parse the input into JavaScript data-structure and stores in memory.

Eval – Takes and evaluates the data structure

Print – Prints the result

Loop – Loops the above command until user press ctrl-c twice.

8.

What Is Lisp Programming?

Answer»

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.

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.

9.

What Is Lisp Machine (lispm)?

Answer»

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 high-level language computer ARCHITECTURE, and in a sense, they were the first commercial single-user WORKSTATIONS.

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 high-level language computer architecture, and in a sense, they were the first commercial single-user workstations.

10.

Explain What Is The Output Like?

Answer»

LG3 writes easy-to-read, FULLY indented Auto LISP PROGRAMS LOADED with detailed comments in English that explain what all of the LISP code is doing. The files are standard ".LSP" files. You can view, EDIT, or print them with any editor, and run them on any AutoCAD system with or without the Generator.

LG3 writes easy-to-read, fully indented Auto LISP programs loaded with detailed comments in English that explain what all of the LISP code is doing. The files are standard ".LSP" files. You can view, edit, or print them with any editor, and run them on any AutoCAD system with or without the Generator.

11.

What Is The Full Form Of Lisp?

Answer»

LISP STAND for – LIST PROCESSING – Lisp (or LISP).

Lisp stand for – List Processing – Lisp (or LISP).

12.

Who Is The Founder Of Lisp Programming?

Answer»

LISP was INVENTED by JOHN MCCARTHY in 1958.

Lisp was invented by John McCarthy in 1958.

13.

How Complex Can We Get?

Answer»

If you want, extremely complex. The LISP Generator UTILIZES nearly the entire Auto LISP language. There's no limit to how large your programs can be, and no limit to how complex they can be either. Even though most programs can be WRITTEN in a straightforward or "linear" manner, you have the option to write highly embedded code. You can nest multiple IF and LOOP statements within each other. Also, you can always feed complex operations or math equations as direct input to LARGER operations, which themselves could be embedded or "NESTED" in other operations, and so on. So, the SKY's the limit.

If you want, extremely complex. The LISP Generator utilizes nearly the entire Auto LISP language. There's no limit to how large your programs can be, and no limit to how complex they can be either. Even though most programs can be written in a straightforward or "linear" manner, you have the option to write highly embedded code. You can nest multiple IF and LOOP statements within each other. Also, you can always feed complex operations or math equations as direct input to larger operations, which themselves could be embedded or "nested" in other operations, and so on. So, the sky's the limit.

14.

Which Symbol Is Used To Represent The Prompt In Lisp?

Answer»

* SYMBOL is USED to REPRESENT the PROMPT in LISP.

* Symbol is used to represent the prompt in LISP.

15.

Which Notation Facilitates Uniformity In Lisp?

Answer»

PREFIX NOTATION FACILITATES UNIFORMITY in LISP.

Prefix notation facilitates uniformity in lisp.

16.

Explain What Is Local Variables?

Answer»

With a given procedure local variables are defined. The PARAMETERS NAMED as ARGUMENTS within a FUNCTION are also REFERRED as local variables. They are accessible only within the respective function.

With a given procedure local variables are defined. The parameters named as arguments within a function are also referred as local variables. They are accessible only within the respective function.

17.

Explain What Is Slot And What Are The Most Commonly Used Slot Options?

Answer»

SLOTS are nothing but variables that STORES data or fields. A slot description has the form, where each option is a keyword followed by NAME, EXPRESSION and other options.

The most COMMONLY used slot options are:

  • : accessor function-name
  • : initform expression
  • : initarg symbol

Slots are nothing but variables that stores data or fields. A slot description has the form, where each option is a keyword followed by name, expression and other options.

The most commonly used slot options are:

18.

Explain What Is A Lisp Constant?

Answer»

In LISP, during EXECUTION constants are variables that never change their values. Using the defconstant construct constants is DECLARED.

In LISP, during execution constants are variables that never change their values. Using the defconstant construct constants is declared.

19.

Mention What Are The Two Pre-defined Packages Used In Lisp?

Answer»

The two pre-defined packages in LISP are:

  • Common Lisp: It CONTAINS SYMBOLS for all the FUNCTIONS and variables defined.
  • Common Lisp USER: It uses the common-lisp package and all other packages with EDITING and debugging tools.

The two pre-defined packages in LISP are:

20.

Explain What Is The Property List In Lisp?

Answer»

In LISP, a symbol represents a data-object. It consists of component called Property LIST or plist. LISP ENABLES to ASSIGN properties to symbols. A property list is executed as a list within an EVEN numbers of elements.

In LISP, a symbol represents a data-object. It consists of component called Property list or plist. LISP enables to assign properties to symbols. A property list is executed as a list within an even numbers of elements.

21.

Mention What Are The Three Functions Required By Lisp?

Answer»

For DEFINING FUNCTIONS, MACRO named defund is used, it needs three ARGUMENTS

  • Name of the function
  • PARAMETERS of the function
  • Body of the function

For defining functions, macro named defund is used, it needs three arguments

22.

What Is Meant By Keyword Argument In Lisp?

Answer»

Keyword arguments 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.

Keyword arguments 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.

23.

What Is Meant By Symbolic Expression In Lisp?

Answer»

The S- expression. The syntactic elements of the Lisp programming language are symbolic expressions, ALSO known as s-expressions. Both PROGRAMS and data are represented as s-expressions: an s-expression may be either an ATOM or a LIST.

The S- expression. The syntactic elements of the Lisp programming language are symbolic expressions, also known as s-expressions. Both programs and data are represented as s-expressions: an s-expression may be either an atom or a list.

24.

Can I Save My Programs To Files?

Answer»

YES, absolutely, and the FILES are STANDARD LISP CODE that will run on any AUTOCAD system.

Yes, absolutely, and the files are standard LISP code that will run on any AutoCAD system.