Final Exam - PowerPoint PPT Presentation

1 / 24
About This Presentation
Title:

Final Exam

Description:

zero argument blocks and one argument blocks. 12. Writing ST Conditional Statements ... Using the Parts Palette. How to add links. Tear-off Attributes and Quick Form ... – PowerPoint PPT presentation

Number of Views:55
Avg rating:3.0/5.0
Slides: 25
Provided by: calpoly
Category:
Tags: exam | final | palette

less

Transcript and Presenter's Notes

Title: Final Exam


1
Final Exam
2
Sources of Info
  • Text (chapters 1 -30)
  • Powerpoint Slides (all sets)
  • Workspace examples
  • Smalltalk Mutual Support List
  • Your Projects

3
Objects
  • concepts
  • terms and definitions
  • object
  • encapsulation
  • characteristics and behavior
  • polymorphism
  • etc.
  • benefits of the use of the object model

4
Classes and Instances
  • Class Hierarchy
  • Use of the Class Browser
  • Common classes
  • Object
  • Magnitude
  • Float
  • String
  • Collection
  • Date
  • etc.
  • Common methods for common classes

5
Structure of Smalltalk Expressions
  • receiver
  • selector
  • argument(s)

6
Smalltalk Statements
  • assignment statements
  • punctuation
  • cascading

7
Smalltalk Conventions
  • class names
  • variable names
  • method names

8
Messages
  • unary
  • binary
  • keyword
  • precedence

9
Control Structures
  • sequence
  • selection
  • iteration
  • implementation of these in ST

10
Conditional Statements
  • Booleans
  • Boolean, True, False
  • statements that evaluate to a Boolean

11
Blocks
  • defining them
  • using them in conditional statements
  • using them in iteration statements
  • zero argument blocks and one argument blocks

12
Writing ST Conditional Statements
  • logic
  • the way ifTrue , ifFalse , and
    ifTrueifFalse work
  • types of statements

13
Formatting Conditional Statements
  • (a b)
  • ifTrue ..
  • ((c lt d) (f gt g))
  • ifTrue
  • ..
  • ifFalse
  • ..
  • .

14
Iteration
  • logic
  • test before and test after loops
  • how whileTrue and whileFalse operate
  • use of blocks

15
Types of Selectors for Looping
  • timesRepeat
  • "For" loops
  • Ex 1 to 10 do thisNum .
  • "While" loops
  • Ex block1 whileTrue block2.
  • "Repeat Until" loops
  • Ex block1 whileTrue block2.

16
Collections
  • types (bags, sets, arrays, strings, ordered
    collections, sorted collections, dictionaries)
  • remember the chart
  • know
  • indexed?
  • fixed number of elements?
  • duplicates allowed?
  • accessed by key?
  • restrictions on types of values?

17
Collection Methods
  • new
  • size
  • add
  • at
  • atput
  • asOrderedCollection, asBag, etc.
  • do
  • select

18
Use of Collections
  • Creating a new array or ordered collection
  • Adding up the values in an array or ordered
    collection
  • Performing some operation on each element of a
    collection
  • Creating new collections out of existing
    collections

19
Dictionaries
  • Characteristics of a dictionary (i.e., unique
    keys, etc.)
  • Creating a new dictionary
  • Storing objects in the dictionary
  • Retrieving objects from the dictionary

20
Files
  • Specifying the name and location of a file on
    disk
  • opening a file to read or write openEmpty
  • Reading fields of data from a text file
  • Storing an object on disk using storeOn reading
    the object back in

21
Creating Classes
  • How to build a class
  • Instance Variables
  • Class methods versus instance methods

22
Creating Methods
  • Steps in creating a method
  • Methods are attached to classes
  • Message patterns
  • unary messages
  • keyword messages
  • Use of the New Method Template
  • Be able to create a method !!!
  • Be able to use a method that you create !!!

23
PARTS
  • What is a PART?
  • Visual and Non-Visual Parts
  • The three editors
  • what each is used for

24
Assembling Your Application in the Composition
Editor
  • Steps in assembling your application
  • Types of links
  • Adding Non-Visual Parts
  • Using the Parts Palette
  • How to add links
  • Tear-off Attributes and Quick Form
  • Testing your application
  • Debugging your application
Write a Comment
User Comments (0)
About PowerShow.com