CSE 1530 - Name: ____________________, ________ _________...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: Name: ____________________, ________ _________ (last) (first) Student Number: ______________________________ Section: _ _ Instructor: _P. Cribb_ L. Lowther_(circle) York University Faculty of Science and Engineering Department of Computer Science and Engineering Final Exam 7:00- 10:00pm, April 14, 2008 COSC1530.03 - Introduction to Computer Use II Winter term, FW07 Instructions: 1. Examination rules are in effect. 2. Fill in the information requested at the top of this page and print your name at the top of all the other pages. 3. Answer ALL questions. Answer questions in the space provided. 4. Time allowed is 180 minutes. 5. Use of calculators is NOT permitted. 6. Including the cover there are 19 pages with parts A to H. Please check the pages. Value Mark A. 10 _____ B. 10 _____ C. 22 _____ D. 12 _____ E. 9 _____ F. 20 _____ G. 10 _____ H. 7 _____ Total: 100 _____ - 1 - Question A (10 points) 1. In the code that implements a function you may not call another function or sub. T F 2. A function (call) can be used where ever a variable may be used because the function (call) essentially represents a value, i.e. the answer from the function. T F 3. A formal argument that is declared ByVal may not be assigned a new value within the subprogram. T F 4. The value of an actual argument corresponding to a formal argument that is declared ByRef may have been changed when the subprogram finishes executing. T F 5. A subprogram that has a ByRef formal argument may not be called with an explicit value as the corresponding actual argument, e.g. Call aSub(4.5) is not valid if the subprogram definition is Private Sub aSub (ByRef x As Double) T F 6. Coupling between a subprogram and the program that calls it may be through arguments, global variables, and/or control objects. T F 7. It is best practice if coupling between a subprogram and the program that calls it is only through the argument list. T F 8. If a subprogram includes a declaration of a local variable that is the same name as a global (form level) variable then that global variable may have been assigned a new value when the subprogram has finished executing. T F 9. Selecting a file using the OpenFileDialog control actually opens and reads the file. T F 10. If a file is read line-by-line generally a conditional loop will be used. T F- 2 - Question B (10 points) Circle one answer that best answers each question. 1) An action that may be taken by the user is a(n) __________. A) class B) control C) event D) method E) object F) procedure 2) An object used in a Graphical User Interface (GUI) is a(n) __________. A) class B) control C) event D) method E) object F) procedure 3) An occurrence of a class is a(n) __________....
View Full Document

Page1 / 19

CSE 1530 - Name: ____________________, ________ _________...

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