Exam 120
Exam 120
Programming Language:
⦁ Microsoft's component program
● Consists of a set of instructions for architecture, COM (Component Object Model),
communicating with computers was mainly designed for Windows
● Conversion: Compiler base ⦁ It is the basis upon which OLEand
● The translation overhead is incurred just once
ActiveXare built, and it allows code to be reused
when the source is compiled; after that, it
without being recompiled
merely needs to be loaded and run.
⦁ A component is a platform-specific binary
● takes more time since they are compiled.
file that the conforming apps and other components
● Traditional programming languages are based
can usef
on low-level languages.
⦁ Instea,d of having access to a component's
● create a new program or piece of software
from scratch. underlying data structure, programmes that use its
● stronger in data and control abstraction. services include pointers to its standardized interface
● runs or executes independently ⦁ As a result, components can communicate
● Requires many lines of code to accomplish a with one another regardless of how they work or
particular task. what language they're written in
● Have high maintenance costs.
● generate .exe files. Distributed Component Object Model -DCOM
● designed to make full-fledged
● Takes a long time to developed since more ⦁ A programming technique
code must be written ⦁ Allows a computer to run programs on a
● All programming languages are not scripting
remote computer as if they were running locally
languages.
⦁ Enables COM objects to communicate over
● Examples include C, C++, Java, etc.
the network.
● Self-executable
● Classes and objects are the two main aspects ⦁ Do While loop - runs a code snippet once,
of object-oriented programming. then repeats the loop as long as the given
● A class is a template for objects, and an object condition is true.
is an instance of a class.
● When the individual objects are created, they
inherit all the properties and behaviors from
the class, but each object will have different PHP Operators
values for the properties.
⦁ allow you to perform operations with
PHP Function values, arrays, and variables. There are several
● block of statements that can be used different types:
repeatedly in a program.
● executed by a call to the function.
● start with a letter or an underscore
1. Arithmetic Operators- standard mathematical
● Function names are NOT case-sensitive
operators.
● Writing PHP Functions
} ⦁ * — Multiplication
PHP Function Arguments
⦁ / — Division
● Information can be passed to functions
through arguments ⦁ % — Modulo (the remainder of value
● An argument is just like a variable divided by another)
● Arguments are specified after the function
name, inside the parentheses. ⦁ ** — Exponentiation
● You can add as many arguments as you want,
just separate them with a comma. 2. Comparison Operators-
PHP LOOP
⦁ == — Equal
4. Logical Operators
⦁ and — And
⦁ or — Or
⦁ xor — Exclusive or
⦁ ! — Not
⦁ && — And
⦁ || — Or
⦁ += — a += b is the same as a = a + b
⦁ -= — a -= b is the same as a = a – b
⦁ *= — a *= b is the same as a = a * b
⦁ /= — a /= b is the same as a = a / b
⦁ %= — a %= b is the same as a = a % b