

TDD/Refactoring
Presentation
•
Computers
•
University
•
Practice Problem
•
Medium
Nimisha Roy
Used 10+ times
FREE Resource
1 Slide • 5 Questions
1
TDD/Refactoring Quizizz
2
Multiple Choice
You are developing an online shopping application. Here are some testing scenarios for the application. Match these scenarios to the correct granularity level of testing.
1. You are checking if the functionality to calculate total price after applying discounts is working correctly.
2. After a new update to the "product search" module, you re-run the tests to ensure the existing features like "add to cart" and "checkout" are working as expected.
3. The end-users are testing the application and providing feedback, noting that the user interface for entering shipping information is not user-friendly.
4 You are verifying if the application correctly combines the "payment processing" module with the "order confirmation" module.
5. You are testing whether all the application modules, including "product browsing," "add to cart," "checkout," and "payment processing," work well together and function as a cohesive whole.
Which of the following matches is correct?
1- Unit
2- Regression
3- Acceptance
4- Integration
5 - System
1- Unit
2- Regression
3- Integration
4- Acceptance
5 - System
1- Unit
2- Regression
3- System
4- Integration
5 - Acceptance
1- Regression
2- Unit
3- Acceptance
4- Integration
5 - System
3
Multiple Choice
Let's consider a software application for an online food delivery service: Match the testing stages with the corresponding activities: A. Alpha Testing B. Beta Testing C. Developer Testing
1. A developer working on the "Order Tracking" feature ensures that the live location of the delivery executive is updated correctly.
2. A selected group of end-users test the application and provide feedback. They report an issue where the estimated delivery time is inaccurate.
3. The development team conducts an in-house simulation of the user environment and finds that the restaurant search functionality does not return accurate results based on the location.
Which of the following matches is correct?
A-2
B-3
C-1
A-1,
B-3,
C-2
A-3,
B-2,
C-1
A-3,
B-1,
C-2
4
Multiple Choice
What is the correct order of a TDD cycle?
Write code
Make it work
Write test
Make it fail
Refactor code
Make it better
Write code
Make it work
Refactor code
Make it better
Write test
Make it fail
Write test
Make it fail
Write code
Make it work
Refactor code
Make it better
5
Multiple Choice
A software development team is using Test-Driven Development (TDD) to create a Book class in a Library Management System. The Book class should have a borrow method, which changes the isAvailable attribute of the book from true to false. They have written the following test:
After running the test, it fails as expected because they have not implemented the borrow method yet. Which of the following pieces of code should be added to the Book class to make the test pass?
public void borrow() { this.isAvailable = true; }
public void borrow() { this.isAvailable = !this.isAvailable; }
public void borrow() { this.isAvailable = false; }
public boolean borrow() { this.isAvailable = false;
return this.isAvailable; }
6
Multiple Choice
You have the following classes in your project. You realize that the Dog class does not actually need the eat() method. Which refactoring technique is appropriate here?
Use "Collapse Hierarchy" technique to eliminate the inheritance
Use the "Extract Class" technique to create a separate class
Use "Rename Method" to rename the eat() method
Use the "decompose conditional" technique to simplify the eat() method
TDD/Refactoring Quizizz
Show answer
Auto Play
Slide 1 / 6
SLIDE
Similar Resources on Wayground
4 questions
Recap Week
Presentation
•
University
7 questions
Week 9 Lecture 1
Presentation
•
University
7 questions
Limits
Presentation
•
University
5 questions
MICROSOFT WORD
Presentation
•
University
8 questions
Online Learning
Presentation
•
University
7 questions
Week 5A - Exodus (Chapter 1-7)
Presentation
•
University
5 questions
Using Assessment to Support Learning
Presentation
•
Professional Development
2 questions
Week 6 Ms Excel
Presentation
•
University
Popular Resources on Wayground
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade
Discover more resources for Computers
15 questions
LGBTQ Trivia
Quiz
•
University
36 questions
8th Grade US History STAAR Review
Quiz
•
KG - University
25 questions
5th Grade Science STAAR Review
Quiz
•
KG - University
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
20 questions
5_Review_TEACHER
Quiz
•
University
10 questions
Applications of Quadratic Functions
Quiz
•
10th Grade - University
10 questions
Add & Subtract Mixed Numbers with Like Denominators
Quiz
•
KG - University
20 questions
Block Buster Movies
Quiz
•
10th Grade - Professi...