Chapter 2 Test 1

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

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

View Full Document Right Arrow Icon
1. In a C++ program, two slash marks ( // ) indicate: A. The end of a statement B. The beginning of a comment C. The end of the program D. The beginning of a block of code E. None of the above 2. A statement that starts with a # is called a: A. Comment B. Function C. Preprocessor directive D. Key Word E. None of the above. 3. True/False: C++ is a case-sensitive language A. True B. False 4. For every opening brace in a C++ program, there must be a: Chapter 2 Test 1 Thursday, February 24, 2011 5:06 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
String constant B. Function C. Variable D. Closing brace E. None of the above 5. The ______ is/are used to display information on the computer's screen. A. Opening and closing braces B. Opening and closing quotation marks C. cout object D. Backslash E. None of the above 6. The _____ causes the contents of another file to be inserted into a program. A. Backslash B. Pound sign C. Semicolon D. #include directive E. None of the above 7. True/False: Variables represent storage locations in the computer's memory. General Page 2
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 02/24/2011 for the course CS 245 taught by Professor Duke during the Fall '10 term at VCU.

Page1 / 6

Chapter 2 Test 1 - Chapter 2 Test 1 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