Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
27 Cards in this Set
- Front
- Back
- 3rd side (hint)
1.3 Concept: A program is a set of instructions a computer follows in order to perform a task... |
A programming language is a special language used to write computer programs. |
|
|
What is a program? |
A set of instructions that tell the computer how to solve a problem or perform a task. |
Computers are designed to follow instructions. |
|
1.11: What is an algorithm? |
a set of well-defined steps for performing a task or solving a problem. (It is important that these instructions be performed in their proper sequence). |
(It is important that these instructions be performed in their proper sequence). |
|
A computer's CPU can only process instructions that are written in: |
Machine Language |
|
|
What does machine language look like? |
it looks like a stream of binary numbers. |
|
|
What are binary numbers? |
numbers that consist of only 1s and 0s |
1011010000000101 |
|
What is a programming language? |
language that is written with words instead of numbers. |
contrary to machine language (Machine language = binary numbers) |
|
1.12: Why were computer programming languages invented? |
to ease the task of programming. (Remember, words instead of numbers. ) |
|
|
1.13: What is the difference between high-level language and low-level language? |
High-level languages are closer to the level of human readability (words). Low-level languages are closer to the level of the computer (numbers). |
|
|
C++ is based off of what language? |
C. C++ evolved from C. C++ carries all of C's low-level capabilities while having higher-level capabilities as well. |
|
|
1.14: What does portability mean? |
it means that a program that is written on one type of computer can be run on many other types of systems. |
|
|
What is a text editor? |
A processor that is used by programmers to write and save files. |
|
|
What is source code? |
Statements written by a programmer. |
|
|
What is a source file? |
A location where a programmers' source code is saved. (after the source code is saved to a file, the process of translating it to machine language has begun). |
|
|
What is the purpose of a preprocessor? |
1). It reads the source code, 2). searches for special lines that begin with the # symbol, 3). then modifies the source code in some way. |
|
|
What happens after the compiler steps through the modified source code? |
it translates each instruction into the appropriate machine language. |
|
|
What process uncovers any syntax errors that may be in the program? |
the compiler phase |
|
|
What are syntax errors? |
syntax errors are Illegal use of key words, operators, punctuation, and other language elements. |
|
|
What does the compiler do after it steps into the preprocessed code? |
it stores translated language instruction (object code) into an object file. |
|
|
What is object code? |
compiler translated machine language instructions |
|
|
What is an object file? |
an object file contains machine language instructions (object code). |
|
|
What is the run-time library? |
prewritten code for performing common operations or sometimes-difficult tasks. |
C++ is conveniently equipped with this library. Programs almost always use some part of it. |
|
During the last translation process, which program combines the object file with the necessary library routines? |
the linker |
|
|
when is the executable file created? |
once the linker has finished its step in the translating process. |
|
|
the executable file contains... |
the executable code or machine language. |
|
|
1:16: Explain the process of translating a C++ source file. |
source code --> 1). preprocessor --> modified source code --> 2). complier --> object file --> 3). linker --> executable file |
|
|
1.17: What is an IDE (Integrated development environment)? |
an environment that consist of a text editor, compiler, debugger, and other utilities that are intergrally packaged with a single set of menus |
Examples include: Xcode (for MAC) and Microsoft Visual Studio (for PC). |