Chapter 10 Test 2

Chapter 10 Test 2 - Chapter 10 Test 2 Thursday, February...

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

View Full Document Right Arrow Icon
1. A macro is a #define directive that ____________ and has function-like behavior. A. uses no arguments B. requires no variables C. uses arguments D. cannot declare variables E. None of these 2. To test if a character entered is a letter of the alphabet, use the _______ macro. A. isdigit B. fromkeyboard C. alphaok D. isalpha E. None of these 3. To test if a character is a whitespace character, use the _________ macro. A. iswhite B. isspace C. iswhitespace D. isblank Chapter 10 Test 2 Thursday, February 24, 2011 5:15 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
E. None of these 4. To change a character argument from lower to upper case, use the _____ function. A. isupper B. toupper C. tolarge D. fromlower E. None of these 5. The output of the statement cout << tolower(toupper('Z')); is A. upper case Z B. lower case z C. a lower case z followed by an upper case Z D. a compiler error E. None of these 6. In C++, a string is a sequence of characters stored in consecutive memory, terminated by a A. period B. space C. null character D. semicolon General Page 2
Background image of page 2
E. None of these
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
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 10 Test 2 - Chapter 10 Test 2 Thursday, February...

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

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