Unit 09 Test - UNIT09/REVIEW2TEST

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
UNIT 09/ REVIEW 2 TEST 1. Determine if the following statements are true or false. a. Every element in a given array must be the same data type. b. The maximum numbers of unique values that can be stored in one byte  is 128. c. The value 1011 in Base-2 is the equivalent of 12 in Base-10 and B in  Base-16. d. The cell number for the first element in an array is always zero. e. A function that returns void cannot be overloaded. a. True; Returns error regarding storage of wrong data type. b. False; 256 c. False; Base-16 is right but Base-10 should be 11. d. True; in a 1 row array. e. False; it can. 2. Identify the global, local, static, and constant variables in the code below.  Also, what will be the output of the code? int j = 30; int k = 10; void myFunction( ) { const int i = 2; static int j = 4; j++; k--; cout << i << endl; cout << j << endl; cout << k << endl; return; }
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
int main() { myFunction();
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/02/2011 for the course ME 205 taught by Professor Koen during the Spring '07 term at University of Texas at Austin.

Page1 / 8

Unit 09 Test - UNIT09/REVIEW2TEST

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online