qz4_ver2_sol

qz4_ver2_sol - UCR CS010 Fall 2003 Introduction to Computer...

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

View Full Document Right Arrow Icon
UCR CS010 Fall 2003 Introduction to Computer Science I Kris Miller, Dr. Brian Linard Quiz 4 (003) 1. Given the following function declaration and local variable declarations, which of the following is not a correct function call? int myInt; float myFloat; char ch; void someFunction(float first, int& second, char third); a. someFunction(myFloat, myInt, ‘1’); b. someFunction(myFloat, myInt, ch); c. someFunction(2.0, myInt, 'c'); d. someFunction(myFloat, 2, '1'); 2. Testing your program should be done a. Only if there appear to be problems b. At the end of the coding c. As each function is developed d. Only if your instructor requires it. 3. Which statement correctly opens an input stream named in_file and attaches it to a file name project.txt? a. in_file.open("project.txt"); b. in_file="project.txt" c. in_file=project.txt d. in_file.open(project.txt); 4. A function that is associated with an object is called a _________ function. a.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 04/02/2012.

Page1 / 2

qz4_ver2_sol - UCR CS010 Fall 2003 Introduction to Computer...

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

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