đề application
đề application
D. All bove
1.3 Technical Review
21. What are the types of technical review?
A Walkthroughs , Code Reading , Pair Programming , Inspections
B Code Reading , Pair Programming , Inspections
C Walkthroughs , Code Reading , Pair Programming , Inspections , Customer Review
D Code Reading , Pair Programming
22. What is the name of inspection process ?
A. Software Inspection
B. Code Inspection
C. Fagan inspection
D. All above
C. Walkthroughs, Code
Reading, Pair Programming,
Inspections,
Customer Review
D. Code Reading, Pair
Programming
A
CLO.1
B
1
[1.4]
2
What is the name of
inspection process?
A. Software inspection
B. Code inspection
C. Fagan inspection
D. All above
D
CLO.1
B
3
[1.4]
3
What is the result of the
review?
A. Checklist
B. Inspection Report.
C. Code Defect
D. All above
D
CLO.1
B
2
[1.4]
4
What is Pair Programming?
A. A teamwork using Cisco tool
to review code
B. Two coders read and
inspection code of each other
C. A meeting of project's
stakeholder
D. All above
B
CLO.1
B
5
[1.4]
5
B. Code inspection
C. Fagan inspection
D. All above
D
CLO.1
B
3
[1.4]
3
What is the result of the
review?
A. Checklist
B. Inspection Report.
C. Code Defect
D. All above
D
CLO.1
B
2
[1.4]
4
What is Pair Programming?
A. A teamwork using Cisco tool
to review code
B. Two coders read and
inspection code of each other
C. A meeting of project's
stakeholder
D. All above
B
CLO.1
B
5
[1.4]
5
What are the steps of
Inspection Process?
A. Planning, Overview,
Meeting, Rework, Follow-up
B. Planning, Meeting, Rework,
Follow-up
C. Planning, Preparation,
Meeting, Rework
D. Planning, Overview,
Preparation, Meeting, Rework,
Follow-up
26. Who are involved in the inspection meeting?
A. Author, Inspector
B. Moderator, Recorder
C. Reader / Timekeeper
D. All above
27. What are the benefits of the inspection?
A. Found and remove defects early
B. Training for anyone on the team
C. The inspected codes are good enough for release
D. A and B are correct
28. Which statement is TRUE when you are exanimating technical review?
A. Technical Reviews help remove defects and prevent future defects
B. Projects with the technical review are higher quality than without another
C. Traditional projects do not need review
D. Agile projects do not need review
29. According to Capers Jones in “Software Defect Removal Efficiency, Design and Code Inspections” usually
remove ... of product defects
A. 40%
B. 50 - 60%
C. 60 - 70%
D. 70 - 85%
30. According to Votta in "Does every inspection need a meeting" - 8/1993, Inspection meetings contribute
only an additional ... to the number of defects were already found by private code-readings
A. 4%
B. 10%
C. 20%
D. 50%
31. According to Conradi in Architecture Reviews, when they using 25% times for reading and 75% times for a
meeting, so ...of the defects were found during reading
A. Less than 80%
B. More than 80%
C. Less than 40%
D. More than 40%
32. All studies of Inspection have common results, the meeting will find very few errors compared to the
reading code. Why are many companies still inspecting the code by meeting?
A. They use inspection for training
B. Inspection can find the defect that the individual couldn’t found
C. Meetings create a schedule that people must work towards
D. All above
33. What are three types of Object Oriented 's review?
A. checklist review, systematic review, use-case review
B. checklist review, Diagram review, use-case review
C. checklist review, Diagram review, Code review
D. checklist review, systematic review, use review
34. What is the most successful type of Object Oriented's review?
A. Checklist review
B. Systematic review
C. Use-case review
D. No solution is true
37. In the Cisco Collaborate tool, what are the roles in a review?
A. Author, Reviewer, Moderator
80. For building java project using ANT, you must write config file in …
A. Java language
B. HTML language
C. XML language
D. A and C are correct
1.5. Analyzing and Fixing Defects
1. If your code has unrecognized defects, what will you do?
A. Change the test-case and do Unit-Test again
B. Write another code to replace it
C. Let the tester find
D. Do nothing
2. What is the best way to find defects from a function with numerous lines of code?
A. Change the test-case and do Unit-Test again
B. Isolate the suspicious regions of code
C. Check code that has changed recently
D. Be suspicious of classes and methods that have had defects before
3. If your code has errors but you can't find the defect for many hours. What is the best way you should do?
A. Check for common defects
B. Check code that has changed recently
C. Isolate the suspicious regions of code
D. Take a break
4. In coding phase. It is a defect if…
A. The algorithm is wrong.
B. The code is right but unintelligible due to poor documentation.
C. The code is right but there’s a better way to do it
D. All above.
5. What is the characteristic of software quality that you can achieve if you try to find and fix defects?
A. Accessibility
B. Safety
C. Performance
D. Correctness
6. When you run your code step by step to find defects. This technic is…
A. Reviewing
B. Testing
C. Debugging
D. Refactoring
7. What is the reason of code defects?
A. Poor understanding of requirements
B. Poor design
C. Poor coding practices
D. All above.
8. If a defect must be fixed quickly. What will you do?
A. Let junior programmers fix defects
B. Consider assigning 2 or 3 developers to it
C. Change code randomly and hope it fixes things
D. All above
9. A hardware device used to debug the software of an embedded system is...
A. Internal trace log
B. Design review
C. An in-circuit emulator (ICE)
D. Interactive Debugger
10. From studies, how many percents of defects are found in 5% of classes?
A. 30
B. 40
C. 50
D. 60
A. Medical systems
B. Airplane guidance systems
C. Weapons systems
D. All above
19. In Agile processes, what phase can customers participate?
A. Unit Test
B. Integration Test
C. Acceptance Test
D. System Test
20. Which library supports unit test in Eclipse?
A. junit.framework.TestCase
B. java.junit.Test
C. java.junit
D. All above
1.7. Refactoring
21. Which statement is WRONG when you are talking about refactoring?
A. Refactoring does NOT fix defects
B. Refactoring does NOT add new functionality
C. Refactoring does NOT make the codes better
D. Refactoring is the technology to improve the code
22. What is a code smell?
A. Code smell is any symptom in the source code of a program that possibly indicates a deeper problem
B. Code smell is a finding defect technical, that used to find where codes need to refactor
C. Code smell is a refactoring tool
D. All above
23. Long method (code smell) is…
A. an application has more than 200 class, interfaces or forms
B. a class having too much method
C. a method indicates too many parameters
D. a method, function, or procedure that has grown too large
24. Duplicated code (code smell) is…
A. Duplicated code problem is identical or very similar code exists in more than one location
B. Duplicated code problem is when you have the same expression in two methods of the same class
C. Duplication problem is when you have the same expression in two sibling subclasses
D. All above
c=
int number1;
int number2;
int number3;
} compare2Number(number1, number1=number3);
compare2Number(number2, number2=number3);
} private void compare2Number(int n1, int n2)
if(b<c) { if(n1<n2) {
int temp =n1;
n1 = n2;
{ n2 = temp;
}
}
int }
temp =b;
b = c;
c=
temp;
}
}
}
;
c=
temp;
}
if(b<c)
{
int
temp =b;
b = c;
c=
temp;
}
}
}
;
c=
temp;
}
if(b<c)
{
int
temp =b;
b = c;
c=
temp;
}
}
}
7. Refactoring that codes
public class Sort {
int a;
int b;
int c;
public void descSort(){
if(a<b) {
int temp =a;
a = b;
b = temp;
} if(a<c) {
int temp =a;
a = c;
c = temp;
} if(b<c) {
{ String address;
System.out.println(id + ", " + name + String phone;
", "+ classID + ", " + birthday + ", "+ } //Create date: 3/5/18
address + ", " + phone); //Create by: SanhTK
} public class Student {
} public void display(StudentInfo s)
{ System.out.println(s.id + ", " + s.name + ", " +
s.classID + ", " + s.birthday + ", " + s.address + ", "
+ s.phone);
}
}
Tự luận : ( mấấy cấu hỏi mà có nhiềều cấu trả lời thì chỉ cấền l ựa ra 3 cấu đ ể h ọc thôi , đ ừng h ọc hềất )
If you are having trouble finding the defects associated with a problem
+ Fix defects
GitHub , GitLab
If the algorithm is wrong ,if the code is right but unintelligible due to poor documentation . it is a defect
Don’t rush
Change request