logo
  • Home
  • Test & Rank
  • About
  • Training
  • Programming
  • CS
  • IT
  • IS
  • ECE
  • EEE
  • EE
  • Civil
  • Mechanical
  • Chemical
  • Metallurgy
  • Instrumentation
  • Aeronautical
  • Aerospace
  • Biotechnology
  • Mining
  • Marine
  • Agriculture
  • MCA
  • BCA
  • Internship
  • Jobs
  • Contact

JUnit Multiple Choice Questions | MCQs | Quiz

JUnit Interview Questions and Answers
Practice JUnit questions and answers for interviews, campus placements, online tests, aptitude tests, quizzes and competitive exams.

Get Started

JUnit - Exploring Core JUnit
JUnit - Parameterized Tests
JUnit - Test Runners
JUnit - Composing Tests Suite
JUnit - Controller Component
JUnit - Component Testing
JUnit - Exception Handling
JUnit - Timeout Testing
JUnit - Hamcrest Matchers
JUnit - Unit Tests
JUnit - Integration Testing
JUnit - Functional Testing
JUnit - Stress Testing
JUnit - Acceptance Testing
JUnit - Unit Test Types
JUnit - Black Box Testing
JUnit - White Box Testing
JUnit - Test Coverage
JUnit - Cobertura
JUnit - Testable Code Creation
JUnit - Test driven Development
JUnit - Development Cycle Test
JUnit - Stubs
JUnit - HTTP Connection
JUnit - Jetty Embedded Server
JUnit - Web Server Resources
JUnit - Stubbing Connection
JUnit - Mock Objects
JUnit - Mock Unit Testing
JUnit - Mock Objects Factors
JUnit - HTTP Mock Connection
JUnit - Trojan Horses Mocks
JUnit - Easy Mock
JUnit - JMock
JUnit - Unit Testing Limitations
JUnit - Mock Objects Solution
JUnit - In Container Testing
JUnit - Stubs Comparision
JUnit - Ant Basics
JUnit - Ant Targets & Projects
JUnit - Ant Tasks
JUnit - Ivy Management
JUnit - HTML Reports Creation
JUnit - Batching Tests
JUnit - Maven Introduction
JUnit - Maven Project Settings
JUnit - Maven Plug-ins
JUnit - Maven Surefire
JUnit - Maven Downsides
JUnit - Continuous Integration

« Prev Page
Next Page »

JUnit Questions and Answers – EasyMock

Posted on May 13, 2017 by staff10

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

1. The Cobertura command to run while reporting is ____________
a) cobertura-report.bat
b) cobertura-instrument.bat
c) cobertura-check.bat
d) cobertura-merge.bat
View Answer

Answer: a
Explanation: The cobertura-report.bat command is used along with parameters to run reporting using Cobertura.
advertisement

2. The ____________ parameter is used to specify the type of report.
a) datafile
b) basedir
c) encoding
d) format
View Answer

Answer: d
Explanation: The format parameter defines the type of report to be generated.

3. ____________ parameter specifies the encoding used to read the source.
a) datafile
b) basedir
c) encoding
d) format
View Answer

Answer: c
Explanation: During reporting with Cobertura, the encoding parameter defines the encoding of the files.

4. The source code directories are used to calculate the ____________ of each class.
a) Data size
b) Lines of code
c) Cyclomatic code complexity
d) Mutant score
View Answer

Answer: c
Explanation: The cyclomatic code complexity is a metric to indicate the complexity of the code.
advertisement

5. The default value of the format parameter is ____________
a) html
b) jar
c) java
d) dat
View Answer

Answer: a
Explanation: The HTML reports are made of annotated versions of each source file.

6. The Cobertura command to run while checking coverage is ____________
a) cobertura-report.bat
b) cobertura-instrument.bat
c) cobertura-check.bat
d) cobertura-merge.bat
View Answer

Answer: c
Explanation: The cobertura-check.bat command is used along with parameters to run reporting using Cobertura.

7. “cobertura-check.bat” is run ________ the JUnit tests to show which classes do not have adequate test coverage.
a) Before
b) After
c) Along with
d) Before and after
View Answer

Answer: b
Explanation: This is used to check test coverage and hence, can only be run after the JUnit tests.
advertisement

8. The ___________ parameter specifies the minimum acceptable branch coverage rate needed by each class during Cobetura coverage checking.
a) datafile
b) branch
c) line
d) regex
View Answer

Answer: b
Explanation: The branch parameter should be an integer between 0 and 100.

9. The ___________ parameter specifies the minimum acceptable line coverage rate needed by each class during Cobetura coverage checking.
a) datafile
b) branch
c) line
d) regex
View Answer

Answer: c
Explanation: The line parameter should be an integer between 0 and 100.

10. The ___________ parameter specifies the minimum acceptable branch coverage rate needed by each package during Cobetura coverage checking.
a) datafile
b) packagebranch
c) line
d) regex
View Answer

Answer: b
Explanation: The packagebranch parameter should be an integer between 0 and 100.

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

« Prev Page - JUnit Questions and Answers – Using Mocks as Trojan Horses
» Next Page - JUnit Questions and Answers – JMock

« Length of the Longest Arithmetic Progression Problem – Dynamic Programming Solutions
Make Palindrome Problem – Dynamic Programming Solutions »
advertisement

Deep Dive @ Sanfoundry:

  1. C# Programming Examples on Conversions
  2. C Programming Examples on Bitwise Operations
  3. C# Programming Examples on Networking
  4. C++ Programming Examples on Hard Graph Problems & Algorithms
  5. C Programming Examples on Hard Graph Problems & Algorithms
  6. Simple C Programs
  7. Java Programming Examples on Hard Graph Problems & Algorithms
  8. JUnit Questions and Answers
  9. JUnit Questions and Answers – Exploring Core JUnit
  10. JUnit Questions and Answers – JUnit Test Runners
Manish Bhojasia
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer & SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage, Advanced C Programming, SAN Storage Technologies, SCSI Internals & Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him @ LinkedIn | Facebook | Twitter

Best Careers

Developer Tracks
SAN Developer
Linux Kernel Developer
Linux Driver Developer
Linux Network Developer

Live Training Photos
Mentoring
Software Productivity
GDB Assignment
Sanfoundry is No. 1 choice for Deep Hands-ON Trainings in SAN, Linux & C, Kernel Programming. Our Founder has trained employees of almost all Top Companies in India such as VMware, Citrix, Oracle, Motorola, Ericsson, Aricent, HP, Intuit, Microsoft, Cisco, SAP Labs, Siemens, Symantec, Redhat, Chelsio, Cavium, ST-Micro, Samsung, LG-Soft, Wipro, TCS, HCL, IBM, Accenture, HSBC, Mphasis, Tata-Elxsi, Tata VSNL, Mindtree, Cognizant and Startups.

Best Trainings

SAN I - Technology
SAN II - Admin
Linux Fundamentals
Advanced C Training
Linux-C Debugging
System Programming
Network Programming
Linux Threads
Kernel Programming
Kernel Debugging
Linux Device Drivers

Best Reference Books

Computer Science Books
Algorithm & Programming Books
Electronics Engineering Books
Electrical Engineering Books
Chemical Engineering Books
Civil Engineering Books
Mechanical Engineering Books
Industrial Engineering Books
Instrumentation Engg Books
Metallurgical Engineering Books
All Stream Best Books

Questions and Answers

1000 C Questions & Answers
1000 C++ Questions & Answers
1000 C# Questions & Answers
1000 Java Questions & Answers
1000 Linux Questions & Answers
1000 Python Questions
1000 PHP Questions & Answers
1000 Hadoop Questions
Cloud Computing Questions
Computer Science Questions
All Stream Questions & Answers

India Internships

Computer Science Internships
Instrumentation Internships
Electronics Internships
Electrical Internships
Mechanical Internships
Industrial Internships
Systems Internships
Chemical Internships
Civil Internships
IT Internships
All Stream Internships

About Sanfoundry

About Us
Copyright
Terms
Privacy Policy
Jobs
Bangalore Training
Online Training
Developers Track
Mentoring Sessions
Contact Us
Sitemap
© 2011 Sanfoundry. All Rights Reserved.