Chapter 3 Notes - o Length • When compared to natural...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 3: Questions and Answers Which of the following is NOT a primitive data type in Java: o STRING In Java the largest inter. Number that can be used is 32,767. o FALSE Which keyword in Java declares an identifier whose value cannot change while the program is running? o FINAL In the statement x,y,z; What does the x represent? o The name of the overall package. Both the value of a variable and the type of data it contains can change during execution of a program. o FALSE What is the set of all the words and symbols in java? o VOCABULARY Which type of error occurs when an instruction tries to divide by zero? o RUN TIME ERROR To use a method successfully, which of the following do we NOT need to know? o Details of how it accomplishes it What is the string concatenation operator? o + Which string class method returns a string’s length?
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: o Length() • When compared to natural languages, programming languages have larger vocabularies. o FALSE • Inserting debugging statements into code is a useful way to find syntax errors. o FALSE • Which of the following is the escape sequence for a new line? o \n • To manipulate an object in Java, a program will send it a message. o TRUE • When using all constants, what style is the program? o ALL CAPS • In an assignment statement, whatever is on the left side is assigned to the right side. o FALSE • User defined symbols are case sensitive in Java. o TRUE • Which of the following is an invalid name: o 9 innings • The division statement of 10/4 will be evaluated to 2. o TRUE • Which of the following mixed mode arithmetic expressions yields 8.0? o 5/2 *4.0...
View Full Document

{[ snackBarMessage ]}

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