QUESTIONS ABOUT C++ Please Help ASAP Note that there are missing question number
ID: 3845956 • Letter: Q
Question
QUESTIONS ABOUT C++ Please Help ASAP
Note that there are missing question numbers. That is done on purpose. Thanks!
3. Given a pointer to an object o, C++ programmers use the symbol . to reference the members and methods of that pointer variable.
4. In C++, cout, the thing we have been using to process output, is actually an example of a class.
11. In C++, the friend operator> comes in two overloaded forms, one that takes one argument and one that takes two arguments.
20. Whenever they are passed as parameters to a function, the IO classes istream and ostream must be passed using a pass-by-reference parameter passing scheme.
24. The loop below:
int j = 0;
while ( j <= 10 )
j++;
terminates when j > 10.
25. Run-time parameters passed to a function allow you to use different values each time the function is called.
38. If operator >> is supported by a class, how many parameters should it be defined to accept?
39. If operator+ is supported by a class, how many parameters should it be defined to accept?
40. In C++, the first element in an array has the index value
TrueExplanation / Answer
Answer 3:- False
Because the the -> operator is used to reference the members and methods of that pointer variable.
Answer 4:- True
cout i.e. the standard output stream is an instance of ostream class.
Answer 11:- True
Because One can be compared with This pointer and the other can be first > second. So both are valid.
Answer 20:- True
Istream and ostream is passed by reference.
Answer 24:- True
While loop will be terminated at j>10 because condition will false when j will be greater than 10.
Answer 25:- True
Run time parameter or we can say that pass-by-reference means to pass the reference of an argument in the calling function to the corresponding formal parameter of the called function. Hence the called function can modify the value of the argument by using its reference passed in. So Run-time parameters passed to a function allow you to use different values each time the function is called.
Answer 38:- 1
Answer 39:- 1 or 2
Answer 40:- 0
In c++, the first element in an array has 0 index value.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.