CIS  112        Review  Sheet Unit #1

 

Chapter 5:  Functions  (Pages 161-171;  176-180;  182-186;  199-213 + handouts)

 

The Function Concept

 

- Definition

- Why they are used (advantages)

- Three Components necessary to add functions to a program

            - Function definition

            - Function call

            - Function creation

- Examples of their use (see handout)

 

Arguments + Return Values

 

- Definition

- Arguments vs. Parameters

- Passing arguments (3 methods)

 

Variable Attributes

 

- Scope (global vs. local)

- Duration / storage class (Auto vs. static)

 

 

Chapter 7:  Arrays (Array Processing)  (Pages 263 276 + handouts)

 

- Definition

- Advantages and Disadvantages

- Declaration (1 Dim and 2 Dim)

- Initialization (Build/load)

- Strings as 1 Dim Arrays vs. Arrays of Char

- Indexes/Subscripts

- Accessing Arrays

- For loop as used in array processing

- Searching Arrays (linear search vs. binary search)

- Sorting Arrays