COP 3330 Final Exam Questions and
Answers 100% Pass
A member of a structure or of a class is accessed using the what symbol? -
CORRECT ANSWER-dot operator
What is the purpose of putting the keyword const in front of an identifier
declaration? - CORRECT ANSWER-Prevent changes to a variable or function
Be able to identify illegal and legal identifiers. - CORRECT ANSWER-must start
with _ or letter. Can be a combo of numbers or letter
What are the basic C++ types. - CORRECT ANSWER-bool, int, short, float, long,
double, char
Be able to identify how many times a loop is executed. - CORRECT ANSWER---
lookout for semicolon. If semicolon after the parenthesis, nothing will happen
however many times
Know the difference between a character and a string. - CORRECT ANSWER-
string is a group of characters
Know the difference between the = and the == symbols. - CORRECT
ANSWER-= is an assignment operator; == means equal to
, What is the purpose of the {} symbols. - CORRECT ANSWER-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. - CORRECT ANSWER-{ }
A member of a structure or of a class is accessed using what symbol(s)? -
CORRECT ANSWER-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) - CORRECT ANSWER-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) - CORRECT ANSWER-False
The concept of class is central to Object Oriented Programming. (true or false) -
CORRECT ANSWER-True
There is no access to private members of a class by any function defined outside
the class. (true or false) - CORRECT ANSWER-False
Multiple public: and private: sections are allowed in a class. (true of false) -
CORRECT ANSWER-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) - CORRECT ANSWER-True
COPYRIGHT ©️ 2025 ALL RIGHTS RESERVED
Answers 100% Pass
A member of a structure or of a class is accessed using the what symbol? -
CORRECT ANSWER-dot operator
What is the purpose of putting the keyword const in front of an identifier
declaration? - CORRECT ANSWER-Prevent changes to a variable or function
Be able to identify illegal and legal identifiers. - CORRECT ANSWER-must start
with _ or letter. Can be a combo of numbers or letter
What are the basic C++ types. - CORRECT ANSWER-bool, int, short, float, long,
double, char
Be able to identify how many times a loop is executed. - CORRECT ANSWER---
lookout for semicolon. If semicolon after the parenthesis, nothing will happen
however many times
Know the difference between a character and a string. - CORRECT ANSWER-
string is a group of characters
Know the difference between the = and the == symbols. - CORRECT
ANSWER-= is an assignment operator; == means equal to
, What is the purpose of the {} symbols. - CORRECT ANSWER-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. - CORRECT ANSWER-{ }
A member of a structure or of a class is accessed using what symbol(s)? -
CORRECT ANSWER-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) - CORRECT ANSWER-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) - CORRECT ANSWER-False
The concept of class is central to Object Oriented Programming. (true or false) -
CORRECT ANSWER-True
There is no access to private members of a class by any function defined outside
the class. (true or false) - CORRECT ANSWER-False
Multiple public: and private: sections are allowed in a class. (true of false) -
CORRECT ANSWER-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) - CORRECT ANSWER-True
COPYRIGHT ©️ 2025 ALL RIGHTS RESERVED