Smalltalk Interview Jeopardy

A long time ago, a friend of mine named Dave Mitchell suggested I put together a list of Jeopardy-like questions for Smalltalk.  Below are the answers. The game is to guess out the questions that these answers apply to.

1. You should also override #hash when you override this method.

2. Block implements this method as a way of continually evaluating a block instance’s value when that value is true.

3. Behavior implements this creational method.

4. An instance of Metaclass is what you get when you send this message to any class.

5. The Metaclass class is what you get when you send this message to any instance of Metaclass.

6. #monty, 4, $a, #(‘a’ ‘b’), and ‘monty’

7. Unary, Binary, and Keyword.

8. This two keyword collection method separates the real Smalltalk programmers from posers.

9 #timesRepeat: is implemented by this class.

10. One tests equality and the other tests identity.

11. The superclass of Dictionary.

12. #value is the message you send to this object to cause it’s contents to execute.

13. A Random instance will answer another random number when sent this message.

14. You can only access these types of variables in class methods.

15. This is the default return value from any method that does not include a return caret.

16. Smalltalk is an instance of this class.

17. #forkAt: is implemented by this class.

18. This class implements #when:do:.

19. This message concatenates 2 strings.

20. The classes of these types of objects usually implement a method such as #current.

21. This table is used to store all instances of these immutable String subclassed objects.

22. This is the class of nil.

23. Finalization is required to have this type of reference to an object.

24. Your code is compiled into these, when you save a method.

25. Mark and sweep, generation scavenging, and Baker two space are types of these.

26. This class implements #extent:, a method which returns a rectangle.

27. These types of variables can be accessed by both class and instance methods.

28. A variable appropriately named “gc” is the likely to be an instance of this class.

29. The description, “Creation”, is a common one of these.

30. These 2 classes implement the message #subclass:instanceVariableNames:classVariableNames:poolDictionaries:

31. This particularly useful class implements the message #nextPutAll:.

32. #copy and #deepCopy differ in this way.

33. This class implements #signal and #wait.

34. An instance of this class can be created by sending the message

35. An instance of this class understands messages such as #at:put:
and #classNamed:

36. 1 to: 5 will evaluate to an instance of this class.

37. true, false, nil, self, and super are all types of these.

Final Jeopardy

38. The first Smalltalk Report was published in this month of this year.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s