CLEAN CODE QUIZ

Quiz
•
Computers
•
University
•
Hard
Sachindu Malshan
Used 2+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 7 pts
What do we mean by technical debt?
Loans which were taken by software companies for the establishment
More reworks in code resulted by short cuts done to complete the things fast
Bugs in code resulted from the complexity of the requirement
Change requests come through customers due to missing requirements
Number of unit tests written in code to identify all possible code paths
2.
MULTIPLE SELECT QUESTION
45 sec • 7 pts
Select the classes named right (Multiple answers are possible).
My Customer
User and Customer
Parent Product
Product
Special
3.
MULTIPLE CHOICE QUESTION
30 sec • 7 pts
What do we mean by cohesion of a class?
Class is too lengthy
Class has too many comments
Class performs multiple actions that are not related
Class performs actions related to one object and instance variables are shared among most of the methods
Class has a lot of variables and they are not shared by many methods
4.
MULTIPLE CHOICE QUESTION
30 sec • 7 pts
What is an example of violating the Single Responsibility Principle for a method?
SaveCustomer method saves the customer into the database
SendEmail method sends a mail to the customer
DeleteCustomer method shows a warning and gets the confirmation whether the deletion to proceed
SaveCustomer method writes a log entry to a text file a new customer was saved
UpdateCustomer shows a message to the user a record was updated
5.
MULTIPLE SELECT QUESTION
45 sec • 7 pts
What are the correct usages of comments? (multiple answers possible)
Add comments to just the code changes.
Add comments on top of class describing what the class does.
To document classes and variables.
As means of documenting classes.
As means of indicating missing functionality.
6.
MULTIPLE CHOICE QUESTION
30 sec • 7 pts
What is zombie code?
Code that does nothing
Code that is commented
Code that generate unusable outputs
Code that generate noise.
Code that is unusable
7.
MULTIPLE CHOICE QUESTION
30 sec • 7 pts
What is the acronym “F.I.R.S.T.” stand for in test driven development?
First, Interdependent, Reliable, Self-Testable, Testable
Fast, Independent, Reliable, Self-Driven, Timely
Fast, Independent, Repeatable, Self-Validating, Timely
First, Independent, Repeatable, Self-Validating, Timely
Similar Resources on Wayground
7 questions
Software testing

Quiz
•
University
12 questions
CSSE Quiz Day2

Quiz
•
University
10 questions
Python Generators

Quiz
•
10th Grade - University
12 questions
Pengenalan Google Classroom

Quiz
•
5th Grade - Professio...
10 questions
Weekly Contest #8 - TechXNinjas

Quiz
•
University
10 questions
Java Questions & Answers

Quiz
•
University
10 questions
Introduction to IOT-1

Quiz
•
University
10 questions
Unit 3 Quiz

Quiz
•
10th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University