Midterm Exam Flashcards
He developed c++
Bjarne stroustrup
A middle level programming language
C++
When and where?
1979 at Bell Labs.
Loads and save files, handles directories, invokes DOS and exits Turbo C++
File
Invokes the Turbo C++ editor
Edit
Compiles, Links, and run
Run
Compiles the program
Compile
Manage multiple projects
Project
Sets various compiler
Options
Set various debug
Debug
Manages debugger
Break/Watch
It isbthe statement terminator.
Semicolon
Set of logically connected statements
Block
Two identifiers
Variable
Constants
The operators
Assignment Arithmetic Increment/Decrement Relational Logical
These are sequence of one or more letters
Identifiers
A data storage location that has a value
Variable
Any expression that has a fixed value
Constants
Constants are called what? ./.
Literals ./.
A prefix which you can declare constants
Const
Enclosed between single quotes
Characters
Contains a series of characters
String constants
Numerical constants without fractional components
Integer numbers
Require the use of decimal points
Floating-points
A symbols that tells the compiler
Operators
An assignment operator which is the value on the right side
Single equal sign
Various instructions in the source code
Preprocessor directive
Informs the compiler and the type of data to hold
Variable definition
Explanatory statements
Remarks/comments
The point where they begin their execution
Main function
A complete direction instructing the compiter to carry out
Statement
Group of two or more c statements
Compound statements or block
Anything that evaluates to a numeric value.
Expressions
Provides the c compiler
Function Prototype
The basic interface of computers
Consoles
What is iostream
Input/output stream
A stream used in conjunction with the overload operator.
Cout
Inserts the data that follows it into the stream that precedes it
Insertion operator
A multistep process for creating a program
Programming
Set of ordered steps
Algorithms
Steps in program development
RSCTD
Requirement Analysis System Design Construction Testing and Validation Documentation and Maintenance
Collection of information
Requirement Analysis
Description of what a system should do
Requirment
Steps in problem analysis
Define the problem and the users
Determine the desired outputs
Determine the input to achieve the desired outputs
Determine the process involve
Check the feasibility of implementing the program
Program design process
System design
Pictorial representation
Flowchart
Visual outline of an algorithm
Program Flowchart
Visual representation of the broad
System flowchart
Algortihm written in normal human language
Pseuducode
Actual writing of the program
Construction
Grammar of the programming language
Syntax
Involves running various tests
Testing and Validation
Manually testing
Disk-checking
Converting your program
Translating
Translate your entire program
Compiler
It gives you all the message
Diagnostics
Translate one line at a time
Interpreter
Detectin, locating and removing all errors
Debugging
Most common error
Syntax error
Software error
Run-time error
Incorrect use of control structures.
Logical error
Written detailed description
Documentation
Activity designed to keep programs error free
Maintenance
Essence of any computer language
Program-control statements
Order of statement execution
Modify
Evaluates an expression and directs program execution
If statement
Series of statements place inside curly braces
Program block or compound statement
Provides a more concise representation than multiple else if statement
Switch statement