test1_sample - Name: ______________________,...

Info iconThis preview shows pages 1–3. 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
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: _A__ Instructor: ___ _ _P. Cribb_________ York University Faculty of Science and Engineering Department of Computer Science and Engineering COSC1530.03 - Introduction to Computer Use II - Fall, FW07 Test 1 – October 19, 2007 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 50 minutes. 5. Use of calculators is NOT permitted. 6. Including the cover there are 7 pages with parts A to D. Please check the pages. Value Mark A. 10 _____ B. 22 _____ C. 5 _____ D. 8 _____ Total: 45 _____ 1 Part A (10 points; 1 point each) 1. To use the Math class you must first create an object of the class. … … T F 2. Some objects have properties that cannot be assigned a value in program code. … … T F The Integer and Single data types both use 4 bytes (32 bits). The Integer type uses the 2s complement code, whereas the Single type uses a floating point code. (relevant to Q.s 3, 4, 5) 3. The maximum value represented by the Single data type is larger than the maximum value represented by the Integer data type. … … T F 4. The Single data type can represent more values than the Integer data type. … … T F 5. There is no error (lack of precision) when values are of Integer data type whereas there may be error when values are of Single data type. … … T F 6. After syntax errors have been corrected a program will run correctly, i.e. produce correct results. … … T F 7. Indentation of lines of code is required syntax....
View Full Document

This note was uploaded on 02/09/2010 for the course CSE 1530 taught by Professor P.cribb during the Fall '07 term at York University.

Page1 / 7

test1_sample - Name: ______________________,...

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