Introduction to Programming in C Exam 2 Seventh










- Slides: 10

Introduction to Programming in C++ Exam 2 Seventh Edition Review

Format 2 Point Multiple Choice (70 points) • 35 Questions • Most similar to Top. Hat quizzes • Few “determine the output” type questions Determine the output questions (30 points) • 5 “determine the output” type questions • 5 or 10 points each Explain purpose of each line of code (15 points) Find the problem (15 points) 2

Chapter 5 Key Terms - Argument - Local Variable - Boolean Operators - Logical Operators - Comparison operators - Selection Structure - Decision Symbol - Repetition Structure - Single / Dual alternative selection structures - True / False Path - Statement Block Review Questions Key Concepts - C++ Syntax for selection structures - Condition must evaluate to True or False - Single / Dual structures and syntax 3

Chapter 6 Key Terms - Break Statement - Nested selection structure - Multi-Alternative Selection Structure - Switch Statement Review Questions Key Concepts - Nested if statements - Common logic errors with nested if statements - Switch statements 4

Chapter 7 Key Terms - Accumulator - Counter Controlled loop - For Statement - Pretest / Posttest Loop - While Statement - Counter - Endless Loop / Infinite loop - Loop / Loop Body / Loop condition, etc. - Priming Read / Update Read - Sentinel Values Review Questions Key Concepts - While loops - Pretest loop - For loops - Posttest loop 5

Chapter 8 Key Terms - Do While Statement - Nested Loop - Exponentiation - pow Function Review Questions Key Concepts - Posttest loop - Do While loops - Nested loops - pow Function 6

Chapter 9 Key Terms - Actual Arguments - Formal Parameters - Global / Local Variable - Passing by Reference / Value - Return Statement - Time Function - Etc… - Built In / Program Defined Function - Function Prototype - Lifetime / Scope - Pseudo-Random Number Generator - Srand Function - Value Returning Function Review Questions Key Concepts - Functions (Value Returning vs Void / Program Defined vs Built In) - Scope and Life of Variables - Passing by Reference vs Value - Function Syntax 7

Chapter 10 Key Terms -& - Void Functions - Passing by Reference Review Questions Key Concepts - Void Functions Syntax - Passing by Reference vs Value - 8

Test Planning Key Terms - Test Case - Test Log - Interface Testing - Stress Testing - System / Function Test - UAT - Test Plan - Test Case - Boundary Testing - Component / Unit Test - Product Test Key Concepts - Importance of testing - Lifecycle of Testing - What to include in Testplan / Testcase 9

Pulling it All Together Let’s read some code! 10