MidTerm Exam - PowerPoint PPT Presentation

1 / 19
About This Presentation
Title:

MidTerm Exam

Description:

... of these in ST. 13. Conditional Statements. Booleans ... Writing ST Conditional Statements. logic. the way ifTrue: , ifFalse , and ifTrue:ifFalse: work ... – PowerPoint PPT presentation

Number of Views:74
Avg rating:3.0/5.0
Slides: 20
Provided by: calpoly
Category:
Tags: midterm | exam | st

less

Transcript and Presenter's Notes

Title: MidTerm Exam


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

3
Basic Object Concepts
  • what is an object
  • objects contain both behavior and data
  • benefits of the use of the object model

4
Object Oriented Programming Definitions
  • object
  • encapsulation
  • inheritance
  • polymorphism
  • clients and servers
  • etc.

5
Planning Your Logic
  • Pseudocode
  • Flowcharts
  • flowcharts of selection
  • flowcharts of iteration
  • test-before loops
  • test-after loops

6
ST Language Fundamentals
  • Literals, variables, classes
  • Naming conventions in ST
  • Structure of a ST expression (receiving object,
    selector, argument(s))
  • Assignment statements

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

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

9
Smalltalk Statements
  • assignment statements
  • punctuation
  • cascading

10
Smalltalk Conventions
  • class names
  • variable names
  • method names

11
Messages
  • unary
  • binary
  • keyword
  • precedence

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

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

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

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

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

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

18
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.

19
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?
Write a Comment
User Comments (0)
About PowerShow.com