MIS 304 Exam 2 Study Guide

MIS 304 Exam 2 Study Guide - M IS 304 Exam 2 Study Guide C...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
M IS 304 Exam 2 Study Guide
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Chapter 5: “Using If and Case – Decisions, Decisions, Decisions” Terms: Case Structure- programming block which tells the program what to do based on the value of a certain specified variable Data validation- ensures that user input falls within acceptable range or meets certain conditions Concepts: Case structures are based on one variable and have multiple options, depending on the value of the variable being tested. Case structures can be based on any data type. Case structures select the first case that matches and ignore all the rest. For a range or ranges, the Case is often easier to write and easier to examine in the code. Where there are numerous possible alternatives, the Case is usually a cleaner option. Programming Requirements: Be able to use Select Case statements to control the processing flow. Be able to use Case , Case Is < (or >, etc.), Case x To y, and Case Else .
Background image of page 2
Chapter 6: “Loops – Once is Not Enough” Terms: Bottom-driven (posttest) loop – a loop that checks for a stop condition at the end of each iteration of the loop Decrement- when a value starts at a high number before the 1 st iteration of a loop and decreases by a certain number until it hits the stop value Infinite loop- a loop that doesn’t end (no stop condition) Iteration- one ‘lap’ of the loop Loop- a function that repeats a specified certain number of times Loop index (counter)- a variable that increments or decrements by a certain value after each iteration of a loop Nested loops- loops within loops Top-driven (pretest) loop- a loop that checks for a stop condition at the start of each iteration of a loop Concepts: Once you know the proper steps for a process, it is easy to repeat those steps. Every loop has a condition that determines when it runs and when it stops. Use a For. ..Next loop when the number of iterations is known in advance. For. ..Next loops can be incremented by both positive and negative numbers. The counter can also change by decimal values. Programmers typically use i , j , and k to control For. ..Next loops. Developers often start a loop at zero so its final value ends up being the same as the number of iterations. Starting a loop at zero is also useful when working with arrays, a concept we will cover in Chapter 10. Do While/Until
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 9

MIS 304 Exam 2 Study Guide - M IS 304 Exam 2 Study Guide C...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online