Exam 2 Study Guide - T erms Scope local scope a name...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Terms: Scope local scope: a name declared within a block is accessible only within that block and blocks enclosed by it, and only after the point of declaration. global scope: is the outmost namespace scope of a program, in which objects, functions, types, and templates can be defined. From the place declared until the file ends. Loops(a control structure that causes a statement or statements to repeat) looping: (3 parts of a loop!) -set up a loop control variable (LCV) -set up a correct condition for the loop using the LCV (test the LCV) -change the value of the LCV inside the loop iterative loop a loop that executes a specified a specified number of times or over a specific range of values. sentinel-controlled loop a loop that continues until a specific data value is seen. loop-control variable is used to regulate the number of times the body of a program loop is executed; it’s incremented( or decremented when counting down) each time the loop body is executed. infinite loops, errors that can lead to an infinite loop a sequence of instructions in a computer program that is repeated over and over without end, due to a mistake in the programming.
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern