Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

______________ is a parameterized base class for core filter readers.(a) TokenFilter.Filter(b) BaseFilterReader(c) BaseParamFilterReader(d) ChainableReaderI had been asked this question during an internship interview.I would like to ask this question from Continuous Integration in division Continuous Integration Tools of JUnit

Answer»

The correct CHOICE is (C) BASEPARAMFILTERREADER

The best I can explain: The CONSTRUCTOR is public BaseParamFilterReader(java.io.Reader in).

2.

_____________ is an interface indicating that a reader may be chained to another one.(a) TokenFilter.Filter(b) BaseFilterReader(c) BaseParamFilterReader(d) ChainableReaderThe question was asked at a job interview.This interesting question is from Continuous Integration in division Continuous Integration Tools of JUnit

Answer»

Right OPTION is (d) CHAINABLEREADER

For EXPLANATION: The ChainableReader interface indicates that a reader may be chained to another one.

3.

______________ check if an attribute value is true or not.(a) BaseIfAttribute(b) IfBlankAttribute(c) IfTrueAttribute(d) IfSetAttributeThis question was posed to me during an interview.My question is based upon Continuous Integration topic in division Continuous Integration Tools of JUnit

Answer»

The CORRECT OPTION is (C) IfTrueAttribute

The best I can explain: IfTrueAttribute.UNLESS is the “unless” VERSION of ifTrueAttribute.

4.

________________ reads the first n lines of a stream.(a) ClassConstants(b) HeadFilter(c) BaseParamFilterReader(d) FixCrLfFilterI got this question in homework.The doubt is from Continuous Integration in division Continuous Integration Tools of JUnit

Answer»

Correct option is (B) HEADFILTER

The explanation: The CONSTRUCTOR public HeadFilter(java.io.READER in) creates a new filtered reader.

5.

_______________ is a Sax2 based project reader.(a) AntXMLContext(b) DefaultExecutor(c) ProjectHelperImpl(d) ProjectHelper2I had been asked this question in a job interview.I want to ask this question from Continuous Integration topic in chapter Continuous Integration Tools of JUnit

Answer»

Right answer is (d) ProjectHelper2

Easy EXPLANATION: ProjectHelper 2 can be USED to check WHETHER this instance of ProjectHelper can PARSE an Antlib descriptor given by the URL.

6.

______________ converts text to local OS formatting conventions along with repairing the text damaged by file transfer programs.(a) ClassConstants(b) BaseFilterReader(c) BaseParamFilterReader(d) FixCrLfFilterThe question was posed to me in an online interview.My query is from Continuous Integration topic in chapter Continuous Integration Tools of JUnit

Answer»

The CORRECT choice is (d) FixCrLfFilter

Explanation: FixCrLfFiltergeneralises the HANDLING of EOL characters, and ALLOWS for CR-only LINE endings.

7.

______________ is the base class for core filter readers.(a) TokenFilter.Filter(b) BaseFilterReader(c) BaseParamFilterReader(d) ChainableReaderThe question was posed to me in an online interview.My enquiry is from Continuous Integration in division Continuous Integration Tools of JUnit

Answer» CORRECT CHOICE is (B) BaseFilterReader

For EXPLANATION: The original filter reader is only used for chaining purposes, never for FILTERING purposes.
8.

_______________ 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) ChainableReaderI got this question during an online interview.The above asked question is from Continuous Integration topic in section Continuous Integration Tools of JUnit

Answer»

The correct answer is (a) ClassConstants

To elaborate: The ClassConstants FILTER USES the BCEL EXTERNAL TOOLKIT.

9.

_____________ checks if an attribute is blank or not.(a) BaseIfAttribute(b) IfBlankAttribute(c) IfTrueAttribute(d) IfSetAttributeI got this question in a job interview.I need to ask this question from Continuous Integration topic in division Continuous Integration Tools of JUnit

Answer» RIGHT option is (B) IfBlankAttribute

Easy explanation: IfBlankAttribute.UNLESS is the “unless” VERSION of ifBlankAttribute.