Unformatted text preview:

Slide 1Slide 2Slide 3Slide 4Slide 5Slide 6Slide 7Slide 8Slide 9Slide 10Slide 11Slide 12COSC 181 – Foundations of Computer ProgrammingClass 12 – Review Test for Exam #1House KeepingAssignment 4 is due 1 Week From TodayExam #1 is FridayToday, we will have a reviewExam Prep in GeneralHow to pass the test (short version)Make sure you understand the concepts and examples in the book (Chapters 1-4)Pay special attention to the elements from the chapters that have been highlighted in class slides and homework assignmentsTypes of QuestionsCode TracingValues of a and b when the loop endsint a = 0;int b = 10;while (b > 0){ a = a * b; --b;} • Code Tracing•Find the error(s) in the codeif(a=b); cout << a << endlSyntax matters, close enough isn’t close enoughWrite pieces of codeWrite a loop (along with any necessary variable declarations) that does …Multiple ChoiceWhich is correct …Short answer:What does “case-sensitive” meanWhat is the difference between a class’s interface and its implementationReview of key topicsTalked about what objects areHow objects relate to classes in C++2 kinds of errorsRun-time and compile-time Basic componentsInput and output streamsSending output to the monitorGetting input from the keyboardHow to include library filesEtcEscape sequencesVariable declarationsTypeNameRelation to computer memoryMethods for variable assignmentVocabulary:Fundamental typesIdentifiersArithmetic OperatorsRelational and Equality OperatorsOperator PrecedenceRequirements SpecificationUML Diagrams (3 kinds)Use CaseClassActivityClassesclass keyword class nameHow to write functions in classesReturn typeNameParameters Parameter typeParameter nameClass attributesFunction Definition vs Function CallPrivate vs publicConstructors Explicit DefaultUsing StringsStrings vs charHow to use a header fileHow to separate interface from functionalityWhy do this?if-else statementsNested if-else statementsTernary conditional operator3 types of control structuresSequenceSelection RepetitionStructures combined in 2 waysStackedNestedwhile loopsCounter controlledSentinel value controlledPseudocodeTop-down, step-wise refinementCastingStudent FeedbackAny questions from you?Anything you need


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 2 2 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?