JUnit Questions and Answers – Continuous Integration

This set of JUnit Multiple Choice Questions & Answers (MCQs) focuses on ” Continuous Integration”.

1. _____________ checks if an attribute is blank or not.
a) BaseIfAttribute
b) IfBlankAttribute
c) IfTrueAttribute
d) IfSetAttribute
View Answer

Answer: b
Explanation: IfBlankAttribute.Unless is the “unless” version of ifBlankAttribute.

2. ______________ check if an attribute value is true or not.
a) BaseIfAttribute
b) IfBlankAttribute
c) IfTrueAttribute
d) IfSetAttribute
View Answer

Answer: c
Explanation: IfTrueAttribute.Unless is the “unless” version of ifTrueAttribute.

3. _____________ is an interface indicating that a reader may be chained to another one.
a) TokenFilter.Filter
b) BaseFilterReader
c) BaseParamFilterReader
d) ChainableReader
View Answer

Answer: d
Explanation: The ChainableReader interface indicates that a reader may be chained to another one.
advertisement
advertisement

4. ______________ is the base class for core filter readers.
a) TokenFilter.Filter
b) BaseFilterReader
c) BaseParamFilterReader
d) ChainableReader
View Answer

Answer: b
Explanation: The original filter reader is only used for chaining purposes, never for filtering purposes.

5. ______________ is a parameterized base class for core filter readers.
a) TokenFilter.Filter
b) BaseFilterReader
c) BaseParamFilterReader
d) ChainableReader
View Answer

Answer: c
Explanation: The constructor is public BaseParamFilterReader(java.io.Reader in).
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. _______________ class is used for assembling the constants declared in a Java class in key1=value1(line separator)key2=value2 format.
a) ClassConstants
b) BaseFilterReader
c) BaseParamFilterReader
d) ChainableReader
View Answer

Answer: a
Explanation: The ClassConstants filter uses the BCEL external toolkit.

7. ______________ converts text to local OS formatting conventions along with repairing the text damaged by file transfer programs.
a) ClassConstants
b) BaseFilterReader
c) BaseParamFilterReader
d) FixCrLfFilter
View Answer

Answer: d
Explanation:FixCrLfFilter generalises the handling of EOL characters, and allows for CR-only line endings.
advertisement

8. ________________ reads the first n lines of a stream.
a) ClassConstants
b) HeadFilter
c) BaseParamFilterReader
d) FixCrLfFilter
View Answer

Answer: b
Explanation: The constructor public HeadFilter(java.io.Reader in) creates a new filtered reader.

9. _______________ is a Sax2 based project reader.
a) AntXMLContext
b) DefaultExecutor
c) ProjectHelperImpl
d) ProjectHelper2
View Answer

Answer: d
Explanation: ProjectHelper 2 can be used to check whether this instance of ProjectHelper can parse an Antlib descriptor given by the URL.
advertisement

10. ______________ is a “Single-check” Target executor implementation.
a) SingleCheckExecutor
b) DefaultExecutor
c) ProjectHelperImpl
d) ProjectHelper2
View Answer

Answer: a
Explanation: SingleCheckExecutor differs from DefaultExecutor in that the dependencies for all targets are computed together.

Sanfoundry Global Education & Learning Series – JUnit.
To practice all areas of Junit, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.