Upgrade to remove ads
Lecture 7: control statements
Terms in this set (16)
what are data structures implemented as?
variable and arrays
what are algorithms implemented as?
what is an algorithm?
a procedure for solving a problem
what is structured English language used to help design an algorithm?
what is a graphical representation of an algorithm ?
what are the 3 basic logic constructs?
sequence, iteration, and selection
what is another name for a compound statement?
when is a block used?
used when C requires a single statement but we want to include more than one statement
what are the only two things that can be tested with switch statements?
integers and characters
what is the break statement used for?
to break out of the switch statement
example of switch statement with grade 1 added one to grade and any other adding 2 to the grade
case 1: grade += 1; break;
default: grade +=2 ;
what must follow the word case?
a single constant expression
are breaks required?
what are the two basic patterns of loops?
count-controlled and event-controlled
what is the continue statement used for within the loop?
a short cut to the bottom of the loop
the null statement in a loop is just a ...
You might also like...
Java - A Beginner's Guide - Chapter 3
QUiz Review IT207 Control Structures
C Programming Chapter 5
JS Chapter 3
Other sets by this creator
More about Brene Brown / Shame resiliency theory "…
3.3 Fundamental Routing Concepts
Chapter 9: TCP/IP APPLICATIONS
Chapter 10 - Protecting Your Property