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

QUESTION 4 2 points Save Answe In C++ a class is a a collection of students who

ID: 3853732 • Letter: Q

Question

QUESTION 4 2 points Save Answe In C++ a class is a a collection of students who are studying the art of programming b. variables of a particular type c. a new kind of data type d. a group of things that are similar to each other O d. QUESTION 5 2 points Save Answer If three solutions are available for a programming problem, running in linear time, quadratic time and logarithmic time, the program that will run the fastest will use the solution written in a. these have nothing to do with how fast the program will run b. logarithmic time c. quadratic time Od. linear time QUESTION 6 2 points Save Answer A variable that is declared as static const inside a class is one a. which not allowed in C++ because it's a hold-over from the early days of C. b. for which there is only one copy that all objects share. c.that stays const even when users try to change it for which there is no type

Explanation / Answer

4. answer is c.new kind of data type

explanation: in C++ , a class is a user defined type or data structure declared with keyword class that has data and methods by having three type of access specifiers private,public,protect

5. answer is: linear time

explanation: time complexities as O(n)-linear

O(n^2)-Quadratic

O(nlogn)- logarithemic

O(n)<O(n^2)<O(nlogn) this order in time complexity low time complexity will possess high speed

6.answer: option b correct.

explanation: const scope is upto function and we cant change value of variable once initialized and static scope among program so it specifies that any objects of class will share same value

7.answer is c:The function will not change the object of which it is a member

explanation:const functions is not allow them to modify the object on which they are called

8.answer is a: same thing as class

explanation: object is an instance of a class

9.answer b is correct: a constant describes the size of array and the array itself, and it knows how much space itself is in use

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote