(CSCI 1300 Final exam (2026 Edition)
Which of the following type of data member can be Static
shared by all instances of its class? A.Public,
B.Inherited,C.Static,D.Friend
What regarding a class can be declared as a friend? A class can be declared as a friend
What does a destructor do? ~IndiaBix() { } is an example. They have same name as the class and destroy
class objects
(T/F) class data members are private by default while T
that of structure are public by default
Does C++ allows static type checking or both
C++ allows dynamic type checking or both
Which way declares a function as constant? int ShowData(void) const { / statements / }
int const ShowData(void) { / statements / }
or int ShowData(void) const { / statements / }
3/30/2026, 5:30:11 PM 3/30/2026, 5:30:09 PM
, (CSCI 1300 Final exam (2026 Edition)
T/F T
Constructor is called either implicitly or explicitly,
whereas destructor is always called implicitly.
what happens whenever an object goes out of scope? The default destructor of the object is called.
If the programmer does not explicitly provide a The compiler
destructor, then which of the following creates an
empty destructor?
a variable declaration has a data type, and at least a name.
variable declarations are almost identical except... definitions also include memory location and a value. (they are often done
together)
What does % (modulus) do? It gives the remainder only.
what is 25%7 25%7 is 4
conditionals are.... if statements and switches. They use boolean logic.
3/30/2026, 5:30:11 PM 3/30/2026, 5:30:09 PM
Which of the following type of data member can be Static
shared by all instances of its class? A.Public,
B.Inherited,C.Static,D.Friend
What regarding a class can be declared as a friend? A class can be declared as a friend
What does a destructor do? ~IndiaBix() { } is an example. They have same name as the class and destroy
class objects
(T/F) class data members are private by default while T
that of structure are public by default
Does C++ allows static type checking or both
C++ allows dynamic type checking or both
Which way declares a function as constant? int ShowData(void) const { / statements / }
int const ShowData(void) { / statements / }
or int ShowData(void) const { / statements / }
3/30/2026, 5:30:11 PM 3/30/2026, 5:30:09 PM
, (CSCI 1300 Final exam (2026 Edition)
T/F T
Constructor is called either implicitly or explicitly,
whereas destructor is always called implicitly.
what happens whenever an object goes out of scope? The default destructor of the object is called.
If the programmer does not explicitly provide a The compiler
destructor, then which of the following creates an
empty destructor?
a variable declaration has a data type, and at least a name.
variable declarations are almost identical except... definitions also include memory location and a value. (they are often done
together)
What does % (modulus) do? It gives the remainder only.
what is 25%7 25%7 is 4
conditionals are.... if statements and switches. They use boolean logic.
3/30/2026, 5:30:11 PM 3/30/2026, 5:30:09 PM