Olete.in
Articles
Mock Tests
🧪 jUnit MCQ Quiz Hub
Junit Mcq Question Set 2
Choose a topic to test your knowledge and improve your jUnit skills
1. ______ is a Java HTTP (Web) server and Java Servlet container.
Maven
Ant
Jetty
Zimbra
2. Jetty was originally called __________
Eclipse
Maven
Ant
IssueTracker
3. To create a Jetty server object, we have to import _____
org.mortbay.jetty.Server;
org.jetty.Server;
org.junit.jetty.Server;
org.junit.Server;
4. In Jetty, ______ object processes the HTTP requests.
Server
Context
Root
Handler
5. To create a Jetty context object, we have to import _____
org.mortbay.jetty.Context;
org.jetty.Context;
org.mortbay.jetty.servlet.Context;
org.junit.Server;
6. While creating a server object like- Server obj = new Server(8080), 8080 represents the number of connections.
True
False
JUnit
none of the above
7. The ______ method sets the document root from which to serve resources.
setResourceBase
resourceBase
setResource
setBase
8. A ______ handler is attached to the root to serve files from the file system.
SourceHandler
ResourceHandler
AttachHandler
RootHandler
9. The ResourceHandler is found in the package ________
org.mortbay.jetty.handler.ResourceHandler
org.jetty.handler.ResourceHandler
org.mortbay.junit.handler.ResourceHandler
org.junit.jetty.handler.ResourceHandler
10. All _____ has to be completed before integration testing can be done.
Stress testing
Functional testing
Unit testing
Load testing
11. KISS is an acronym for _______
Keep it simple, stupid
Keep it safe and sound
Know it soundly and systematically
Know information safely and securely
12. DRY stands for _______
Do right yourself
Don’t repeat yourself
Don’t ring the yarn
Do rule over yourself
13. Unit tests allow greater test _______ than functional tests.
Coverage
Redundancy
Prowess
Accuracy
14. Functional tests are more _____________ compared to unit tests.
Fine grained
Accurate
Time consuming
Coarse grained
15. Unit Tests can detect _________
Regressions
Quality Check
Database Errors
Enforced Error
16. Agile methodologists favour writing code in _____________ slices to produce a working use case.
Horizontal
Small
Diagonal
Vertical
17. To retain a design across features, agile methodologies encourage _______ to adapt the code base as needed.
Changing
Adapting
Refactoring
Duplicating
18. _______ is a principle of extreme programming (XP) that states that a functionality should not be added until deemed necessary.
KISS
MoSCoW Method
Overengineering
YAGNI
19. YAGNI is a principle behind the XP practice of _______
KISS
MoSCoW
WIB
DTSTTCPW
20. A ______is a test that focuses on the interaction between components in their real environment.
Logic unit test
Integration unit test
Functional unit test
Acceptance unit test
21. __________ is a library that contains a lot of helpful matcher objects , ported in several languages.
Java
Pygame
AllenWake
Hamcrest
22. Hamcrest is not a _____ framework in itself.
Matching
Testing
Asserting
Checking
23. ________ Hamcrest matcher can be used to match absolutely everything.
Is
AnyOf
Anything
Not
24. _______ is used to test object identity.
instanceOf
isCompatibleType
type
sameInstance
25. ______ is a free Java tool that calculates the percentage of code accessed by tests.
Cobertura
JUnit
XUnit
Maven
26. The Cobertura command to run while reporting is _______
cobertura-report.bat
cobertura-instrument.bat
cobertura-check.bat
cobertura-merge.bat
27. The ____________ parameter is used to specify the type of report.
datafile
basedir
encoding
format
28. ______ parameter specifies the encoding used to read the source.
datafile
basedir
encoding
format
29. _______ is a software analysis method used to identify structural units in code under test.
Linear code sequence and jump
State coverage
Lossless packs
Linear jumps
30. The JJ in JJ-path stands for _______
Just Jump
Jump-in-JUnit
Java-JUnit
Jump-to-Jump
31. __________ is the most common and least efficient debugging technique.
Brute force debugging
Backtracking
Cause elimination
Program slicing
32. _______ involves the use of induction or deduction and introduces the concept of binary partitioning.
Brute force debugging
Backtracking
Cause elimination
Program slicing
33. LSD stands for ________
Lean Software Development
Live Software Development
Less Software Data
Least Software Dataloss
34. Lean philosophy regards everything not adding value to the customer as __________
Unnecessary
Waste
Useful
Necessary
35. A value ____________ technique is used to identify waste.
Mapping
Stream
Stream Mapping
Flow
36. The ______ is a management paradigm that specifies any manageable system as being limited in achieving more of its goals by a very small number of constraints.
RCM
TPM
QRM
TOC
37. _______ in the code are signs of bad code designs and should be avoided.
Repetitions
Modularity
Functions
Documentation
38. _______ consists of exploring and explaining the domain of the problem to be solved.
Feature Teams
Inspections
Domain Object Modelling
Configuration Management
39. _________ is a Java HTTP (Web) server and Java Servlet container.
Maven
Ant
Jetty
Zimbra
40. To create a Jetty server object, we have to import _______
org.mortbay.jetty.Server;
org.jetty.Server;
org.junit.jetty.Server;
org.junit.Server;
41. In Jetty, ____________ object processes the HTTP requests.
Server
Context
Root
Handler
42. To create a Jetty context object, we have to import _______
org.mortbay.jetty.Context;
org.jetty.Context;
org.mortbay.jetty.servlet.Context;
org.junit.Server;
43. The ______________ method sets the document root from which to serve resources.
setResourceBase
resourceBase
setResource
setBase
44. A _____________ handler is attached to the root to serve files from the file system.
SourceHandler
ResourceHandler
AttachHandler
RootHandler
45. _______ defines “a flexible, holistic product development strategy where a development team works as a unit to reach a common goal”.
Scrum
FDD
DevOps
MDD
46. A key principle of Scrum is ________
Strict requirements
Requirements volatility
Fixed scale development
Cross-functional development
47. The _______ represents the product’s stakeholders and the voice of the customer
Development Team
Scrum Master
Product Owner
Servant-leader
48. Each day during a Sprint, the team holds a _____ with specific guidelines.
Impediment
Daily Scrum
Backlog refinement
Scrum of Scrums
49. At the _____________ the team reflects on the past Sprint.
Sprint Review
Daily Scrum
Sprint Retrospective
Sprint Reflection
50. The _____ comprises an ordered list of requirements that a Scrum Team maintains for a product.
Sprint Review
Sprint Backlog
Product Increment
Product backlog
Submit