Introduction to Java Programming, Includes Data Structures, Eleventh Edition, Y. Daniel Liang

This quiz is for students to practice. A large number of additional quiz is available for instructors using Quiz Generator from the Instructor's Resource Website. Videos for Java, Python, and C++ can be found at https://yongdanielliang.github.io/revelvideos.html.

Chapter 44 Testing Using JUnit


44.1  A test class must be placed in a named package.
A. True
B. False

44.2  JUnit is part of the standard Java API?
A. True
B. False

44.3  To test whether two values v1 and v2 are the same, use ______.
A. assertTrue(v1)
B. assertTrue(v2)
C. assertEquals(v1, v2)
D. assertEquals(v2, v1)

44.4  To test whether an expression e is true, use ______.
A. assertTrue(e)
B. asserttrue(e)
C. assertEquals(e)
D. assertequals(e)