Exam 2 Review.

Slides:



Advertisements
Similar presentations
1 Chapter Five Selection and Repetition. 2 Objectives How to make decisions using the if statement How to make decisions using the if-else statement How.
Advertisements

CS0004: Introduction to Programming Repetition – Do Loops.
Wednesday, 12/11/02, Slide #1 CS 106 Intro to Comp. Sci. 1 Wednesday, 12/11/02  QUESTIONS??  Today: CLOSING CEREMONIES!  HW #5 – Back Monday (12/16)
Chapter 6 - Repetition. Introduction u Many applications require certain operations to be carried out more than once. Such situations require repetition.
Chapter 5: Control Structures II (Repetition)
Chapter 5: Loops and Files.
Wednesday, 10/9/02, Slide #1 CS 106 Intro to CS 1 Wednesday, 10/9/02  QUESTIONS ??  Today:  Discuss HW #02  Discuss test question types  Review 
Review for midterm exam Dilshad M. Shahid Spring NYU.
CS 117 Spring 2002 Review for Exam 2 March 6, 2002 open book, 1 page of notes.
Chapter 5: Control Structures II (Repetition)
CS241 PASCAL I - Control Structures1 PASCAL I - Control Structures Philip Fees CS241.
Chapter 5: Repetition Statements. In this chapter, you will learn about: Basic loop structures while loops Interactive while loops for loops Loop programming.
Chapter 5: Control Structures II (Repetition)
CHAPTER 5: CONTROL STRUCTURES II INSTRUCTOR: MOHAMMAD MOJADDAM.
ASP.NET Programming with C# and SQL Server First Edition Chapter 3 Using Functions, Methods, and Control Structures.
1 Chapter 9 Additional Control Structures Dale/Weems/Headington.
Project 1 Due Date: September 25 th Quiz 4 is due September 28 th Quiz 5 is due October2th 1.
Additional Control Structures. Chapter 9 Topics Switch Statement for Multi-way Branching Do-While Statement for Looping For Statement for Looping Using.
1 Chapter 9 Additional Control Structures Dale/Weems.
1 Additional Control Structures. 2 Chapter 9 Topics  Switch Statement for Multi-way Branching  Do-While Statement for Looping  For Statement for Looping.
Chapter 5 Control Structure (Repetition). Objectives In this chapter, you will: Learn about repetition (looping) control structures Explore how to construct.
Chapter 5: Control Structures II (Repetition). Objectives In this chapter, you will: – Learn about repetition (looping) control structures – Learn how.
Chapter 7 Additional Control Structures. 2 2 void GetYesOrNo (/* out */ char& response) // Inputs a character from the user // Postcondition: response.
sequence of execution of high-level statements
Control Structures II (Repetition). Objectives In this chapter you will: Learn about repetition (looping) control structures Explore how to construct.
An Introduction to Programming with C++ Sixth Edition Chapter 7 The Repetition Structure.
Chapter 3 Functions, Events, and Control Structures JavaScript, Third Edition.
Repetition Statements while and do while loops
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 5 Looping.
Chapter 15 JavaScript: Part III The Web Warrior Guide to Web Design Technologies.
CS241 PASCAL I - Control Structures1 PASCAL Control Structures Modified Slides of Philip Fees.
Repetition Statements (Loops) The do while Loop The last iteration structure in C++ is the do while loop. A do while loop repeats a statement or.
1 do-while Statement 2 Do-While Statement Is a looping control structure in which the loop condition is tested after each iteration of the loop. SYNTAX.
1 Standard Version of Starting Out with C++, 4th Brief Edition Chapter 5 Looping.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 5: Looping.
1 For Loops l From Chapter 9 l A shorthand way of coding count loops.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 5 Looping.
1 Programming in C++ Dale/Weems/Headington Chapter 9 Additional Control Structures (Switch, Do..While, For statements)
CONTROL STRUCTURE Chapter 3. CONTROL STRUCTURES ONE-WAY SELECTION Syntax: if (expression) statement Expression referred to as decision maker. Statement.
Chapter 6 - Repetition. while Loop u Simplest loop u Two parts: test expression and loop body u Pre-tested loop –Execute loop body if test true –Bypass.
Chapter Looping 5. The Increment and Decrement Operators 5.1.
Chapter 7: The Repetition Structure Introduction to Programming with C++ Fourth Edition.
Chapter Looping 5. The Increment and Decrement Operators 5.1.
Lecture 7 – Repetition (Loop) FTMK, UTeM – Sem /2014.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 2: Control Structures (Selection & Repetition)
Chapter 9 Repetition.
Test 2 Review Outline.
Chapter 8: More on the Repetition Structure
Topic 4: Looping Statements
Chapter 5: Control Structures II (Repetition)
Exam 3 Review.
Control Structures II (Repetition)
Java Programming: Guided Learning with Early Objects
Chapter 5: Looping Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Chapter 19 JavaScript.
Chapter 5 Repetition.
Chapter 9 Control Structures.
Review for Final Exam.
The University of Texas – Pan American
Chapter 8: More on the Repetition Structure
Control structures Chapter 3.
Chapter 6: Repetition Statements
Control structures Chapter 3.
Chapter 9: Value-Returning Functions
Review for Final Exam.
Control structures Chapter 3.
1-6 Midterm Review.
Repetition Statements (Loops) - 2
Controlling Program Flow
The for Loop © 2018 Kris Jordan.
Presentation transcript:

Exam 2 Review

Format 5 “determine the output” type questions 5 or 10 points each 2 Point Multiple Choice (70 points) 35 Questions Most similar to TopHat 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)

Chapter 5 Key Terms Review Questions Key Concepts - 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

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

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

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

Chapter 9 Key Terms Review Questions Key Concepts - Actual Arguments - Built In / Program Defined Function - Formal Parameters - Function Prototype - Global / Local Variable - Lifetime / Scope - Passing by Reference / Value - Pseudo-Random Number Generator - Return Statement - Srand Function - Time Function - Value Returning Function - Etc… 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

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

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

Pulling it All Together Let’s read some code!