Test Driven Development practice


Hello friends, In this post we are going to discuss about Test Driven Development Multiple choice question | Test Driven Development Objective type question | Test Driven Development MCQ with Answer | Test Driven Development MCQ Test | Test Driven Development Online Test | Agile Planning and estimation MCQ Question Answer | Agile Planning and estimation Objective type question | Refactoring MCQ | Refactoring Multiple choice question Answer | Refactoring MCQ | Refactoring Objective type questions |

1.Test Driven Development practice is originated from which of the following Agile

A. SCRUM
B. XP (eXtreme Programming)
C. DSDM (Dynamic System Development Methodology)
D. KANBAN

Ans: B

2.Which of the following is a true statement for TDD?

I. It is done by testing team personals.
II. It is done after the design is complete
III. It is done by the developer in parallel to writing the code.
IV. The tests once written are good for always. They need not be changed in future

Ans: Only iii

3.What is TDD?

A. It is a Development method
B. It is a Testing method
C. It is a subset of feature driven development approach
D. All of the above

Ans: A

4.What does ATDD stands for?

A. Agile Test Driven Development
B. Application Test Driven Development
C. Adaptive Test Driven Development
D. Acceptance Test Driven Development

Ans: D

5.Which of the following Step is NOT applicable while implementing TDD?

A. Requirements prioritization
B. Refactoring
C. Running Test
D. Adding Test

Ans: A

6.What do most of the Agile methodologies have in common?

A. Focus on iterative and incremental development
B. Early feedback is key for the project success
C. Ensure transparency for the work in progress
D. All of the above

Ans: D

7.Which of the following are not Scrum values?

A. Vision
B. Respect
C. Motivation
D. Commitment
E. Focus
F. Openness
G. Courage

Ans: A

8.What should an Agile project do in order to communicate well?

A. Keep team-size large, to avoid stakeholders from feeling left out
B. Split the Agile project team into small, mixed-skill, self-organizing teams
C. Operate with one team of less than 10 people
D. Have separate Daily Standup meetings for the Developers and Testers

Ans: B

9.____________is decided during the first half of the Sprint planning meeting and a _________ is created during the second half of the Sprint planning meeting

A. Sprint Backlog, Collection of tasks
B. Product Backlog, Collection of tasks
C. User stories to be delivered, Sprint Backlog
D. Product Backlog. Sprint Backlog

Ans: C

10.What does incremental delivery mean?

A. Team delivers non-functional increments in the Sprint retrospectives
B. Team deploys functional increments over the course of the project

Ans:B

11.Where can automation be applied in an agile project?

A. Only in development
B. Only in testing
C. Only in deployment
D. All of the above

Ans: D

12.Which of the following is NOT an advantage of automation in a project?

A. Reduces manual effort
B. Helps in frequent releases
C. Frees team time so that they can focus on other features
D. None of the above

Ans: D

13.Ram is working as a QA analyst in a research project Client has already be frequent enhancements to the ratings screen To avoid testing the old features again and again what should Ram do?

A. Automate the testing scenarios at the end of the project
B. Test all the feature manually whenever the enhancement request is sent
C. Automate the testing scenarios and keep enhancing whenever the new request is sent
D. None of the above

Ans: C

14.JUnit is a tool used for

A. Unit testing for Java component
B. To check the code quality
C. Unit testing for database components
D. JUnit is a Ul development framework

Ans: A

15.Which of the following can be used for code quality?

ANS – SONAR

16.Key benefits of Refactoring in Agile include

A. Reduce maintenance cost
B. Architecture improvement without impacting software behavior
C. Increase readability and modularity of code
D. All of the above

Ans: D

17.Refactoring is

A. A practice to change functional behavior of the code
B. A practice of continuously improving the design of existing code
C. A exercise to increase business revenue by meeting customer requirements
D. A exercise to modify application architecture drastically to improve performance

Ans: B

18.What is the correct sequence of steps for Database refactoring? (Concept to be tested Database Refactoring in Agile)

A. Write Test → Apply DB refactoring > Refactor extemal application Run Test
B. Write Test Refactor external application Run Test Apply DB refactoring
C. Write Test → Run Test > Apply DB refactoring > Refactor external application
D. Write Test → Apply DB refactoring → Run Test  Refactor external application

Ans: C

19.Replace array with Object technique belongs to which of the following Refactoring technique?

A. Composing methods
B. Moving features between Objects
C. Organizing data
D. Simplifying Conditional Expression

Ans: C

20.Cyclomatic Complexity is an indicator to smell the bad code TRUE FALSE?

ANS – TRUE

21.Planning and Estimation in Agile projects is NOT done at which of the following stages of the project?

a) Project Initiation
b) Release Initiation
c) Project Closure
d) Sprint Planning

Ans: C

22.An absolute number assigned to each User Story based on the complexity in Relative to other User Stories is known as

a) Quick Function Points
b) Use Case Points
c) User Story Points
d) Cosmic Function Points

Ans: C

23.In the Sprint Planning the team decides on how many user stories they will be able to commit for completion in the upcoming Sprint

ANS – True

24.The Project level estimate will give details about

a) Approximate staffing plan
b) Approximate and date of project
c) Approximate number of Releases/Sprints required before
d) All of the above

Ans: D

25.Which of the following is/are INCORRECT about the activities involved in Release level planning?

a) Prioritization of the User Stories is done
b) Retrospective of previous Sprint is conducted
c) Determines the objective of the Release
d) Estimation for each individual Task is performed


Ans: D

26.How are the Agile Project Teams managed?

a) Agile project Teams are sell-organized and self managed
b) Agile Project Teams are managed by the Project Manager
c) Every Agile Project Team has a Product owner who manages the Team
d) A dedicated Scrum Master manages the Agile Team

Ans: A

27.In Agile projects, the team members should have their Soft Skills because

A. These skills are vital for the success of Agile projects
B. It helps the project team to eliminate waste (or at least reduce their impact in Agile
software development
C. To learn adopt the Agile methods by having a shift in the mindset away from traditional approach
D. All of the above

Ans: D

28.In Agile projects the Team members are expected to be more disciplined Why?

a) The sprints are time boxed and non-negotiable, so Team member must complete all activities
on a time bound manner
b) The Team is self-organized and must work towards meeting the commitments as per Sprint
Planning
c) Scrum master monitors the project on hourly basis and hence Team need to be disciplined
d) Both ‘a’ and ‘b’

Ans: D

29.Agile Teams can resolve the conflict among themselves by discussion and questioning each other before approaching Scrum master or Agile coach

ANS – TRUE

30.Which of the following is not considered as Waste as per Lean principle perspective?

a) Starting with more work than that can be completed within time
b) Extra functionality
c) Slow or ineffective communication
d) Updating ALM daily

Ans: D

31.In Agile projects, how are the non-functional Requirements captured?

a) As a Theme
b) As a separate User Story
c) As a Task
d) Depends upon the Product Owner

Ans: B

32.Certainty and Feasibility’ are related to which of the following techniques?

a) Keep it Simple
b) Design Pattern
C) Requirement Prioritization
d) No Big Design Up Front

Ans: C

33.Identify the Design principle from the below options which is not related to SOUD principles?

a) Simple Responsibility Principle
b) Open Closed Principle
c) Liskov Substitution Principle
d) Interface Segregation Principle
e) Dependency Inversion Principle

Ans: A

34.Which of the following is not an essential part for describing a Design Pattern?

a) Problem
b) Pattern Name
c) Solution
d) Benefi

Ans: A

35.Continuous Code Refactoring and Test Driven Development helps the Agile project Team to keep design simple

ANS – True

36.Which of the following is FALSE about Defect Management in Agile?

a) Defects are logged in a tool when identified
b) Defects are analyzed fixed sed on
c) Defects are re-tested before closure
d) All of the above
e) None of the above

Ans: e

37.When is Integration Testing done in Agile projects

a) Integration Testing is done once all the user stories are completed and accepted by the Product Owner
b) Integration Testing is only done during the hardening sprint of the Release
c) Integration Testing is done within every Sprint of the Release as the functionality gets developed
d) Integration Testing is done once at the mid of the Release and then the end of the Release

Ans: c

38.Why is Smoke Testing needed in Agile projects?

a) To ensure that the bad code is not dropped into the testing production environment
b) To save time within the Sprint so that effort is diverted towards the development of the stories
c) To bypass system testing whenever there is a time constraint before demonstrating the incremental software
d) Smoke testing is not needed in Agile projects as it is just an additional testing activity

Ans: a

39.Which of the following is NOT a challenge while Testing in Agile projects?

a) Identifying the Sprint for starting the automation of Test cases
b) Frequent builds breaking the existing features
c) Environment availability for Performance testing
d) Analyzing the effectiveness of automation

Ans: d

40.In Agile both testing and development is carried out in same Sprint duration TRUE FALSE?

ANS – TRUE

41.Which of the following in NOT a stage in Continuous

A. Requirement Analysis
B. Build and Unit Testing
C. Integration Testing and Quality check
D. System Testing

Ans: A

42.The main purpose of Continuous Integration (CI) Server is

a To manage all the source code changes and other software artifacts
b. To stabilize and monitor coding conventions
c. To run an integration build by retrieving the source files whenever a change is committed
d. To deploy the software into the production

Ans: C

43.Which of the following is NOT a Unit Testing tool

a. NUH
b. JUnit
c. JTest
d. Jenkins

Ans: D

44.Identify the right sequence of Continuous Integration activities from the below given options

A. Checkin/Checkout->Email Notification Build and Packaging-Functional/Performance Testing
B. Checkin/CheckOut>Build and Packaging Functional/Performance Testing Email Notification
C. Email Notification Build and Packaging>Functional/Performance Testing- Checkin/CheckOut
D. Build and Packaging>Checkin/CheckOut->Functional/Performance Testing Email Notification

Ans: B

45.One of the basic principles of Continuous Integration is that a build should

ANS – TRUE

46.Commitment to delivery and prioritization in Agile projects are usually part of:

a)Daily Stand-up Meetings
b)Frequent Demos
c)Sprint Planning
d)Retrospective Meeting

Ans: C

47.Choose the correct Extreme Programming (XP)practice names from the following options:

a)Test-driven design, refactoring, pair programming
b)Test-driven development, reforecasting, phase programming
c)Test-driven development, refactoring, pair programming
d)Test-driven design, refactoring, phase programming

Ans: C

48.Which of the following describes the Sprint Review Meeting?

a)It is conducted at the end of the Sprint to gather the feedback from Product Owner on
the progress
b)It is associated with the demo of the software developed in the Sprint
c)Product Owner reviews the deliverables as per ‘Done’ definition
d)All of the above

Ans: D

49.Visualize work stages, Limit Work in progress, Measure and Manage flow are related to which of the following?

a)Kanban
b)SAFe
c)Scrum
d)Less

Ans: A

50.At the lowest level of any Scaled Agile method, Scrum, XP or Kanban are generally followed

ANS – TRUE


Leave a Reply

Your email address will not be published. Required fields are marked *