Chapter 6 Test 1

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

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

View Full Document Right Arrow Icon
1. A(n) __________ is a collection of statements that performs a specific task. A. infinite loop B. variable C. constant D. function E. None of these 2. A function __________ contains the statements that make up the function. A. definition B. prototype C. call D. expression E. None of these 3. A function can have zero to many parameters, and it can have _____ return value(s). A. zero to many B. no C. only one D. a maximum of ten Chapter 6 Test 1 Thursday, February 24, 2011 5:12 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. A function is executed when it is: A. defined B. prototyped C. declared D. called E. None of these 5. True/False: When a function is called, flow of control moves to the function's prototype. A. True B. False 6. In a function header line, you are required to furnish: A. data type(s) of parameters B. data type of return value C. name of function D. variable name(s) of parameters E. All of these 7. True/False: A parameter is a special-purpose variable that is declared inside the parentheses General Page 2
Background image of page 2
of a function definition. A.
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 / 7

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

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