A member of a structure or of a class is accessed using the what symbol? - Answers dot
operator
What is the purpose of putting the keyword const in front of an identifier declaration? - Answers
Prevent changes to a variable or function
Be able to identify illegal and legal identifiers. - Answers must start with _ or letter. Can be a
combo of numbers or letter
What are the basic C++ types. - Answers bool, int, short, float, long, double, char
Be able to identify how many times a loop is executed. - Answers --lookout for semicolon. If
semicolon after the parenthesis, nothing will happen however many times
Know the difference between a character and a string. - Answers string is a group of characters
Know the difference between the = and the == symbols. - Answers = is an assignment operator;
== means equal to
What is the purpose of the {} symbols. - Answers Used for compund statements for if, else,
while, do while, for loops,
If you intend to perform a group of statements within an if statement, you must place what
symbols around the statements. - Answers { }
A member of a structure or of a class is accessed using what symbol(s)? - Answers dot
operator
A C++ structure, or struct, like the C++ array, is a homogeneous data structure. (i.e., all data is of
the same type) (true of false) - Answers False
A C++ structure, or struct, like the C++ array, is a homogeneous data structure. (i.e., all data is of
the same type) (true of false) - Answers False
The concept of class is central to Object Oriented Programming. (true or false) - Answers True
There is no access to private members of a class by any function defined outside the class.
(true or false) - Answers False
Multiple public: and private: sections are allowed in a class. (true of false) - Answers True
A constructor is a special kind of member function. It is automatically called when an object of
that class is declared. (true or false) - Answers True
A constructor is always named construct with class name attached. If the class is Box, then the
constructor name is constructorBox. (true or false) - Answers False