0% found this document useful (0 votes)
134 views57 pages

Unit Testing MCQ

The document is a test result summary for a student who took an online test. It provides details of the student's performance including: - An overall score of 24/30 and ranking of NA - Performance on multiple choice questions with a score of 24/30 - A breakdown of questions attempted, correct, wrong, and not viewed - Recommended learning content for incorrect answers
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
134 views57 pages

Unit Testing MCQ

The document is a test result summary for a student who took an online test. It provides details of the student's performance including: - An overall score of 24/30 and ranking of NA - Performance on multiple choice questions with a score of 24/30 - A breakdown of questions attempted, correct, wrong, and not viewed - Recommended learning content for incorrect answers
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 57

7/19/22, 9:46 PM Hexaware

Result & Analysis


Student: Bala Vamsi Pe Email id: balavamsi.7@ Test: SFTT_AS_MCQ_U Course: 2022 - Hexawa

Attempt 1

IP Address: 103.159.32.142 Tab switches: 0 OS used: Windows Browser used: Chrome

Test Duration: 00:21:39 Test Start Time: Jul 16, 2022 | 10:45 AM
Test Submit Time: Jul 16, 2022 | 11:07 AM

Overall score MCQ

Rank: NA Rank: NA

24 Topper score: 30.00 / 30 24 Topper score: 30.00


/ 30

/ 30 Average score: 17.13 / 30 / 30 Average score: 17.41


/ 30

Least score: 0.00 / 30 Least score: 0.00


/ 30

Overall Question Status MCQ - Question Status

Total Questions: 30 Total Questions: 30

Questions Attempted: 30 Questions Attempted: 30

30 Questions Correct: 24 30 Questions Correct: 24

/ 30 Question Wrong: 6 / 30 Question Wrong: 6


Partially Correct: 0 Partially Correct: 0

Question Not Viewed: 0 Question Not Viewed: 0

Topic wise Analysis MCQ 

Question No: 1 Multi Choice Type Question Report Error

What does the junit-jupiter engine does

Creates a test automatically without


inputs

Implementing Test Engine


CORRECT
API for Junit

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 1/12
7/19/22, 9:46 PM Hexaware

run the test cases directly

None of these

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 2 Multi Choice Type Question Report Error

________________ means to ensure that a transferred message has been sent and received
by the intended parties who are claiming to have sent and received the message.

Confidentiality

Authentication

Non-repudiation CORRECT

Integrity

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 3 Multi Choice Type Question Report Error

 Which of the following tools provides JUnit integration?

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 2/12
7/19/22, 9:46 PM Hexaware

Eclipse

Ant

Maven

All of the above CORRECT

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 4 Multi Choice Type Question Report Error

What is the method for validating the expected and the actual output for a given source
code given by Junit?

assert CORRECT

assertEquals

validate

equalsTest

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 3/12
7/19/22, 9:46 PM Hexaware

Question No: 5 Multi Choice Type Question Report Error

Which of the following annotation is used for creating only a single instance

TestInstance(TestInstance.LifeCycle.PER_CLASS)

TestInstance(TestInstance.LifeCycle.PER_METHOD) CORRECT

None of the above

All of the above

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Testing

Question No: 6 Multi Choice Type Question Report Error

The Lambda expression when passed to the assertEquals method, gets executed first
irrespective of the test cases being pass or fail

True

False CORRECT

Status: Wrong Mark obtained: 0/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Testing

Show solution

Question No: 7 Multi Choice Type Question Report Error

Which of the following method of Assert class fails a test with no message?

void assertChecks(boolean pass)

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 4/12
7/19/22, 9:46 PM Hexaware

 void assertCheck(boolean pass)

void assert(boolean pass)

void fail() CORRECT

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Wrong Mark obtained: 0/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 8 Multi Choice Type Question Report Error

We cannot run the junit test from the main method of the class

TRUE

FALSE CORRECT

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 9 Multi Choice Type Question Report Error

Which of the following is not a correct conditional annotations provided by the JUnit
Jupiter API

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 5/12
7/19/22, 9:46 PM Hexaware

EnabledOnJre

EnabledIf

EnabledOnRun CORRECT

EnabledIfSystemProperty

None of the above

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Testing

Question No: 10 Multi Choice Type Question Report Error

All the methods need to be static when using the BeforeAll annotation

TRUE CORRECT

FALSE

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 11 Multi Choice Type Question Report Error

The @Nested annotation is used for grouping a particular set of test cases for a given
method. So where is this annotation placed

Above the interface body

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 6/12
7/19/22, 9:46 PM Hexaware

Above the given method to be tested

Above the class Body CORRECT

one of the above

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Testing

Question No: 12 Multi Choice Type Question Report Error

What is the scope of the junit dependenices

target

test CORRECT

global

none of these

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 13 Multi Choice Type Question Report Error

What is the method to check the test with a particular constrainted exception?

assertEquals

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 7/12
7/19/22, 9:46 PM Hexaware

assertExceptionThrows

assertThrows CORRECT

assert

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Wrong Mark obtained: 0/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 14 Multi Choice Type Question Report Error

What does @RepeatedTest do

Create conditional tests based on the


current test iteration

Run the test for the predefined number


of times

Both of the above CORRECT

None of the above

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Testing

Question No: 15 Multi Choice Type Question Report Error

_________ is driven by an Audit or a Risk function to look at a specific control or compliance


issue.

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 8/12
7/19/22, 9:46 PM Hexaware

Security Audit CORRECT

Vulnerability Scan

Vulnerability Assessment

Penetration Test

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 16 Multi Choice Type Question Report Error

Which of the following class is used to run test cases?

JUnitCore CORRECT

 TestCase

TestSuite

TestResult

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 9/12
7/19/22, 9:46 PM Hexaware

Question No: 17 Multi Choice Type Question


Report Error

How many lifecycle hooks are there for the junit test?

4 CORRECT

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 18 Multi Choice Type Question Report Error

_______________ of information refers to protecting information from being modified by


unauthorized parties.

Confidentiality

Authentication

Authorization

Integrity CORRECT

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 10/12
7/19/22, 9:46 PM Hexaware

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 19 Multi Choice Type Question Report Error

What parameters does the assertAll method take to validate all assert statements

Executables CORRECT

Array

multiple Individual parameters

None

Status: Wrong Mark obtained: 0/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Testing

Question No: 20 Multi Choice Type Question Report Error

What feature junit doesn't provide automatically

validate testcases

run test cases

provide input cases

none of these CORRECT

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 11/12
7/19/22, 9:46 PM Hexaware

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

First 1 2 Last

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 12/12
7/19/22, 9:47 PM Hexaware

Result & Analysis


Student: Bala Vamsi Pe Email id: balavamsi.7@ Test: SFTT_AS_MCQ_U Course: 2022 - Hexawa

Attempt 1

IP Address: 103.159.32.142 Tab switches: 0 OS used: Windows Browser used: Chrome

Test Duration: 00:21:39 Test Start Time: Jul 16, 2022 | 10:45 AM
Test Submit Time: Jul 16, 2022 | 11:07 AM

Overall score MCQ

Rank: NA Rank: NA

24 Topper score: 30.00 / 30 24 Topper score: 30.00


/ 30

/ 30 Average score: 17.13 / 30 / 30 Average score: 17.41


/ 30

Least score: 0.00 / 30 Least score: 0.00


/ 30

Overall Question Status MCQ - Question Status

Total Questions: 30 Total Questions: 30

Questions Attempted: 30 Questions Attempted: 30

30 Questions Correct: 24 30 Questions Correct: 24

/ 30 Question Wrong: 6 / 30 Question Wrong: 6


Partially Correct: 0 Partially Correct: 0

Question Not Viewed: 0 Question Not Viewed: 0

Topic wise Analysis MCQ 

Question No: 21 Multi Choice Type Question Report Error

Which of the following method of TestResult class informs the result that a test was
completed?

void showResult(Test test)

 void getResult(Test test)

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 1/7
7/19/22, 9:47 PM Hexaware

void endTest(Test test) CORRECT

void startTest(Test test)

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 22 Multi Choice Type Question Report Error

The review process for a particular review begins with a _____________ by the author to the
moderator in formal review.

Request For Review CORRECT

 Requirement Analysis

Notice For Review

Goal Design

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Wrong Mark obtained: 0/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 23 Multi Choice Type Question Report Error

How many dependencies are needed for integrating the JUnit 5

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 2/7
7/19/22, 9:47 PM Hexaware

2 CORRECT

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 24 Multi Choice Type Question Report Error

________________ simulates an attack by a malicious party.

Security Audit

Vulnerability Scan

Vulnerability Assessment

Penetration Test CORRECT

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 3/7
7/19/22, 9:47 PM Hexaware

Question No: 25 Multi Choice Type Question Report Error

Configuration management procedures be implemented during ____________

Test Execution

Test Planning CORRECT

Test Design

Test Success

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 26 Multi Choice Type Question Report Error

 ______________ builds upon Vulnerability Assessment by adding manual verification to


confirm exposure.

Security Audit

Security Assessment CORRECT

Vulnerability Assessment

Penetration Test

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 4/7
7/19/22, 9:47 PM Hexaware

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 27 Multi Choice Type Question Report Error

How many arguments can a assertEquals method have ?

3 CORRECT

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing Blooms Taxonomy: Analyse

Question No: 28 Multi Choice Type Question Report Error

 __________ uses discovery and vulnerability scanning to identify security vulnerabilities

Discovery

 Vulnerability Scan CORRECT

Vulnerability Assessment

Penetration Test

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 5/7
7/19/22, 9:47 PM Hexaware

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

Question No: 29 Multi Choice Type Question Report Error

What is the use of the @Tag annotation in Junit

Allows you to define a tag for a


particular test method

Allows you run test methods containing


a particular tag type

Both CORRECT

None of the above

Status: Wrong Mark obtained: 0/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Testing

Question No: 30 Multi Choice Type Question Report Error

Which of the following method of TestSuite class adds a test to the suite?

void add(Test)

 void add()

void addTest(Test test) CORRECT

void addTestCase(Test test)

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 6/7
7/19/22, 9:47 PM Hexaware

Recommended Learning Content: Junit - Introduction


Junit - Use of @Test and assertTrue() Junit - Test Suite
Junit - Performance Testing Junit - assertEquals()

Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy


Question type: MCQ Single Correct Subject: Engineering Subject: Software Testing
Subject: Java Unit Testing

First 1 2 Last

https://eiphexaware.examly.io/result?testId=U2FsdGVkX1%2BlESujD%2Fps24QhpDazDhGEyfJnVMdrULA268Si3QtetiiYa7U6fd7O 7/7

You might also like