Lesson 1 & 2 Flashcards
Is a collection of instructions you’re
giving to the computer.
PROGRAM
It is capable of creating all types of programs.
GENERAL-PURPOSE PROGRAMMING LANGUAGE
It is a step-wise procedures or step by step. Or it is about writing procedures or
functions that perform operations on the data.
PROCEDURAL PROGRAMMING
FIRST PROGRAM / BASIC STRUCTURE OF C++
include <iostream></iostream>
using namespace std;
int main()
{
cout «_space;“Hello
World!”;
return 0;
}
OUTPUT:
Hello World!
It is about creating objects that contain
both data and functions.
OBJECT ORIENTED PROGRAMMING
It is creating pure functions, it is specifically designed to handle symbolic computation and list processing applications. It is a based on mathematical functions.
FUNCTIONAL PROGRAMMING
It means that it is generally translated into machine language that can be understood directly by the system, making the generated program highly efficient.
COMPILED LANGUAGE
the source code is not directly translated by
the target machine. Instead, a different
program, AKA the interpreter, reads and
executes the code.
INTERPRETED LANGUAGE
It is a program that turns bytecode (computer object code that is processed by program) into instructions that can be sent directly to a computer’s processor (CPU).
JIT compiler can be used for performance optimization to improve application run time.
OBJECT ORIENTED PROGRAMMING (OOP)
focuses more on concepts that are easy to
understand by the human mind, such as objects or mathematical functions.
HIGH LEVEL LANGUAGE
is generally quite similar to machine code, and thus is more suitable for programs like device drivers or very high-performance programs that really need access to the hardware.
LOW LEVEL LANGUAGE
It is the first language to support
object-oriented programming paradigm.
The Simula 67
He developed Simula language. (Which means Simulation)
BJARNE STROUSTRUP
The first C with classes compiler was called _______ and derived from a C compiler called ______
Cfront
Cpre
provides basic input and output services for C++ programs. Iostream uses the objects cin, cout, cerr, and clog for sending data to and from standard streams input, output, error, and log respectively.
IOSTREAM
languages are languages that are quickly
compiled when programs written in them need to be run (usually with very little optimization), offering a balance between performance and portability.
JIT Compiled (just-in-time) languages
Refers to the logic of a program and a step-by-step description of how to arrive at the solution of a given problem
ALGORITHM
A diagram which uses a set of standard graphic symbols to represent the sequence of coded instructions fed into a computer, enabling it to perform specified logical and
arithmetical operations. It is a great tool to improve work efficiency. There are four basic symbols in program flowchart,
start, process, decision and end. Each symbol represents a piece of the code written for the program.
FLOWCHART
What does the Oval symbol in flowchart Called
Terminal
What does the Arrows in flowchart Called
Flow Lines
What does the Parallelogram in flowchart Called
Input/Output
What does the Diamond in flowchart Called
Decision
What does the Rectangle in flowchart Called
Processing
is the standard output stream object, defined in iostream, and it prints to the standard output
cout
A powerful general-purpose
programming language. It can be
used to develop operating systems,
browsers, games, and so on.
C++
it is the stream insertion operator. It inserts an object to the stream object.
«
extraction operator (yung naka quote)
CIN “»_space; “
STANDARD INPUT STREAM
CIN
notifies the compiler that a statement
has ended. All C++ statements/ definitions require an ending/terminating ________.
semicolon (;)
means exit status or Success status like
“the program worked fine”
RETURN 0;
insertion operator (yung naka quote)
COUT “ «_space;”
STANDARD OUTPUT STREAM
COUT
STANDARD (OUTPUT) ERROR STREAM
CERR
STANDARD (OUTPUT) LOGGING STREAM
CLOG
an alternative function to break lines
endl or end-of-line
this is the insertion function of a line break. A new-line character shall be inserted at the exact position the line should be broken.
\n or new-line