Syntax And Semantics, Debugging Flashcards

1
Q

Syntax error

A

When you write statement that is not valid according to the grammar of the c++ language(semicolon, undeclared variables)

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

Semantic error

A

Statement is syntactically valid, but doesn’t do what the programmer intended to

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

Debugging steps

A
  • find the root cause of the problem
  • ensure you understand why the issue is occurring
  • determine how you’ll fix the issue
  • repair the issue causing the problem
  • retest to ensure the problem has been fixed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Finding issues by code inspection

A

Only on simple programs, if you know the specific function where to look

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

Finding issues by running the program

A

Figuring out how to reproduce the problem

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

Reproducing the problem

A

A list of clear and precise steps that can be followed to cause an issue to reoccur with a high level of predictability

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

Honing on issue

A

Making educated guesses on the basis of noticing where in the program the issue initialy appeared

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

Static analysis tools

A

Tools that analizethe code and look for semantic issues that may indicate problems with the code

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