YouTube Icon

Interview Questions.

Top 100+ Smalltalk Interview Questions And Answers - Jun 01, 2020

fluid

Top 100+ Smalltalk Interview Questions And Answers

Question 1. What Is Smalltalk?

Answer :

Smalltalk is pure object orientated programming (OOPs), dynamically typed and reflective programming language.

Smalltalk is an development surroundings – magnificence browsers, debugger, inspector and refactoring engine.

Everything is an item –variables, constants, activation records and lessons.

Smalltalk became designed and created by means of Learning Research Group of Xerox PARC in 1972 and the Researcher Team –

Alan Kay
Dan Ingalls
Adele Goldberg
Ted Kaehler
Scott Wallace
And so on
All computation is executed by means of objects sending and receiving messages – 1+2*3

Question 2. What Types Of Characters Allowable In Smalltalk?

Answer :

0-9&?
Clean, tab, cr, ff, lf
And so on
Python Interview Questions
Question three. How To Declare Variables In Smalltalk?

Answer :

Variables must be declared before use
Shared variables need to begin with uppercase
Local variables need to start with lowercase
Reserved names - true, false, nil, self and fantastic
Question 4. What Is The Variable Scope In Smalltalk?

Answer :

Global
Class
Class Instance
Pool
Block Temporary
Method Temporary
Method Parameters
Instance Variables
Python Tutorial
Question five. What Is "the Smalltalk For Those Who Can Type" Supposed To Mean?

Answer :

It is a pun on the use of a text editor (and as a result the use of the keyboard more, and the mouse less) to jot down programs for GNU Smalltalk, which units it exceptional from other Smalltalk.

Adv Java Interview Questions
Question 6. How Stable Is Gnu Smalltalk? How Scalable? How Fast?

Answer :

It is quite stable. There are bugs for certain inside the virtual device, but except you are unlucky you shouldn't be affected. This is specially actual for the solid branch, where most effective adjustments to improve stability are made; development releases are with the aid of their very nature much less solid.

It is pretty scalable, even though the rubbish collector plays worse once you have got more than a hundred and fifty-2 hundred MB of live information. Very lengthy strings additionally do now not perform as well as they might. In wellknown, object-orientation makes it easier to pick proper records systems (which includes streams).

It is quite rapid. While GNU Smalltalk has an experimental just-in-time compiler, even the bytecode interpreter should be quicker than maximum different scripting languages. However, GNU Smalltalk's base instructions are written completely in Smalltalk (in contrast to Python or Lua, as an example). While this gives greater flexibility to the programmer, applications that closely use dictionaries might also run slower than the equal applications in different languages.

Question 7. Where's The Gui?

Answer :

GNU Smalltalk does now not by means of default start a full-blown incorporated development surroundings.

However, one is available and may be commenced with this command:

gst-blox

The present day git versions consist of a brand new IDE, known as VisualGST,

that may be commenced with this command as an alternative:

gst-browser

Adv Java Tutorial VBScript Advanced Interview Questions
Question 8. What Is Cool About Smalltalk?

Answer :

Smalltalk is an object-oriented programming language with a uniform programming version. Unlike many different languages, gaining knowledge of the Smalltalk programming language is easy because there are only some principles to understand. Everything is an object in Smalltalk (inclusive of quantity, string, individual, code blocks, and classes themselves), and the entirety is done via a single paradigm, that of sending messages from one object to some other.

Many cool and progressive ideas have been conceived from the Smalltalk network, along with the very idea of window-based totally, graphical consumer interfaces. Smalltalk structures are open, as source code for every class is to be had and modifiable, consisting of all the kernel training; being free software program, GNU Smalltalk extends this openness to the virtual machine, and enhances it with the freedom to redistribute and post your upgrades.

Question 9. What Else Is Cool About Gnu Smalltalk?

Answer :

First of all, it's far unfastened software program. This way that you may play with it and recognize the way it works, damage it and recognize why it broke, fix it and revel in having fixed it.

Compared to different Smalltalk implementations, GNU Smalltalk could be very different in one element: it is pragmatically designed to be a device in place of an surroundings. It enhances other equipment which you use to your every day paintings, without any pretense of absolutely changing them. This also provides a smoother mastering curve for individuals who understand different scripting languages along with Python or Ruby.

Basic Programming Interview Questions
Question 10. What Is A Generator?

Answer :

A generator is a quick manner to create a Stream. As you would possibly have visible in an in advance question, streams are a effective generation device that Smalltalk gives. A generator is a kind of pluggable move, in that a user-supplied blocks defines which values are in a stream.

For example, here is an empty generator and  limitless generators [ gen yield: 1 ] repeat ]

Generator inject: 1 into: [ :value extra concrete instance, these strains technique a report and create Person objects out of the record:

lines := record lines.

Traces := traces select line ~ '^[A-Za-z]+ [0-9]+$' ].

Fields := strains accumulate line subStrings ].

Human beings := fields gather: [ :data the way to rewrite them to use a single Generator alternatively

    report linesDo: [ :line data

        line ~ '^[A-Za-z]+ [0-9]+$' ifTrue: [

            data := line subStrings.

            Gen yield: (Person name: data first age: data second asInteger) ] ] ].

As you can see, #pick out: turns into an if-statement, and the price from the final flow is yielded to the consumer of the generator.

Generators use continuations, however they shield the customers from their complexity by way of supplying the equal easy interface as streams.

D Programming Language Tutorial
Question eleven. What Is Vfs?

Answer :

VFS is GNU Smalltalk's Virtual FileSystem layer. VFS permits GNU Smalltalk programs to apply archive documents (.Gz, .Tar, .Zip, etc.) and URLs transparently. The first implementation of VFS became stimulated through the homonymous function of the Midnight Commander, later incorporated in GNOME and now referred to as GVFS.

VFS is a fundamental a part of the implementation of .Megastar applications.

Ruby Interview Questions
Question 12. Does Gnu Smalltalk Support Unicode And Mbcs?

Answer :

Yes. Strings however are processed (e.G. Study from a document) byte-according to-byte. If you need in line with-man or woman processing, you ought to load the Iconv package and convert strings to UnicodeString, the use of the #asUnicodeString technique.

Python Interview Questions




CFG