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

C++ programming questions, most points to most complete answer 16. If we use an

ID: 3771776 • Letter: C

Question

C++ programming questions, most points to most complete answer

16. If we use an out of range index with a vector, there will be an error message from the compiler. (Points : 2)
True
False

Question 17.17. The following function declaration guarantees the values in the array argument are not changed.

void function1(int array[], int numElements); (Points : 2)
True
False

Question 18.18. If you use the const modifier in a function declaration, you do not include it in the function definition. (Points : 2)
True
False

Question 19.19. Using directives can be placed either directly after the include directives, or at the beginning of each function definition.
(Points : 2)
True
False

Question 20.20. Data that is sent to an output stream representing a file will be immediately saved to disk.
(Points : 2)
True

False

Explanation / Answer

16)false

vector is can change in size.

Just like arrays, vectors use contiguous storage locations for their elements.

so it doesn't generate any error.

17)false

here we sent array pointer as a argument.so any operation on array is refelect the orignal array.so the aruguments in array may change.

18)false.

we get an error :too few arguments to a function.

19)true

20)true

The C/C++ facilities for working with disk les actually call OS subroutines to do the work.

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