Worksheet3 - Worksheet 3 Transfer your answers to all questions to Chi-Tester ONCE YOU START YOUR CHITESTER SESSION YOU CANNOT CLOSE IT AND RESTART

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

View Full Document Right Arrow Icon
Worksheet 3 Transfer your answers to all questions to Chi-Tester. ONCE YOU START YOUR CHI- TESTER SESSION, YOU CANNOT CLOSE IT AND RESTART - TRANSFER ALL OF YOUR ANSWERS TO CHI-TESTER AT ONE TIME. 1. Based on the following enumeration, what is the value of ERROR? enum { READ = 2, WRITE = 4, EXECUTE = 8, ERROR }; a. 9 b. 10 c. 11 d. 16 e. 32 f. The statement will not compile because ERROR is not assigned a value g. The statement will not compile because it is missing the enumeration tag. 2. The following code fragment int calculate(int x, int y) { . . . } represents the a. the definition of function calculate b. a call of function calculate c. the declaration (i.e., the function prototype) of function calculate 3. The following code fragment int z = calculate(x, y); represents the a. the definition of function calculate b. a call of function calculate c. the declaration (i.e., the function prototype) of function calculate 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
4. The following code fragment implements ______________. void function(int arg)
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/27/2012 for the course CS 251 taught by Professor Staff during the Fall '08 term at Purdue University-West Lafayette.

Page1 / 6

Worksheet3 - Worksheet 3 Transfer your answers to all questions to Chi-Tester ONCE YOU START YOUR CHITESTER SESSION YOU CANNOT CLOSE IT AND RESTART

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