Exposure Java Name: KEY Review01_02 Date: Period: 01. List 3 areas where computers are superior to human beings. Faster, better memory and more accurate 02. What is really the cause of most “computer errors”? Human programming error or data input error 03. How many different combinations of “on” and “off” are possible with 8 “lightbulbs”? 256 04. What number system do you use? What number system does the computer use? Base 10, Base 2 05. What does ASCII stand for? What is it used for? American Standard Code of Information Interchange, assigns base 10 values to a set of characters and controls (which are rarely used anymore). 06. What ASCII range is used for the “standard set of characters”? 0..127 07. What is “bit” an abbreviation for? How many bits are in a byte? Binary digit, 8 08. How is Unicode different from ASCII? What does Java use? It uses two bytes and adds many characters. Java uses Unicode 09. How many different combinations are possible with 2 bytes? 65,536 10. Early computers used vacuum tubes. eventually replaced the vacuum tubes? One bit, Transistors 11. How do you write comments in a program? How does the compiler handle comments? One line uses //, paragraph commenting uses /*. The compiler ignores comments. 12. What do computers use today to store information? Planar transistors on microchips 13. 14. How much information did one vacuum tube store? What Convert the following base 10 numbers to binary. 69, 231, 14 They all are represented by 10 State the rules for user defined identifiers. Label them as language required vs. teacher/industry standard required. Exposure Java, 2006 Exercises0102 10-07-06 15. What character is associated with base ten 65 value, 97 value? A and a 16. What number system is typically used to display memory addresses? Base16 17. What is the main board in a computer, with all the primary computer components, called? Motherboard 18. What kind of chip stores semi-permanent information for the computer? BIOS 19. What does ROM stand for? What does RAM stand for? Read Only Memory Random Access Memory ROM is permanent and RAM is volatile. 20. Which stores more information, gigabytes or terabytes? Terabytes 21. Exactly how many bytes are in a megabyte? 1,048,576 22. What does CPU stand for? What operations is it responsible for? How is the speed measured? Central Processing Unit, for all calculations and comparisons, gigahertz 23. Iron Oxide is the technical term for something we use to store information on a disk. What is the more common term? Rust 24. What secondary storage device is coded with areas that reflect and absorb laser light? CDs 25. What is the difference between a high level and low level language? Low level closer to binary, machine code or Assembly. High level- more English like- Java, C++. 26. What three types of errors will you encounter as you develop your programs? Syntax, run-time, logic-error 27. What is Bytecode? How do you recognize a bytecode file? Your source program converted to machine code. Dot class extension. 28. Why is Java considered cross platform? It uses JVM to read and execute the program to the computer hardware and operating system. 29. What are the basic operations performed by an IDE, like Jcreator? Create source code, compile and execute the code all in one program. Exposure Java, 2006 Exercises0102 10-07-06 For questions 30, 31, and 32 assume the following 3 files exist: Boohiss.java, Boohiss.class, Boohiss.html 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. What file is the program source code file? Boohiss.java What file is the bytecode file? Boohiss.class What is an an applet? Boohiss.html What is a Java keyword? Predefined meanings, cannot be used as identifiers. Are Java keywords case-sensitive? Yes List some keyword examples. examples: public, class, System, print, println, out Do “Note:” messages keep a program from compiling? If not, what are they for? No, it is a warning What do {braces} contain? What do (parentheses) contain? Blocks of code, arguments (parameter list) Explain the difference between print and println. Moves the cursor to the next line. What does println() do when there is nothing between the (parentheses)? Moves the cursor to the next line. Both print and println follow what Java keyword(s)? System.out If you see public class Jessica in your program, what name must the file have? Jessica What punctuation symbol must be at the end of all executable Java program statements? ;- semicolon You need to protect your computer from _____viruses_____________. What are the major computer crimes? Hacking, creating viruses, pirating 45 – 50. Handwrite a program that displays your name, date, grade, and period. The file name should be “MyHeading.” Include comments and indentations. Exposure Java, 2006 Exercises0102 10-07-06