Main memory devices are volatile and secondary memory

  • No School
  • AA 1
  • 2

This preview shows page 1 - 2 out of 2 pages.

turned off. Main memory devices are volatile and secondary memory devices are nonvolatile. 1.13 - A high-level is made for programmers to read and write. Machine language is made for computers to read. High-level languages must be translated into machine language before it is processed by the computer. 1.14 - Java bytecode is low-level language like machine language that is read on any machine by Java interpreter.
Image of page 1
1.15 - White space is blanks, tabs, and newline characters. White space emphasizes parts of the code, makes a program easier to read and does not change program execution. 1.16 - “12345”(c) is not a valid Java identifier because it starts with a digit and “black&white”(e) is not a valid Java identifier because it contains “&”. Multiple Choice 1.1 - c. If a picture was made up of 64 possible colors, 6 bits would be needed to store each pixel of the picture. 1.6 - c. “2ndlevel” is not a valid Java identifier. 1.7 - b. “max_value” is a valid Java identifier. 1.8 - e. All of the pairs of variables are different from each other. Short Answer 1.7 - Two types of Java comments are // comments that only go until the end of the line and /* */ comments that can span multiple lines until they are closed. 1.8 - a. “q” is not specific and makes it hard for someone else to understand your code. b. “totVal” is too vague and could be interpreted as multiple things by another programmer. c. “theNextValueInTheList” is unnecessarily long and something like “nextValue” is just as descriptive. 1.9 - a. Multiplying two numbers when you meant to add them is a logical error. b. Dividing by zero is a runtime error. b. Forgetting a semicolon at the end of a programming statement compile-time error. c. Forgetting a semicolon at the end of a programming statement is a compile-time error. d. Spelling a word wrong in the output is a logical error. e. Producing inaccurate results is a logical error. f. Typing a { when you should have typed a ( is a compile- time error.
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Fall '19
  • Computer program, Main hardware components, types of Java comments

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors