Sample Midterm: .edu
Part I: 12 Multiple choice questions (2 points each):
Answer all of the following questions. READ EACH QUESTION CAREFULLY. Fill the correct bubble on your mark-sense sheet. Each correct question is worth 2 points. Choose the one BEST answer for each question. Assume that all given C++ code is syntactically correct unless a possibility to the contrary is suggested in the question.
Remember not to devote too much time to any single question, and good luck!
| |Consider the following program. |
| | |
| |#include |
| |using namespace std; |
| | |
| |int * f (int n) { |
| |int a[10]; |
| |for (int i = 0; i < 10; i++) |
| |a[i] = i*n; |
| |return a; |
| |} |
| | |
| |void main() { |
| |int j, k; |
| |int * p; |
| |j = 12; |
| |p = f(j); |
| |for (k = 0; k < 10; k++) { |
| |cout ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- isis iowa department of human services
- installation back out and rollback guide template
- why choose sonalysts to provide your full gsa advantage
- system design document for school of computing and
- sample midterm edu
- answers novella
- epayables quick reference guide for bank of america
- health services research development
Related searches
- midterm exam prep pre test questions for class sessions
- philosophy midterm study guide
- navy midterm bullets
- navy midterm goals
- navy midterm eval sample
- navy midterm strengths and weaknesses
- navy midterm weakness
- navy e 5 midterm examples
- navy midterm strength and weakness
- navy midterm strength bullets
- strategic management midterm quizlet
- sociology 101 midterm exam answers