Which of the following operations is allowed on pointer variables?Question 25Suppose that gammais an array of 50 components of type intand jis an intvariable. Which of thefollowing forloops sets the index of gammaout of bounds?Question 26
In C++, '&' is an "address of" operator.
Question 27
What is the output of the following C++ code? int list[5] = {0, 5, 10, 15, 20}; int j; for (j = 1; j <= 5; j++) cout << list[j] << " "; cout << endl; Question 28
int a[5]; int *ptr;
ptr = a;
0 out of 2 points
0 out of 2 points
0 out of 2 points
0 out of 2 points
2 out of 2 points
2 out of 2 points
2 out of 2 points

12/13/2018
Review Test Submission: Final - Fall 2018 – 2018FA-19666...
;
5/7
Question 29Given the declaration int list[20];the statement list[12] = list[5] + list[7];updates the content of the twelfth component of the array listQuestion 30All components of an array are of the same data type.Question 31Consider the following statement: int alpha[25][10];. Which of the following statements aboutalphais true?Question 32
.
Given: int grade[4];
grade and &grade[0] can be interchangeable.
Question 33
What is the output of the following statements? int x = 33; int *q; q = &x; cout << *q << endl;Question 34_________ type file stream object will allow a program to write data into a file:Question 35An array created during the execution of a program is called a(n) ____ array.Question 36Which of the following correctly declares nameto be a character array and stores "William"in it?
0 out of 2 points2 out of 2 points0 out of 2 points
2 out of 2 points
0 out of 2 points
2 out of 2 points0 out of 2 points2 out of 2 points

12/13/2018
Review Test Submission: Final - Fall 2018 – 2018FA-19666...
;
6/7


You've reached the end of your free preview.
Want to read all 7 pages?
- Fall '15
- Marinolent
- Pointer, Type theory, char val