0.4 Introduction to C++ development Flashcards

(9 cards)

1
Q

What are the basic steps of how C++ programs get developed?

A
  1. Define the problem to solve
  2. Design a solution
  3. Write a program that implements the solution
  4. Compile the program
  5. Link object files
  6. Test program
  7. Debug
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What characteristics do good solutions to problems have?

A
  1. They are straightforward (not overly complicated or confusing).
  2. They are well documented (especially around any assumptions being made or limitations).
  3. They are built modularly, so parts can be reused or changed later without impacting other parts of the program.
  4. They can recover gracefully or give useful error messages when something unexpected happens.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

bug

A

any kind of programming error that keeps the program from operating correctly

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

debugging

A

the process of removing bugs

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

source code/code

A

the set of instructions that we input into a text editor or coding software

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

code editor

A

a text editor that is designed for programming

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

What are the advantages of using a code editor over a text editor?

A
  1. Line numbering makes it easier to find your mistakes
  2. Syntax highlighting and coloring make it easier to identify the different parts of your program
  3. Unambiguous, fixed-width fonts make it easier to tell similar letters apart and to organize your lines of code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Each source code file in your program needing to be saved to disk means that…

A

You will need to name all your files

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

What should the first/primary source code for a program be called?

A

main.cpp
main makes it easy to know where the primary source code file is, and .cpp is the file extension for a C++ source code file

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