-
6
pages
-
English
-
Documents
Description
COP 2000 Introduction to Computer Programming Exam II Review The exam format will be similar to the first one with answers written following the questions on the test paper. The exam will be closed book, but students can use one 8.5’x11” sheet of notes in any size type front and back. Key Terms & Concepts: ( See also http://www.gibson.vero-beach.fl.us/classes/cop2000/glos45.html ) • Boolean data is a logical type of data with only two values: True and False • Ordinal data is a type of data in which all of the values within the set are known and in a predictable order. Ordinal data types include: all integer data types, char and bool, but not float. • Relational operators are those used to evaluate the relationships between items of data, including: • == - Equal to, the opposite of which is written in C as != (or not equal to). • > - Greater than<= (less than or equal to). • < - Less than>= (greater than or equal to). • Relational expressions are formulae such as X==A+B that compare items of data (including constants, symbolic constants, variables, or expressions) and produce an integer (1 for true, 0 for false) result. • Boolean (logical) operators such as && (and), || (or) and ! (not) are those used to combine Boolean operands into Boolean (logical) expressions such as (X==0 && Y>10) to produce a single Boolean result. • A condition is any expression that produces a Boolean result. • Branching is the act of breaking out of the normal ...
-
Publié par
-
Langue
English