Chapter 6 and 7 - Chapter 6 Java uses complete evaluation...

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

View Full Document Right Arrow Icon
Chapter 6: Java uses complete evaluation, in which all parts of a Boolean expression are always evaluated. o FALSE Changing the indentation of if and else statements changes the logic of the code. o FALSE The approach in which a Boolean expression stops as soon as possible is called a o SHORT CIRCUIT EVALUATION In the expression (P||Q), if p is true then there is no need to evaluate q. o TRUE If the operator AND is used, which of the following will make the whole condition true. o Both operands must be true. Assuming A is true, B is false and C is true, the value of (A and not B) or not C is false. o FALSE The sets of test data that exercise a program in the same way are said to be from the same o EQUIVALANCE CLASS What is the symbol for the NOT operator in o JAVA? (!) Which of the following operators has the highest precedence? o (!) Java includes an ASSERT statement that allows the programmer to evaluate a Boolean expression and halt the program with an error message if the value is false.
Image of page 1

Info iconThis 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.

{[ 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