• Home
  • Textbooks
  • A little Smalltalk
  • Syntax

A little Smalltalk

Timothy Budd

Chapter 2

Syntax - all with Video Answers

Educators


Chapter Questions

00:36

Problem 1

Show the order of evaluation for the subexpressions in the following expression:
$7 / 2$ between: $7+17$ sqrt and: 3 * 5

Victor Salazar
Victor Salazar
Numerade Educator
00:48

Problem 2

Type the following expressions:
$$
\begin{aligned}
& 7==7 \\
& 1 a b c==' a b c ' \\
& \# a b c==\# a b c
\end{aligned}
$$
How do you explain this behavior?

SS
Stephanie Schwartz
Numerade Educator

Problem 3

What values will be printed in place of the question marks in the following sequence:
$$\begin{array}{ll} & i<-17 \\ & j<-[i<-i+1] \\ & \text { i print } \\ ? ? & \\ & \text { j print } \\ ?? & \\ & i<-23 \\ & \text { i print } \\ ?? & \\ & \text { j value print } \\ ?? & \\ & \text { i print } \\ ?? & \\ & \text { j value print } \\ ?? & \\ & \text { i print } \\ ?? & \end{array}$$

Check back soon!