2551.Quiz1.Summer2007

2551.Quiz1.Summer2007 - both methods (operations) and...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
COP 2551 – Intro to Object Oriented Programming Quiz #1 Summer 2007 Name: ______________________ Answer the following questions as appropriate. 1. How many unique items can be represented with the following? (write your answers to the right of the categories listed: e.g, 10 bits = 2**10 or 1024 . a. 2 bits b. 4 bits c. 5 bits d. 8 bits 2. What does ‘volatile’ mean? Which memory devices are volatile and which are non-volatile. 3. IDE stands for: 4. Java is an example of a __________ generation programming language. (1 st, 2 nd , 3 rd , 4 th ) 5. Objects communicate by sending ________________________ to other objects a. spears b. rocks c. messages d. shouts 6. When a java source program is compiled, a ________________ file is produced. 7. (Circle letter) The fact that classes (objects) contain
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: both methods (operations) and attributes (variables) is referred to as: a. information hiding b. polymorphism c. encapsulation d. inheritance 8. (True/False circle one) The main method must always be defined with keywords public, static, and void. 9. (True/False circle one) A java bytecode file can either be interpreted or compiled into machine code. 10. (1101) 2 = _____________ 10 ? 11. The computer executes instructions inside: a. primary memory (RAM) b. ROM c. the central processing unit (CPU) d. disk storage 12. (True/False) Circle your choice. a Java program is both compiled and interpreted. 13. Dividing by zero is an example of a: a. compile-time error b. logical error c. run-time error d. I-have-no-clue error....
View Full Document

Ask a homework question - tutors are online