Chapter 3 Test 2

Chapter 3 Test 2 - Chapter 3 Test 2 Thursday, February 24,...

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

View Full Document Right Arrow Icon
1. The ________ object causes data to be output to the monitor. A. cin B. cout C. conditional D. standard output E. None of the above 2. True/False: The cin object will let the user enter a string larger than the array can hold. A. True B. False 3. Which of the following will read a string into the array char Names[20] ? A. cin << Names; B. cin Names; C. cin >> Names[20]; D. cin >> Names; E. None of the above 4. True/False: A string is stored in an array of characters. Chapter 3 Test 2 Thursday, February 24, 2011 5:09 AM General Page 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
True B. False 5. Which of the following lines of code declares an array that will hold 49 characters and the null terminator? A. char [49]; B. char string1[50]; C. char[50] string1; D. character string[50]; E. None of the above 6. Associativity is either right to left or A. Top to bottom B. Front to back C. Left to right D. Undeterminable E. None of the above 7. True/False: Arithmetic operators that share the same precedence have right to left associativity.
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.

Page1 / 6

Chapter 3 Test 2 - Chapter 3 Test 2 Thursday, February 24,...

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