100+ TOP Computer Graphics Lab VIVA Questions and Answers

COMPUTER GRAPHICS LAB VIVA Questions :-

1. What is scan conversion?
A major task of the display processor is digitizing a picture definition given in an application program into a set of pixel-intensity values for storage in the frame buffer. This digitization process is called scan conversion.

2. Write the properties of video display devices?
Properties of video display devices are persistence,resolution, and aspect ratio.

3. What is rasterization?
The process of determining the appropriate pixels for representing picture or graphics object is known as rasterization.

4. Define Computer graphics.
Computer graphics remains one of the most existing and rapidly growing computer fields. Computer graphics maybe defined as a pictorial representation or graphical representation of objects in a computer.

5. Name any four input devices?
Four input devices are keyboard, mouse, image scanners,and trackball.

COMPUTER GRAPHICS VIVA Questions

6. Write the two techniques for producing color displays with a CRT?
Beam penetration method, shadow mask method.

7. What is vertical retrace of the electron beam?
In raster scan display, at the end of one frame, the electron beam returns to the left top corner of the screen to start the next frame.

8. Short notes on video controller?
Video controller is used to control the operation of the display device. A fixed area of the system is reserved for the frame buffer, and the video controller is given direct access to the frame buffer memory.

9. What is bitmap?
Some system has only one bit per pixel; the frame buffer is often referred to as bitmap.

10. Differentiate plasma panel display and thin film electro luminescent display?
In plasma panel display, the region between two glass plates is filled with neon gas. In thin film electro luminescent display, the region between two glasses plates are filled with phosphor, such as zinc sulphide doped with manganese.

11. What is resolution?
The maximum number of points that can be displayed without overlap on a CRT is referred to as the resolution.

12. What is horizontal retrace of the electron beam?
In raster scan display, the electron beam return to the left of the screen after refreshing each scan line, is called horizontal retrace of the electron beam.

13. What is filament?
In the CRT, heat is applied to the cathode by directing a current through a coil of wire, is called filament.

14. What is pixel map?
Some system has multiple bits per pixel, the frame buffer is often referred to as pixel map.

15. Write the types of clipping?
Point clipping, line clipping, area clipping, text clipping and curve clipping.

16. What is meant by scan code?
When a key is pressed on the keyboard, the keyboard controller places a code carry to the key pressed into a part of the memory called as the keyboard buffer. This code is called as the scan code.

17. List out the merits and demerits of Penetration techniques?
The merits and demerits of the Penetration techniques areas follows. It is an inexpensive technique. It has only four colors. The quality of the picture is not good when it is compared to other techniques. It can display color scans in monitors. Poor limitation etc.

18. List out the merits and demerits of DVST?
The merits and demerits of direct view storage tubes[DVST] are as follows. It has a flat screen. Refreshing of screen is not required. Selective or part erasing of screen is not possible. It has poor contrast Performance is inferior to the refresh CRT.

19. What do you mean by emissive and non-emissivedisplays?
The emissive display converts electrical energy into lightenergy. The plasma panels, thin film electro-luminescent displays are the examples.The Non-emissive are optical effects to convert the sunlightor light from any other source to graphic form. Liquid crystal display is an example

20. List out the merits and demerits of Plasma paneldisplay?
Merits. Refreshing is not required. Produce a very steady image free of Flicker. Less bulky than a CRT.Demerits. Poor resolution of up to 60 d.p.i. It requires complex addressing and wiring. It is costlier than CRT.

21. What is persistence?
The time it takes the emitted light from the screen to decay one tenth of its original intensity is called as persistence.

22. What is Aspect ratio?
The ratio of vertical points to the horizontal points necessary to produce length of lines in both directions of the screen is called the Aspect ratio. Usually the aspect ratio is ¾.

23. What is the difference between impact and non-impactprinters?
Impact printer press formed character faces against an inked ribbon on to the paper. A line printer and dot-matrix printer are examples.Non-impact printer and plotters use Laser techniques,inkjet sprays, Xerographic process, electrostatic method sand electrothermal methods to get images onto the papers. Examples are: Inkjet/Laser printers.

24. Define pixel?
Pixel is shortened forms of picture element. Each screen point is referred to as pixel or pixel.

25. What is frame buffer?
Picture definition is stored in a memory area called frame buffer or refresh buffer.

26. Where the video controller is used?
A special purpose processor, which is used to control the operation of the display device, is known as video controller or display controller.

27. What is run length encoding?
Run length encoding is a compression technique used to store the intensity values in the frame buffer, which store search scan line as a set of integer pairs. One number each pair indicates an intensity value, and second number specifies the number of adjacent pixels on the scan line that are to have that intensity value.

28. What is point in the computer graphics system?
The point is a most basic graphical element & is completely defined by a pair of user coordinates (x, y).

29. Write short notes on lines?
A line is of infinite extent can be defined by an angle of slope q and one point on the line P=P(x,y). This can also be defined as y=mx+C where C is the Y intercept.

30. Define Circle?
Circle is defined by its center xc, yc and its radius in user coordinate units. The equation of the circle is (x-xc) + (yyc)= r2.

31. What are the various attributes of a line?
The line type, width and color are the attributes of the line.The line type include solid line, dashed lines, and dotted lines.

32. What is anti aliasing?
The process of adjusting intensities of the pixels along the line to minimize the effect of aliasing is called anti aliasing.

33. What is Transformation?
Transformation is the process of introducing changes in the shape size and orientation of the object using scaling rotation reflection shearing & translation etc.

34. What is translation?
Translation is the process of changing the position of an object in a straight-line path from one coordinate location to another. Every point (x , y) in the object must under go a displacement to (x|,y|). the transformation is:x| = x + tx ; y| = y+ty

35. What is rotation?
A 2-D rotation is done by re positioning the coordinates along a circular path, in the x-y plane by making an angle with the axes. The transformation is given by:X| = r cos (q + f) and Y| = r sin (q + f).

36. What is scaling?
A 2-D rotation is done by re positioning the coordinates along a circular path, in the x-y plane by making an angle with the axes. The transformation is given by:X| = r cos (q + f) and Y| = r sin (q + f).

37. What is shearing?
The shearing transformation actually slants the object along the X direction or the Y direction as required. ie; this transformation slants the shape of an object along a required plane.

38. What is reflection?
The reflection is actually the transformation that produces a mirror image of an object. For this use some angles and lines of reflection.

39. What are the two classifications of shear transformation?
X shear, y shear

40. A point (4,3) is rotated counterclockwise by an angle of 45°. Find the rotation matrix and the resultant
point

41. Name any three font editing tools.
ResEdit, FONTo grapher

42. Differentiate serif and sans serif fonts.
Give one example Serif fonts has a little decoration at the end of the letter,but serif font has not. Times, new century schoolbook is the examples of serif fonts. Arial, optima are examples for sanserif fonts.

43. Distinguish between window port & view port?
A portion of a picture that is to be displayed by a window is known as window port. The display area of the part selected or the form in which the selected part is viewed is known as view port.

44. Define clipping?
Clipping is the method of cutting a graphics display to neatly fit a predefined graphics region or the view port.

45. What is the need of homogeneous coordinates?
To perform more than one transformation at a time, use homogeneous coordinates or matrixes. They reduce unwanted calculations intermediate steps saves time and memory and produce a sequence of transformations.

COMPUTER GRAPHICS Lab VIVA Questions and Answers ::

400+ TOP AUTOCAD LAB VIVA Questions and Answers

AUTOCAD LAB VIVA Questions :-

1. What is meant by AutoCAD?
AutoCAD is one of the cad system software introduced in dec 1982 by Autodesk ltd in Sausallia,California of USA. It has hit the technical world like shock wave revolutionizing the manner of drawing preparation.

2. What is the diff between CAD & CADD?
CAD- Computer aided design

CADD- Computer aided design and drafting

3. What are the applications of CAD?

  • Product Drawings
  • Drawings of Operation Cards
  • Solid Modelling
  • Design of Forging and Trimming Dies
  • Design of Tooling, Equipment and Gages.

4. Define absolute co-ordinates?
Design of machine elements, CNC machine tools, robotics etc Panel design and circuit layout Mapping ,building plans, contour plotting and structural drawing Interior design and modeling from rejinpaul.com Values locating a point in space that describe its displacement from origin (0,0,0)point of the drawing.

5. Define polar co ordinates.
Values are locating a point in space that describes its location relative to the last point picked as defined by an angle and s distance.

6. Define angular dimension?
A dimension that measures the angle between two lines or the angle inscribed by an arc segment.

7. Define aligned dimension?
A linear dimension measuring the distance between two points. The dimension line for an aligned dimension is parallel to a line between points.

8. What is Bylayer?
A value that can be assigned to colours and line types so that objects receive their colour and line type properties according to the layer they are on.

9. What is command line?
A text window at the bottom of the screen that’s displays command: prompt. This is where you see what you are entering through the keyboard. Also called the command window.

10. What is command: prompt:
A prompt at the command line, when no commands are currently running.

11. What is cross hair cursor?
A form of the cursor that consists of a horizontal line and a vertical line intersecting at their midpoints, resembling the crosshair in a sighting device.

12. Define current UCS?
A group of settings and values that control the appreance of dimensions.

from rejinpaul.com The user co-ordinate system that is active in a drawing. It determines the positive X,Y and Z direction.

13. What is. dwg?
The file extension and format for the standard AUTOcad drawing.

14. Define graphics window?
The appearance of your screen when AUTOcad is running. It consists of the drawing area and surrounding toolbars, menu bars the command window and the status bar.

15. Define line type?
The style of appearance of a line. AUTOcad styles include continues, dashed, dash dot. And so on.

16. What is a hatch patterns?
A pattern of lines dots and other shapes that fills in a closed area.

17. Define MIRROR?
A command that makes a copy of selected objects and flips the copy around a specified line to produce a reciprocal image of those objects.

18. What is an ortho mode?
An on/off setting that, when on forces lines to be drawn and objects to be moved in a horizontal or vertical direction only.

19. What are the advantages of CAD?
Greater productivity of the designer, improvement of design quality Easier design, calculation and analysis, quicker rate producing drawings, more accuracy of drawings, colour graphics is possible.

20. What is an object snap mode?
Any of a set of tools precisely picking strategic points on an object, including end point, midpoint, center, and so on. It is casually called osnap.

21. Define block?
The description of an association of Auto “CAD” objects that is stored with the drawing file and include a name, an insertion point, and a listening of objects in the association.

22. Define relative co-ordinates?
Values are locating a point in space that describes its displacement from last point picked in the drawing rather than from the origin.

AUTOCAD VIVA Questions and Answers pdf free download

1. What is meant by engineering drawing?
2. What is meant by solid geometry?
3. How many axes do Cartesian coordinate system has?
4. What is meant by CAD?
5. What are the different softwares used for CAD?
6. What are the important hardware systems used for CAD?
7. What is absolute coordinates?
8. What is the difference between chamfer and Fillet?
9. Which is the direction for positive angle?
10. Which is the direction of negative angle?
11. What is meant by Cartesian coordinate system?
12. What is meant by dimensioning?
13. What is an ortho mode?
14. What is the use of OFFSET command?
15. What is the difference between UNDO & REDO?
16. What are the different methods for drawing an arc?
17. How to activate isometric axes in CAD?
18. Which is the latest version of SolidsWorks?
19. What is the use of extruded feature in Solidsworks?
20. How can we make a hole in a solid rectangle using Solidsworks?
21. How do you change a dimension value in solidsworks?
22. Is it possible to make a feature using an overdefined sketch?
23. What are the advantages of CAD software’s?
24. What do you meant by GUI?
25. States some of the tool bars used in CAD?
26. States some of the commonly used commands in Cad software’s?
27. What is the usage of ZOOM command?
28. What is need for setting LIMITS?
29. Differentiate First angle & Third angle Projection?
30. Differentiate orthographic and isometric projections?
31. What are the applications of CAD?
32. Define polar co ordinates.
33. Define aligned dimension?
34. What is. dwg?
35. Define MIRROR?
36. What is a hatch patterns?
37. What is an object snap mode?
38. Define block?
39. Define relative co-ordinates?
40. What is the use of TRIM command?
41. What are the uses of Layer?
42. How can explode a Block?
43. What is the use of ARRAY command?
44. What is the use of EXTEND Command?
45. Define a polyline?
46. What is meant by a context menu in a CAD software?
47. Name the main components of a CAD GUI?
48. What is the use of MIRROR command?
49. What is the difference between linear dimension and aligned dimension?
50. What are the advantages of CAD software?

600+ TOP CIVIL ENGINEERING VIVA Questions and Answers for Interview

Below are the list of all CIVIL ENGINEERING Lab Viva Questions and Answers for civil students.also we can provide comprehensive viva questions for civil objective type books & Interview questions

CIVIL ENGINEERING LAB VIVA Questions pdf:-

  1. AUTOCAD
  2. Highway Engineering
  3. STRENGTH OF MATERIALS
  4. Environmental Engineering
  5. Estimating & Costing
  6. Engineering Mechanics
  7. Hydraulics
  8. Building Construction and Materials
  9. SURVEYING
  10. Soil Mechanics and Foundation
  11. PAVEMENT DESIGN
  12. Concrete Technology
  13. Railway Engineering
  14. Water Resources Engineering
  15. SOIL MECHANICS
  16. Transportation Engineering
  17. ENGINEERING GRAPHICS
  18. ENGINEERING DRAWING
  19. ENGINEERING GEOLOGY

Hello CIVIL ENGINEERING students, We provide Basic CIVIL ENGINEERING Lab Viva questions and answers with explanation & Civil objective type questions mcqs books pdf free download here. these are very important & Helpful for campus placement test, semester exams, job interviews and competitive exams like GATE, IES, PSU, NET/SET/JRF, UPSC and diploma.

Especially we are prepare for the Civil freshers and Experienced Candidates, these model questions are asked in the online technical test, Quiz and interview of many companies.

CIVIL ENGINEERING LAB VIVA Questions and Answers
CIVIL ENGINEERING LAB VIVA Questions

These are also very important in your university exams like JNTU, Andhra,OU,Anna university,Pune,VTU,UPTU,CUSAT etc.

CIVIL ENGINEERING VIVA Questions pdf free download ::

300+ Magento FAQs and Answers [Experienced / Freshers]

Magento Interview Questions

Question: 1. What is Magento?

Answer: Magento is an open supply E-commerce software program, created by using Varien that is useful for on-line commercial enterprise and it has the bendy modular architecture. It is scalable and it has many manipulate options that allows the consumer. Magento uses E-trade platform which offers businesses ultimate E-trade solutions and great aid community.

Question: 2. Why to use Magento?

Answer: The uses of Magento are:

Magento is open supply E-commerce software.

It is scalable and gives small companies to construct business.

It provides the looking and sorting of products in numerous methods.

Easily integrates with most of the 0.33-birthday party websites that are needed to run effective E-trade website.

Using this, purchaser can order or buy wide variety of merchandise. There are no limits on variety of buying merchandise.

Question: 3. List the Web-Hosting websites of Magento?

Answer: The Web-Hosting websites of Magento are:

SiteGround

BlueHost

HostGator

Inmotion

Arvixe

site5

Question: 4. What are negative aspects of Magento?

Answer: The negative aspects of Magento are:

Magento uses larger disk area and memory.

It takes a whole lot time to build the custom designed capability.

It could be very sluggish in comparison to other E-trade websites.

It needs proper web hosting environment, if the web hosting environment is wrong the person can face the troubles.

Question: 5. Name the net-server that supports Magento?

Answer: The Web-server that helps Magento are:

Apache 2.X

Nginx 1.7.X

Question: 6. What are Magento products?

Answer: Products are the objects or matters which can be offered in Magento. Product may be some thing this is able to satisfying customer needs. This includes each bodily products and services.

Question: 7. Name the product kinds which can be to be had in Magento?

Answer: The product sorts to be had in Magento are:

Simple Products

Grouped Products

Configurable Products

Virtual Products

Bundled Products

Downloadable Products

Question: 8. What is Inventory?

Answer: Inventory lets in putting a product’s inventory quantity. For instance, you have a product with a hundred devices in inventory. If you put the stock availability to “Out of Stock” then it’ll force the item to be out of stock.

Question: 9. Name the categories of E-Commerce?

Answer: The categories of E-Commerce are:

Business to Business(B2B)

Business to Consumer(B2C)

Consumer to Consumer(C2C)

Consumer to Business(C2B)

Question: 10. What does Rate Percent mean in Manage Tax Rate window?

Answer: Rate Percent specify the percent of the tax fee.

Question: 11. What does Priority area specifies in Manage Tax Rules?

Answer: Priority field specifies when the tax have to be applied to different tax policies.

Question: 12. What is the used of Zero Subtotal Checkout panel?

Answer: The Zero Subtotal Checkout panel is a payment alternative that presentations when order total is zero and no longer required to go into fee info for the client.

Question: 13. What is the used of 3D Secure Card validation field in Saved CC?

Answer: It is additional protection functionality in which patron needs to offer credit card password to complete the purchase order.

Question: 14. Which are the strategies of PayPal Payment Gateways?

Answer: The  methods of PayPal Payment Gateways are:

Payflow Pro (Includes Express Checkout)

Payflow Link (Includes Express Checkout)

Question: 15. What is Payflow Pro?

Answer: The Payflow Pro choice is customizable charge gateway which may be used with service provider account to manner credit card transactions.

Question: 16. What is Payflow Link?

Answer: Payflow Link choice often known as as hosted charge gateway that keeps patron in your site via imparting rapid and clean way to add transaction processing to your site.

Question: 17. What is using My Cart Link panel?

Answer: My Cart Link panel specifies whether the quantity of quantities in the cart have to be shown or whether or not the variety of various merchandise need to be shown the usage of the Display Cart Summaryfield.

Question: 18. What is Google checkout in Magento?

Answer: Google Checkout is on line price processing carrier supplied by means of Google. Magento allows integration of on line stores with Google checkout. It is like PayPal that simplifies the process of deciding to buy online purchases.

Question: 19. What is Magento Manage Order?

Answer: Order management is critical thing which allows enterprise to run easily and maintains customers happy, making them much more likely to visit your web page in the destiny.

Question: 20. What is Magento Google Analytics?  

Answer: Google Analytics is a best Google provider for folks who are actively handling websites and adds analytics to Magento save including Ecommerce tracking and conversions of their web sites.

Question: 21. What is the use of Page Layout in Magento?

Answer: Layout documents are useful in rendering front pages of Magento.

Question: 22. What is Magento Content Management System(CMS)?

Answer: Magento CMS (Content Management System) phase is used to manipulate all web website pages. It is a manner of promoting the goods with the aid of presenting treasured facts to the clients and increases visibility to search engines like google and yahoo.

Question: 23. What are Static Blocks?

Answer: Static block is a bit of content can be used anywhere in the pages. Magento permits developing blocks of content material that can be used through the shop and may be brought to any web page or every other block.

Question: 24. What are Polls?

Answer: Polls are used to get purchaser’s opinions and options. The poll results seem right now after response is submitted.

Question: 25. How to Optimize the Magento Environment?

Answer: Following points describe the way to optimize the Magento surroundings

It uses complex database, so that it needs to be run on devoted servers.

Magento software may be optimized by using the use of cloud computing.

Merge you JavaScript and CSS documents which reduces the weight time dramatically on the grounds that its loading simplest one merged record.

Proper MySQL configuration is one of the most essential aspects in terms of overall performance.

Always improve to the present day Magento model allows to perform better.

Question: 26. How to Optimize Magento Configuration?

Answer: The following factors specify a way to optimize the magento configuration

To accelerate Magento overall performance, don’t run mysql and net server on the same system.

Do now not host files in your net server which you do not use.

Optimization of session storage.

Enabling Magento flat catalog. (Magento uses a complex and aid-in depth Entity Attribute Value  [or EAV]based totally catalog). After initial catalog establishment, enabling the flat catalog can dramatically enhance database querying time.

Identification and disabling of unused Magento modules.

Question: 27. What is the technique of Code Optimization?

Answer: The process of Code Optimization are:

Removal of unused or useless code approaches.

To optimize Magento overall performance, JavaScript and CSS documents need to be compressed and aggregated.

Conformance of all website photographs to top-quality net photo sizes.

Identification of bottlenecks(process that causes the entire procedure to gradual down or stop) tactics in each the front-give up and lower back-quit.

Question: 28. How to enhance the overall performance of database?

Answer: The following factors describe how to enhance the performance of database:

Unused information need to be cleaned up often for better overall performance.

Optimization of database queries.

Configuration of setting and bounds of the database server (e.G. Memory placing, question cache, type buffer optimization).

Question: 29. Which is the PHP version used for magento?

Answer: PHP five.4 +

Question: 30. What is WSLD?

Answer: It stands for Web Services Description Language. It is used for describing net services and the way to get entry to them.

Question: 31. What does Only X left Threshold means in Stock Option?

Answer: It is used to set threshold wide variety. When the devices of that product are drop to that number, it’ll display Only X left message on the product details page.

Question: 32. What is Magento Payment Gateway?

Answer: Payment gateway strategies the credit score card facts securely among client and service provider and also between service provider and the charge processor. It is like checkpoint that protects clients towards trying to collect private and financial facts from clients and additionally act as mediator among the merchant and sponsoring bank.

Question: 33. What is the procedure of Order Life cycle in Magento?

Answer: Orders observe a popular lifestyles cycle manner. When patron region product orders, it arrive in the administration interface with a pending status. When order is processed, the repute of order modifications consistent with modern-day nation within the processing workflow. Once the invoice is created for the order, the repute adjustments from pending to processing popularity. Next it creates shipment for an order which modifications the status from pending to complete status.

Question: 34. Which are the 2 sections found in Design Section?

Answer: The two sections found in Design segment are:

Page Layout

Custom Design

Question: 35. What does the Page Layout segment contains?

Answer: The Page Layout section contains a Layout choice which allows selecting format as consistent with your preference and Layout Update XML choice inserts the XML code.

Question: 36. What is using Meta Data section even as setup new pages?

Answer: The Meta Data phase incorporates Keywords and description of the web page.

Question: 37. How to join Newsletters the use of Magento?

Answer: Customer can join Newsletters using Magento. Customer can join up for the Newsletter when he creates a new patron account which contains checkbox for signing up. For developing Newsletters you need to enable Newsletter choice to your magento to make certain that patron has confirmed to receive Newsletter.

Question: 38. How to optimize the Magento the front-give up overall performance?

Answer: The following points show how to optimize the Magento the front-quit overall performance:

Use the latest version of personal home page, so you can perform front-cease operation a lot better and faster. The newest released model may additionally purpose the mistakes, so carefully examine the discharge notes and check out the new version.

Use the clean database to improve the performance of magento. The database logs need to be clean regularly. The database stores the mechanically created logs to hold music of document session and interplay.

Question: 39. What is grouped product?

Answer: This is a group of easy merchandise. In this type, you can’t specify a specific rate for product; you may just specify the bargain.

Question: 40. What is Configurable Products

Answer: In this kind, client can pick products consistent with their color and size earlier than purchasing. Example: Cell telephones obtained in extraordinary colors and sizes.

Question: 41. What are Bundled products?

Answer: Bundled merchandise are the ones merchandise which can’t be bought one at a time and does not deliver any preference for quit person.

Question: 42. What is using Backorder area in Product Stock Option Panel?

Answer: If it’s miles enabled, purchaser should purchase products even if they are out of inventory.

Question: 43. What are Tax rules?

Answer: Tax rules are entities that integrate product tax classes, customer tax lessons and tax quotes.

Question: 44. What is the usage of Manage save segment?

Answer: Manage Stores phase, you may see website names, shop names and Store View Name columns.

Question: 45. What is E-trade?

Answer: E-trade (Electronic Commerce) is a type of business that includes the industrial transaction or shopping or promoting of goods and offerings through electronic channels known as internet.

Question: 46. What are the functions of Magento?

Answer: he capabilities of Magento are:

Magento offers one-of-a-kind price strategies along with credit score playing cards, PayPal, cheques, cash order, Google checkouts.

It presents shipping of products in a single order to the multiple addresses.

Easy to control the orders by using the use of admin panel.

It filters the goods and displays in grid or list layout.

Question: 47. What are the blessings of Magento?

Answer: The blessings of magento are:

It is person pleasant E-trade software.

It is well suited with Smartphone’s, pills and other cellular devices.

It gives a couple of charge options so every tourist could make charge based on their favored payment gateway.

It has many extensions which supports for the improvement of an online store.

Question: 48. What database does Magento supports?

Answer: MySql Database

Question: 49.Which is the MySql version used for magento?

Answer: MySQL five.1

Question: 50. Mention what is the structure of Magento? What are the unique versions of Magento?

Answer: :Magento structure is a typical PHPMVC (Model-View-Controller) application, where all the Controllers can be in a single folder and all of the Models in some other, and so on.  Based on their capability documents are grouped collectively, that are referred as modules in Magento.

Different model of Magento consists of

Magento Enterprise

Magento .Go

Magento Community

300+ Lisp Programming FAQs and Answers [Experienced / Freshers]

Lisp Programming Interview Questions with Answers

Question: 1. What is Lisp Programming ?

Answer: Lisp is the second one-oldest excessive-degree programming language after Fortran and has changed a incredible deal when you consider that its early days, and a number of dialects have existed over its history. Today, the most widely recognized popular-motive Lisp dialects are Common Lisp and Scheme.

Lisp become invented by means of John McCarthy in 1958 even as he changed into on the Massachusetts Institute of Technology (MIT).

Question: 2. Why use LISP?

Answer: In short, no single improvement you can make for your AutoCAD device will prevent extra time, effort, and money. You can spend heaps on the state-of-the-art technology computers, the quickest video playing cards, and so on, but that may not make almost as huge a distinction as automating your device with software. With an arsenal of LISP exercises, you will ship accuracy, consistency, and productiveness hovering at the same time as substantially lowering the strain and pressure of CAD operation. The right software is the key, and there’s no quantity of software program you can buy that beats being capable of application AutoCAD yourself with as many tailored workouts as you want. And that is precisely what the LISP Generator permits you to do.

Question: 3. Why LISP is used for Artificial Intelligence?

Answer: LISP is used for Artificial Intelligence for following reasons

It helps the symbolic programming, and old AI turned into primarily based on symbols

LISP is robust. The code or records distinction is weaker, so it feels extra extensible than different programming languages which make it feels like a domain particular language

It is an extraordinary prototyping tool and good at tackling issues

Question: 4. What is a “Lisp Machine” (LISPM)?

Answer: A Lisp machine (or LISPM) is a computer which has been optimized to run lispefficiently and offer an awesome surroundings for programming in it. The original Lisp machines were implemented at MIT, with spinoffs as LMI (defunct) and Symbolics (bankrupt). Xerox additionally had a sequence of Lisp machines (Dandylion, Dandytiger), as did Texas Instruments (TI Explorer). The TI and Symbolics Lisp machines are presently available as playing cards that fit into Macintosh computer systems (the so-known as “Lisp on a chip”).

Optimizations standard of Lisp machines encompass:

– Hardware Type Checking. Special type bits allow the sort be checked

effectively at run-time.

– Hardware Garbage Collection.

– Fast Function Calls.

– Efficient Representation of Lists.

– System Software and Integrated Programming Environments.

Question: 5. What is the “minimum” set of primitives wished for a Lisp interpreter?

Answer: Many Lisp functions can be described in terms of different Lisp features.

For example, CAAR may be defined in terms of CAR as (defun caar (list) (vehicle (automobile listing))) It is then herbal to ask whether or not there is a “minimum” or smallest set of primitives vital to put into effect the language.

There is no single “quality” minimum set of primitives; all of it depends at the implementation. For example, even some thing as fundamental as numbers want no longer be primitive, and may be represented as lists. One viable

set of primitives may consist of CAR, CDR, and CONS for manipulation of S-expressions, READ and PRINT for the input/output of S-expressions and APPLY and EVAL for the heart of an interpreter. But then you definately would possibly need to add LAMBDA for features, EQ for equality, COND for conditionals, SET for project, and DEFUN for definitions. QUOTE would possibly come in handy as properly. If you add greater specialised datatypes, which includes integers, floats, arrays, characters, and structures, you will need to feature primitives to construct and get admission to each.

AWKLisp is a Lisp interpreter written in awk, to be had with the aid of anonymous ftp from ftp.Cs.Cmu.Edu:/user/ai/lang/lisp/impl/awk/. It has 13 integrated functions: CAR, CDR, CONS, EQ, ATOM, SET, EVAL, ERROR, QUOTE,COND, AND, OR, LIST.

Question: 6. How records kinds are classified in LISP?

Answer: In LISP, information sorts are categorised as

Scalar Types: Number types, Characters, Symbols, and many others.

Data Structure: listing, vectors, bit-vectors and strings

 

Question: 7. What is the programming structure for LISP?

Answer: LISP programming shape consists of symbolic expressions or s-expressions. The s-expression includes 3 valid gadgets
 

Atom: It is more than a few or string of contiguous characters

Lists : A list is a sequence of atoms or different lists enclosed in parentheses

String: A group of characters enclosed in double citation marks is referred as String.

LISP applications can be both run on an interpreter or as a compiled code

Question: 8. What if I get interrupted?

Answer: You are free to come and cross from the LISP Generator and do whatever you need in AutoCAD while you’re in the center of creating a software. There are useful equipment in case you neglect things just like the names of variables you described.

Question: 9. Can I shop my packages to documents?

Answer: Yes, simply, and the files are widespread LISP code so as to run on any AutoCAD gadget.

Question: 10. How to pass commands to LG3?

Answer: By selecting standard operations from the tools menu. You can consider the gear as building blocks – every device similar to numerous traces of LISP code. The gear you operate and the order in which you pick out them defines what your software does.

Question: 11. Explain what is slot and what are the maximum generally used slot options?

Answer: Slots are nothing but variables that shops data or fields. A slot description has the form, where each alternative is a keyword observed through name, expression and different options.

The most commonly used slot options are:

:accessor characteristic-call

:initform expression

:initarg image

Question: 12. Explain What Is The Ouput Like?

Answer: LG3 writes easy-to-examine, fully indented AutoLISP packages loaded with specified feedback in English that specify what all the LISP code is doing. The documents are fashionable “.LSP” documents. You can view, edit, or print them with any editor, and run them on any AutoCAD gadget without or with the Generator.

Question: 13. Is it possible to call LISP capabilities from different languages?

Answer: LISP gives a “call-back” function, while programmer friends a foreign language characteristic call with a LISP feature, it’s miles connected with these name-back capabilities. With overseas function programmer need to supply the end result facts sorts and argument, in order that LISP may carry out conversions at the interface.

Question: 14. Mention what are the 3 functions required by means of LISP?

Answer: For defining capabilities, macro named defun is used, it wishes three arguments

Name of the function

Parameters of the characteristic

Body of the characteristic

Question: 15. What is REPL in context of Node?

Answer: REPL stands for Read Eval Print Loop and it represents a pc environment like a window console or unix/linux shell wherein a command is entered and device responds with an output. Node.Js or Node comes bundled with a REPL environment. It performs the following preferred responsibilities.<

Read – Reads user’s enter, parse the input into JavaScript facts-shape and stores in reminiscence.

Eval – Takes and evaluates the statistics structure

Print – Prints the result

Loop – Loops the above command till consumer press ctrl-c two times.