---Advertisement---
Java8 Qualis Microservices

Java8 Qualis Interview Question-Answer Part – 3

By smart_answer13

Updated on:

---Advertisement---

Q.1 JaCoCo code coverage threshold can be configured with goal?

       A. JaCoCo:report

       B. JaCoCo:prepare-agent

       C. JaCoCo:dump

       D. JaCoCo:check

Ans : JaCoCo:prepare-agent


Q.1 JaCoCo code coverage threshold can be configured with goal?

       A. JaCoCo:report

       B. JaCoCo:prepare-agent

       C. JaCoCo:dump

       D. JaCoCo:check

Ans : JaCoCo:prepare-agent


Q.2 JaCoCo makes use of _____ for on the fly code instrumentation.

       A. ALM

       B. ANT

       C. ASM

       D. PMD

Ans : ASM


Q.3 Select the correct syntax for creating MockMvc instance for EmployeeController,java.

       A. this.mockMvc = MockMvcBuilders.standaloneSetup (employeeController).build();

       B. this.mockMvc = MockMvcBuilders.standaloneSetup();

       C. this.mockMvc = MockMvcBuilders.standaloneSetup (employeeController);

       D. this.mockMvc = MockMvcBuilders.standaloneSetup (employeeController).setup();

Ans : this.mockMvc = MockMvcBuilders.standaloneSetup (employeeController).build();


Q.4 Checkstyle checks for

a. Naming conventions of methods.
b. Space between certain characters.
c. Line length and number of lines in method/class
d. Catching an exception without doing anything.

       A. Options: b,c & d

       B. Options: a, b & c

       C. Options: a,c & d

       D. Options: a,b & d

Ans : Options: a, b & c


Q.5 FindBugs is an open source static code analysis tool. True or False.

       A. True

       B. False

Ans : True


Q.6 Can FindBugs identify security holes related to SQL injections?

       A. True

       B. False

Ans : True


Q.7 100% code coverage guarantees effective testing.

       A. True

       B. False

Ans : False


Q.8 Code coverage can be used for _______.

       A. Black box testing

       B. White box testing

       C. Bug fixing

       D. None of the options

Ans : White box testing


Q.9FindBugs divides the possible bug patterns into ____ categories.

       A. 12

       B. 6

       C. 9

       D. 4

Ans : 12


Q.10 JaCoCo can be integrated with which build tools?

       A. Ant

       B. Maven

       C. Gradle

       D. All the options

Ans : All the options


Q.11 Which of the following is a static method offered by MockMvcRequestBuilders class.
a. get
b. post
c. patch
d. delete

       A. a,b,c &d

       B. c&d

       C. a&b

       D. a,b & d

Ans : a,b,c &d


Q.12 Mockito can be integrated with which of the following build tools?

       A. Gradle

       B. Maven

       C. None of these

       D. All of these

Ans : All of these


Q.13JUnit 5 is composed of 3 modules, they are ________________.

       A. JUnit Platform + JUnit Jupiter + JUnit Antique

       B. JUnit Platform + JUnit Jupiter + JUnit Vintage

       C. JUnit Foundtion + JUnit Orbit + JUnit Vintage

       D. JUnit Foundation + JUnit Jupiter + JUnit Vintage

Ans : JUnit Platform + JUnit Jupiter + JUnit Vintage


Q.14 JUnit is suitable for which sort of software testing?

       A. System Testing

       B. Acceptance testing

       C. Integrated testing

       D. Unit testing

Ans : Unit testing


Q.15 With the latest JUnit framework, each test class you write should be a sub-class of TestCase class.

       A. True

       B. False

Ans : False


Q.16 Which of the following is a JUnit extension?

       A. Postgres

       B. Thymus

       C. Cactus

       D. Litmus

Ans : Cactus


Q.17 For mocking objects, @Mock annotation can be used along with ________ as a JUnit runner.

       A. Cucumber Runner

       B. HierarchicalContextRunner

       C. SpringJUnit4ClassRunner

       D. MockitoJUnitRunner

Ans : Cucumber Runner


Q.18 Select the correct syntax for creating MockMvc instance for EmployeeController,java.

       A. this.mockMvc = MockMvcBuilders.standaloneSetup (employeeController).setup();

       B. this.mockMvc = MockMvcBuilders.standaloneSetup();

       C. this.mockMvc = MockMvcBuilders.standaloneSetup (employeeController);

       D. this.mockMvc = MockMvcBuilders.standaloneSetup (employeeController).build();

Ans : this.mockMvc = MockMvcBuilders.standaloneSetup (employeeController).build();


Q.19public class StudentInfo implements PersonInfo
{
public static
int REG_NUMBER = 8;
}

Bug type identified in the code snippet is ____________.

       A. Security

       B. Malicious code vulnerability

       C. Performance

       D. Bad practice

Ans : Malicious code vulnerability


smart_answer13

---Advertisement---

Related Post

Zipkin-Jaeger Interview Question-Answer

Q.1 Which is responsible for sending spans to storage?        A. Transport        B. Collector        C. Component        D. ...

Weaveworks Interview Question-Answer

Q.1 Which of the following features offered by WeaveClouds?        A. Observability        B. VCS integration        C. none of the mentioned ...

Vaadin Unplugged Interview Question-Answer

Q.1 Which of the Programming Model is not supported by Vaadin?        A. Browser        B. Client Side        C. Server Side ...

Spring Boot Framework Interview Question-Answer Part – 2

Q.1 The annotation used to import additional configuration classes is ___________.        A. @Import        B. @Include        C. @EnableImport     ...

Leave a Comment