Hello! This is C++. Could you please answer these questions? Thank you and have
ID: 3712311 • Letter: H
Question
Hello! This is C++.
Could you please answer these questions?
Thank you and have a good one!
1. When you compile a C++ program, error messages and/or ____ might appear.
bugs
exceptions
inconsistencies
warnings
2. To ____ an object is to declare or create it.
instantiate
encapsulate
abstract
overload
3. Maintenance programming involves making modifications and improvements to existing systems.
True
False
4. Static functions ____ access non-static variables.
can
cannot
should
should not
5. Which of the following statements has an error?
int rent[4] = {250, 375, 460, 600};
int rent[] = {250, 375, 460, 600};
int rent[4] = {250, 375};
int rent[4] = {250, 375, 460, 600, 650};
bugs
exceptions
inconsistencies
warnings
Explanation / Answer
1). When we compile a C++ program, error messages and/or Warnings might appear in c++.
2). To instantiate an object is to declare or create it.An Object is an instance of a Class. No memory is allocated at the time of defining the class but when it is instantiated (i.e. an object is created) memory is allocated.
3). True, Maintenance programming involves making modifications and enhancements to the existing system's Functionality.
4). No, Static functions cannot access non-static variables but it can access only static variables.
5). statement int rent[] = {250, 375, 460, 600}; contains error because its illigal to declare array with no size.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.