quiz JUnit MCQ Practice

corporate_fare Computing and Information Technology
school B.Sc. Computer Science
30 Questions
0 Completed
0 Correct
0 of 30 completed
visibility You're studying as a guest — progress isn't saved. Sign in to track progress
help Question 1
radio_button_unchecked

Which of the following is not correct about JUnit?

help Question 2
radio_button_unchecked

JUnit is used for what type of software testing for the Java language?

help Question 3
radio_button_unchecked

Which annotation implies that a method is a JUnit test case?

help Question 4
radio_button_unchecked

JUnit test files are written in files with which file extension?

help Question 5
radio_button_unchecked

Which methods cannot be tested by the JUnit test class?

help Question 6
radio_button_unchecked

JUnit runners are available in which package?

help Question 7
radio_button_unchecked

What is a Façade in JUnit?

help Question 8
radio_button_unchecked

What does the fail() method do in JUnit?

help Question 9
radio_button_unchecked

To run the file TestClass.class from the command line, we have to type what?

help Question 10
radio_button_unchecked

JUnit Suites are independent of the capability of the ______ system.

help Question 11
radio_button_unchecked

Which of the following is an example of a web controller?

help Question 12
radio_button_unchecked

Which of the following is not a mocking framework?

help Question 13
radio_button_unchecked

Which of the following is correct about Test Suite in JUnit?

help Question 14
radio_button_unchecked

The JUnit hasItem() function is a _____________

help Question 15
radio_button_unchecked

Which of the following is also known as Beta Testing?

help Question 16
radio_button_unchecked

JUnit test methods must compulsorily return what value?

help Question 17
radio_button_unchecked

Which of the following is a free Java tool that calculates the percentage of code accessed by tests?

help Question 18
radio_button_unchecked

Which package contains interfaces that define jMock’s Domain Specific Embedded Language?

help Question 19
radio_button_unchecked

Class JUnitMatchers extends _______________

help Question 20
radio_button_unchecked

Which of the following test has to be completed before integration testing?

help Question 21
radio_button_unchecked

“cobertura-check.bat” is run ________ the JUnit tests to show which classes do not have adequate test coverage.

help Question 22
radio_button_unchecked

Which of the following is the basic unit of development in Scrum?

help Question 23
radio_button_unchecked

Which of the following translates ExpectationErrors into JUnit AssertionFailedErrors?

help Question 24
radio_button_unchecked

Which of the following is a JUnit Rule that manages JMock expectations and allowances?

help Question 25
radio_button_unchecked

What are fixtures in JUnit?

help Question 26
radio_button_unchecked

What is the full form of JJ in “JJ-path”?

help Question 27
radio_button_unchecked

Which of the following is a Java HTTP (Web) server and Java Servlet container?

help Question 28
radio_button_unchecked

To use JUnit in a project we need to add which JAR files on our test classpath?

help Question 29
radio_button_unchecked

What type of object is returned on completion of a test?

help Question 30
radio_button_unchecked

Mocks are Trojan horses because they replace real ___________ from the inside, without the calling classes being aware of it.