Unformatted text preview:

COSC 181 Foundations of Computer Programming Class 21 Test Review Test Review Same Basic Format Short Answer or Multiple Choice Section Code Tracing Find the Errors Writing Code Syntax matters 2 Previously Covered Material Previously covered material Chapters 1 4 Intro to Computers Internet and the WWW Introduction to C Programming Introduction to Classes and Objects Defining Classes Name Return type Parameter Control Structures Part 1 If else while counter sentinel assignment operators etc 3 Key topics from before Objects and their relation to classes Basic kinds of errors Input and Output Streams Including library files Escape Sequences Variable Declaration and Assignment Requirements Specification Use Case Class and Activity Diagrams Classes Basic operators Writing Classes syntax Private vs Public Constructors Using Strings 4 Key topics from before con t How to use a header file Types of Control Structures Combining Control Structures Top down step wise refinement Seperating functionality from interface Difference between functionality and interface Now as it relates to Divide and Conquer Casting Using for loops Counter initialization Loop Continuation Condition Counter update Be able to tell how the looping works given a for statement 5 New Key Topics Output formatting commands functions Not Sticky Setw 2 Sticky fixed setprecision 3 do while statement Looping structure how different Syntax how different 6 1 Fig 5 7 f ig05 07 cpp 2 3 inc lude iostream 4 us ing std cout 5 us ing std endl do whi le 6 7 int main 8 9 int counter 1 initialize counter 10 11 do 12 13 cout counter display counter 14 counter increment counter 15 Outline repet it io n statement Declare and initialize control variable counter fig05 0 7 cpp do while loop displays counter s value before testing for counter s final value 1 of 1 while counter 10 end do while 16 17 cout endl output a newline 18 return0 indicate successful termination 19 end main 1 2 3 4 5 6 7 8 9 10 7 New Key Topics con t switch statement How do case labels and break statements work default label Associated activity diagram cin get static cast int character EOF ASCII The role of break and continue 8 New Key Topics con t Logical Operators logical AND logical OR logical NOT Truth Tables for each Short circuit evaluation Structured Programming 9 Chapter 6 Key Concepts Divide and Conquer Functions What are they why are they important How do we write them use them Ways to tell if your function is too complex How function calls work Declaration vs Definition Parameter Coercion Global functions Functions with multiple parameters C Standard Library Functions 3 ways that functions may return pow x y sqrt x How do you use must include cmath What is the C Standard Library 10 Chapter 6 Key Concepts Random Numbers cstdlib rand vs srand What is a seed What happens if we don t use srand How do we achieve a desired range of random numbers syntax Enumerations 11 Student Feedback Any questions from you Anything you need clarified 12


View Full Document

UVa-Wise COSC 181 - Foundations of Computer Programming

Download Foundations of Computer Programming
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Foundations of Computer Programming and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Foundations of Computer Programming and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?