c++ beginner level need expert answer to grade mine Ifazrayl and array2 are arra
ID: 3772834 • Letter: C
Question
c++ beginner level
need expert answer to grade mine
Explanation / Answer
1. Answer is (b)
We need to write a copy function that will make an element by element copy of array1 elements into array2 elements
2. Answer is (b)
Functions are commonly used to break a problem down into small manageable pieces
3. Answer is (a)
Subscript is the number used as an index to pinpoint a specific element within an array
if A is array then, in A[i], i is subscript and A[i] is element at index i
4. Answer is (a)
static_cast function is used to type cast a value
static_cast<double>(3) type casts 3 to double type
5. Answer is (c)
Overloading means multiple functions have the same name, but different formal parameters
Ex:
double area(int radius);
double area(int length, int breadth);
Nmae of the function is area in both cases but formal parameters differ
6. Answer is (d)
If a function should use call-by-reference, but forgot to include the ampersand, then the function becomes call-by-value and the program will run with incorrect results
7. Answer is (a)
outFile.close(); will close the filehandler holding by outFile object
8. Answer is (c)
When the program reads an integer from user, it reads all the chars till space or new line char encounters.
Since there is no space between 1 and 0, program reads both chars together and updates the integer variable with value 10.
9. Answer is (b)
When double sqrt(double value) is called, the value of the actual parameter is passed to the function since, the function is using call-by-value
10. Answer is (b)
Information Hiding is analogous to using a black-box mehodology
We can make use Hidden data through proper channels but can't access them directly
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.