🧪 Maven MCQ Quiz Hub

Maven Mcq Set 3

Choose a topic to test your knowledge and improve your Maven skills

1. What are exceptions?




2. ________ can be useful in adding additional functionality which applies to every test within a test class.




3. ______ is a programming paradigm which allows the separation of cross cutting concerns, hence, increasing modularity.




4. _______ describes a class of functions which when run modify other functions.




5. AOP forms a basis for ______




6. Custom JUnit rules can be created using _______




7. With the ‘expected’ argument, one cannot ________




8. The _________ rule can be used to test both exception type and message.




9. ExpectedException is found under which package?




10. The correct way to initialise an ExpectedException object is _____




11. What is timeout testing?




12. The _____ parameter is used along with the @Test annotation to test for timeouts.




13. @Test(timeout = 130) implies a time limit of ______




14. Timeout testing is _____




15. What applies the same timeout to every test method of a class?




16. A Timeout Rule is initialized by _______




17. Where is the Timeout class present?




18. The Timeout Rule implements which interface?




19. If a timeout which has been specified lapses before the completion of the test, its execution is interrupted with _____




20. What does a specified timeout of 0 imply?




21. ______ is a library that contains a lot of helpful matcher objects , ported in several languages.




22. Hamcrest is not a _______ framework in itself.




23. The package for the assertThat() function is?




24. ______ Hamcrest matcher can be used to match absolutely everything.




25. ______ is used only to improve the readability of the statements.




26. Which Hamcrest matcher is just like the && operator?




27. ______ checks to see if any of the contained matchers match.




28. ________ traverses the meaning of the contained matchers.




29. The instanceOf matcher is equivalent to ________




30. ______ is used to test object identity.




31. The JUnit hasItem() function is a _______




32. The package to which hasItem() function belongs is ________




33. Class JUnitMatchers extends _______




34. _____ is used for combining those matchers which must both pass.




35. _______ Hamcrest matcher tests for null values.




36. ______ tests whether a JavaBean has a particular property.




37. To define a ________ in a JavaBean class, public getter and setter methods have to be supplied.




38. A/An __________ property is an array instead of a single value.




39. __________ tests whether a given string equals another one, ignoring the case.




40. _______ tests whether a given Map has a given entry.




41. Which Hamcrest core matcher checks if a number is equal to a number of some acceptable error?




42. assertThat(1.03, is(closeTo(1.0, 0.03))) is _____




43. assertThat(0.03, is(closeTo(1.0, 0.03))) is _____




44. The closeTo function is found under which package?




45. The isCloseTo class extends which base class?




46. The ___________ method of the TypeSafeMatcher class is made final.




47. The TypeSafeMatcher implements the __________ interface.




48. The ____________ matcher checks if a given key is in a map.




49. To write custom matcher _____________ has to be implemented.




50. _______ is the base class for all Matcher implementations.