Self-Test 3 Flashcards

1
Q

Which of the following are responsibilities for the review leader?

A
  • Managing review meetings
  • Issuing review reports
  • Preparing checklists
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is true about FindBugs?

A
  • It performs a static analysis
  • It can be used to find * infinite recursive loops in code
  • It is a bug-finding tool for Java
  • It can check if an array index is out of bounds
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following are the benefits of using static program analysis?

A
  • It can be performed early in the development process
  • It can find bugs and security vulnerabilities that may not be evident when the program is executed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following are the limitations of static program analysis?

A
  • It can be time-consuming to perform
  • It can only find issues that are present in the code being analyzed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following are best practices for using static program analysis effectively?

A
  • Run the analysis regularly, such as before every commit or deployment
  • Use static analysis in conjunction with testing to achieve maximum coverage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following are types of static analysis tools?

A
  • Compilers
  • Style checkers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does static analysis differ from dynamic analysis?

A
  • Static analysis is faster and less resource-intensive, while dynamic analysis is slower and more resource-intensive
  • Static analysis focuses on the code, while dynamic analysis focuses on the program’s runtime behavior
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the primary objective of static analysis in software engineering?

A
  • To analyze software artifacts without execution
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the cyclomatic complexity metric measure in static analysis?

A

Independent paths through a program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What type of review is a ‘code walkthrough’?

A

Peer-led and question-based

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

During a code inspection, what is primarily examined?

A

Code against development standards

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the main role of a compiler in static analysis?

A

To detect syntax violations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the primary difference between inspections and walkthroughs in static analysis?

A

Inspections are formal, walkthroughs are informal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which one of these is not typically part of a code review checklist?

A

User interface design

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which of the following is a characteristic of a good code review process?

A

Focus on discovering errors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

A ‘du-anomaly’ in static analysis highlights:

A

Unused variables after definition

17
Q

‘Dead code’ in static analysis refers to:

A

Code that is not executed in any scenario

18
Q

Which aspect is least likely to be detected by static analysis?

A

Performance issues

19
Q

What is the purpose of a requirements review in static analysis?

A

To detect errors and ensure conformity with specifications

20
Q

Which of these is an example of a coding standard?

A

Naming conventions for variables