Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Bjarne Strausroup said, as quoted by Mr. Dolan, \'A namespace is .. a convention

ID: 3856549 • Letter: B

Question

Bjarne Strausroup said, as quoted by Mr. Dolan, 'A namespace is .. a convention for naming things. a scope. the space from which all names are derived. a method to force students to be more careful in writing their code. A variable that is declared as static const inside a class is one a. for which there is no type b. that stays const even when users try to change it c. which not allowed in C++ because it's a hold-over from the early days of C. d. for which there is only one copy that all objects share. The way which determines how values are copied from one object to another is called the value semantics. the invariant of a class. the copy rules. the copy constructor.

Explanation / Answer

Question 9:

answer (a) a convention for naming things

(a) a convention for naming things - meaning for namespace - true

(b) a scope - it refers to a variable name - false

(c) the space from which all names are derived - false

(d) a method to force student to be more careful in writing their code - false

Question 10:

answer (b) that stays const even when users try to change it.

Question 11:

answer (d) - the copy constructor

(a) value semantics - the object that only counts its value not its identity - false

(b) the invariant of a class - used to constrain object of a class - false

(c) the copy rules - copy from one place to another - false

(d) the copy constructor - initialize one object from another of the same type - true