Ccat Computer Notes
Ccat Computer Notes
COURSE OUTLINE
Topic # 1 : Computer & Its Basics
Topic # 2 : Mechanical, Electromechanical Era
Topic # 3 : Electronic Era
Topic # 4 : Types of Computer
Topic # 5 : Software & Types
Topic # 6 : Input or Output Devices with Examples
Topic # 7 : Computer Organization
Topic # 8 : Memory & Types
Topic # 9 : Programming Languages & Types
Topic # 10 : Number System & Boolean Algebra
Topic # 11 : All Mathematical Work
Topic # 12 : Basic Computer Terminologies and Abbreviations
Topic # 13 : Basic Internet Knowledge
Topic # 14 : Types of Computer Network
Topic # 15 : Network Protocol & Types
Topic # 16 : Terms Related To Internet / Network
Topic # 17 : OSI Model
Topic # 18 : Office Automation ( Ms Word )
Topic # 19 : Office Automation ( Ms PowerPoint )
Topic # 20 : Office Automation ( Ms Excel )
Topic # 21 : Office Automation ( Ms Access )
Topic # 22 : Office Automation Shortcuts
Topic # 23 : Computer Crime and Computer Security
Topic # 24 : Operating System & Types
Topic # 25 : Operating System ( Features & Functions )
Topic # 26 : Basics of C++
Topic # 27 : Fundamentals of C++
Topic # 28 : Language Translator & Types
Topic # 29 : Database & Types
Topic # 30 : Database ( Functions & Purpose )
Topic # 31 : Errors & Types
Topic # 32 : Algorithm & Flowchart Concept
Topic # 33 : Loops and Conditions
Topic # 34 : Functions
Topic # 35 : File Extensions
INFORMATION TECHNOLOGY
Information technology is a contemporary term that describes the combination of
computer technology (hardware and software) with telecommunication technology (data,
image, and voice networks)
ADVANTAGES OF COMPUTER
Speed
Accuracy
No Diligence
Storage capability
More jobs
Communication
E commerce
DISADVANTAGE S OF COMPUTER
No I.Q.
Less jobs
Health issues
Addiction
Security issues
Harassment and bullying
4. PROCEDURES : procedures are the steps that you must follow to accomplish a
specific computer-related task.
5. PEOPLE : people are the computer operators, also known as, users (or sometimes
end user).
MECHANICAL ERA :
Men have been trying to invent machines that can solve mathematical problems. In
mechanical era, human became successful to make simple machines that could help
performing simple arithmetic operation, in other words computing. These machines were
manually operated since the electricity was not invented.
Some of the important machines of this era are :
ROBOTS :
Robots are the machines that can be controlled by a computer and are capable of
carrying out a complex series of actions automatically. Robots can be controlled by an
external control device or through programming.
WIRELESS COMMUNICATION :
It has become an integral part of our lives. Wireless communication technology
transmits information using electromagnetic waves like IR (Infrared), RF (Radio
Frequency), satellite, etc. Wireless communication is also giving new meaning to the
socialization and human interactivity.
VIRTUAL REALITY :
It is an artificial environment that is created with software and presented to the
user in a way that the user feels it as a real environment. Virtual reality can be used for the
simulation of a real environment for training and education. It is also used for
development of an imagined environment for a game or interactive story
CLASSIFICATION OF COMPUTER
According to
According to According to
Function/Data
Purpose Size/Capacity
Handling
Micro Computer
ANALOG COMPUTER :
The word analog is taken from the word analogous which
DIGITAL COMPUTER :
Digital computers are computers that specialize in
counting (digits & numbers). These numbers are used to
perform arithmetic calculations and also make logical decision
to reach a conclusion. Digital computers are most popular and
generally used in homes, offices etc. Digital technology is
more popular than analog technology for mainly following
reasons cost, applications are faster, accurate and easier to program.
HYBRID COMPUTER :
Hybrid computer is combination of analog and digital
computer systems. These are the machines that incorporate
in a single computer both analog and digital features. A
hybrid computer uses analog to digital conversion and digital
SUPER COMPUTER :
These are the largest and fastest machines today. It can
perform 50 million operation per second. They are very
sophisticated machines designed to perform complex
calculations at fastest speed. Super computer used to modal
very large dynamic systems, such as weather patterns, national
or global weather forecasting, satellite tracking, testing of
atomic and nuclear weapons etc. Traditionally, supercomputers
have been used for scientific and engineering applications that must handle very large
databases.
MAINFRAME COMPUTER :
Mainframes are the traditional medium and large scale
computer systems used in most business organizations for
information processing. A mainframe typically has an advanced
control system and is capable of linking up with dozens of
input/output units and even minis for additional computer
power. It can usually perform from 16 MIPS to onward. Memory
MINI COMPUTER :
Mini-computers are increasingly powerful and do almost anything that large
computers do, only more slowly and at much lower cost than mainframes. These
computers are smaller than mainframe and larger than microcomputer in size. A
minicomputer is a multiprocessing system having terminals attached to it and is capable of
supporting 4 to 200 users simultaneously. The speed is usually from 10 MIPS to onward.
RAM is from 2 MB to onward.
MICRO COMPUTER :
The increasing use of micros in home, school, business and
professional offices has been even more revolutionary. Although
these computers have limited memory and speed, their cost makes
them very attractive for applications that would otherwise not be
feasible. It is mostly used as a single user or referred as SINGLE
CHIP PROCESSOR. The speed is generally from 8 MHz to onward.
The RAM is from 640 KB to onward. It is designed to be used by individuals for writing,
illustrating, budgeting, playing games and communicating with other computers.
SOFTWARE
Software is a set of instructions, data or programs used to operate computers and
execute specific tasks. It is the opposite of hardware, which describes the physical aspects
of a computer. Software is a generic term used to refer to applications, scripts and
programs that run on a device.
OR
Software is a collection of computer programs and related data that provides
the instructions for telling a computer what to do and how to do it. Software refers
to one or more computer programs and data held in the storage of the computer for
some purposes.
TYPES OF SOFTWARE :
Software can be categorized into two classes:
1. System software.
2. Application software.
1. SYSTEM SOFTWARE :
System software’s are the program directly related to the computer hardware
and perform task associated with controlling and utilizing computer hardware.
DATA MANAGEMENT SOFTWARE : This software is used for organizing, updating and
printing data.
EDITORS : This software enables the user to type-in a program or generate text and make
modification whenever necessary.
UTILITY SOFTWARE : These programs are used to perform a wide range of functions like
virus cleaning etc.
2. APPLICATION SOFTWARE :
Application software is developed to perform in any task that benefit from
computation. It is a set of programs that allows the computer to perform a specific data
processing job for the user. It does not interact directly to the hardware. It directly
interacts with the system software.
This category includes: business software, databases, image editing, medical
software, video games, word processing. There are two type of application software:
HARDWARE
The physical equipment's that make up computer are called
Hardware. In other words hardware are any part of the computer
you can touch. Hardware consists of interconnected electronic
devices such as keyboard, mouse, monitor, printer etc.
INPUT DEVICES
Input devices are hardware components that
allow users to interact with a computer by providing
data or commands. These devices enable the user to
input information into the computer for processing.
2) POINTING DEVICES :
3) IMAGING DEVICES :
SCANNER :
Converts physical documents or images into digital format.
i. FLATBED SCANNER : A flatbed scanner is the most common type
and resembles a photocopier. It has a flat, glass surface on which
you place the document or image for scanning.
Prepared and Composed by Sir M. Faizan Page 14 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
ii. SHEET-FED SCANNER : sheet-fed scanners are designed to handle multiple pages
at once. Documents are fed through the scanner using an automatic document
feeder (ADF).
iii. HANDHELD SCANNER : Handheld scanners are portable and
can be moved manually across the surface of the document.
They are compact and suitable for scanning in various
locations.
WEBCAM :
Captures video or images for video conferencing or streaming.
7) READERS :
OUTPUT DEVICES
Output devices are essential components of a
computer system that display or present information
processed by the computer. These devices allow users to
receive feedback or output from the computer.
TYPES OF MONITORS :
i. CRT (CATHODE RAY TUBE) MONITORS : Older technology, now largely
obsolete. Used a vacuum tube with an electron gun to generate images
on a phosphorescent screen.
ii. LCD (LIQUID CRYSTAL DISPLAY) MONITORS : Use liquid crystal technology to control
the passage of light through individual pixels. Common in most modern monitors due
to their slim profile and energy efficiency.
TYPES OF PRINTERS :
In term of technology utilized, printer can be categorized
into two types:
1. Impact printer.
2. Non-impact printer.
IMPACT PRINTER :
Impact printer strikes the ribbon against paper. These printers use a print head
containing a number of metal pins which strike an inked ribbon placed between the print
head and the paper. It can have produced carbon copies. It is a noisy and slower printer.
TYPES : Daisy wheel printer, dot matrix printer, line printer.
SYSTEM UNIT
A system unit is the part of a
computer that contains the primary
devices. The system unit performs
operations and produces results for
complex calculations. It includes the
motherboard, CPU, ram and other
components, as well as the case in
which these devices are enclosed.
MOTHERBOARD :
A motherboard is also called a system board or
logic board, is an electronic circuit board that contains
the CPU, memory and other basic electronic
components. A motherboard also includes expansion
slots.
MICROPROCESSOR (CPU) :
As computer has evolved, the size of the microprocessor has
become smaller while its speed and capacity has increased. Indeed
the microprocessor also called the CPU, is a tiny chip on which
electronic circuitry has been etched. The chip is mounted on a piece
of plastic, called carrier, with metal leads attached to it. The
microprocessor manages the computer processing and the transfer of data to and from
primary memory, commonly called ram.
COMPONENTS OF CPU :
CU (CONTROL UNIT) : This unit control the execution of programs , input and output
devices, storage and retrieval of data from storage devices, routing of information
between memory and ALU and also control the direction of arithmetic and logic units. So
FEATURES OF MICROPROCESSOR :
CLOCK :
The clock controls how fast all operations within the CPU take place. If you bring a
microprocessor system, clock speed is an important measurement to know about. It is
expressed in megahertz (MHz) or gigahertz (GHz).
CO-PROCESSOR :
Coprocessors are microprocessor that are subordinates to the CPU and helps it handle data
overload and speed up the computers operation.
BUS :
The buses on a computer system are sets of wires that carry information to or from
memory or I/O devices. They may be unidirectional (data travels one way) or bi-directional
(data travels both ways) Buses can be seen on the computer motherboard as parallel metal
tracks
TYPES :
ADDRESS BUS : The address bus carries the address of the piece of memory or I/O
devices to be used to read or write the data. They may be unidirectional (data travels
one way).
DATA BUS : The data bus carries the data that is to be written or has been read from
memory. It is a bi directional (data travels both way).
CONTROL BUS : The control bus carries the signal that control the actions of the
computer. The control bus (or command bus) transports orders and synchronization
signals coming from the control unit and travelling to all other hardware
components. It is a bidirectional bus, as it also transmits response signals from the
hardware
REGISTER :
Register is the volatile memory holding areas within the CPU for data and instruction that
are to be processed immediately. There are 14 registers that are equally shared by CU &
ALU.
PORTS :
Ports refer to physical or virtual interfaces on a
computer or computing device that allow the
connection of external devices, peripherals, or
networks. These ports facilitate data transfer,
USB (UNIVERSAL SERIAL BUS) PORTS : USB ports are versatile and
widely used for connecting a Variety of peripherals, including external
hard drives, printers, keyboards, mice, cameras, and smartphones.
HDMI (HIGH-DEFINITION MULTIMEDIA INTERFACE) PORTS : HDMI ports
are used to transmit high-definition audio and video signals. They are
commonly found on computers, monitors, TVs, and multimedia devices.
ETHERNET (LAN) PORT : The Ethernet port, often known as an rj45 port, is used for
wired network connections. It enables a computer to connect to a
local area network (LAN) or the internet.
AUDIO (AUXILIARY) PORTS : Audio ports, typically 3.5mm jacks, are
used for connecting Headphones, speakers, microphones, and other
audio devices.
VGA (VIDEO GRAPHICS ARRAY) PORT : VGA ports are used for
connecting monitors and displays. However, they are becoming
less common as newer technologies like HDMI and display port
gain popularity.
SERIAL AND PARALLEL PORTS : Serial and parallel ports were used in
older computer systems for connecting peripherals like printers and
modems. These ports are largely obsolete, with USB and other
modern Interfaces replacing them.
POWER SUPPLY :
Power supply is a box inside the system that provides
electrical power to all components in a system unit. It converts 220
volt main ac supply to the required 5 or12 volt dc supply which
computer components use. Since electricity generates a lot of
heat, the power supply unit is equipped with a fan that prevents
the system and components from overheating
EXPANSION SLOTS :
Expansion slots in a computer are physical
connectors on the motherboard that allow additional
expansion cards or peripheral devices to be installed.
These slots provide a way to expand the functionality or
capabilities of a computer by adding specialized hardware
components
WORD SIZE :
Word size in computing refers to the number of bits that a computer's central
processing unit (CPU) can process at a time. It is a fundamental characteristic of the
Prepared and Composed by Sir M. Faizan Page 22 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
computer's architecture and plays a role in determining the efficiency and performance of
various operations. The word size is often associated with the computer's processing
capability and the amount of data it can handle in one instruction.
FETCH CYCLE :
During the fetch cycle, the CPU retrieves the next instruction from memory. The
instruction is stored in a specific location in memory, and the CPU needs to fetch it so that
it can be decoded and executed.
STEPS :
1. The CPU sends a request to the memory address where the next instruction is stored.
2. The instruction is fetched from the memory and loaded into a special register called
the instruction register (IR) inside the CPU.
3. The program counter (PC), a register that keeps track of the memory address of the
next instruction, is updated to point to the next sequential instruction.
EXECUTE CYCLE :
After the instruction is fetched, the CPU proceeds to execute it. The execution
involves carrying out the specific operation or operations described by the instruction.
STEPS :
1. The CPU decodes the instruction stored in the instruction register to understand
what operation needs to be performed.
2. The CPU fetches any required data from memory or registers to perform the
operation.
3. The actual operation is executed, which may involve arithmetic or logical
computations, data movement, or control flow changes.
4. The results of the execution may be stored back in registers or memory, depending
on the nature of the instruction.
MEMORY
In a computer system, memory refers to the physical devices used to store
data temporarily or permanently for processing and retrieval. Memory is a crucial
component that directly impacts the performance and functionality of a computer.
PRIMARY MEMORY :
Internal memory, presently known as main memory, is the only one directly
accessible to the CPU. It is an area where our program and data stored during
RAM :
Stands for random access memory. This memory is randomly
accessible and it has a very high-speed work area. It stores only one
program and data at a time. This memory is volatile in nature which
means everything stored in ram will be lost if power is switched off.
TYPES OF RAM :
SRAM : Static ram has a greater capacity for storage. SRAM does
not need to be refreshed, which make it faster. Static ram is more
expensive then dynamic ram and can hold more information.
DRAM : dynamic ram is the most common type of ram. Dynamic
ram need to be refreshed thousands of time per second. This
makes it slower and cumbersome as compared to static ram.
ROM :
Stands for read only memory. Rom is non-volatile memory. It is
used to hold certain start-up programs; such as routines that start disk
drive, load operating system into memory and transfer of control to the
new loaded program. The program stored in rom are referred as
firmware.
TYPES OF ROM :
PROM : A prom is a memory chip on which we can store a program. But
once the prom has been used, we cannot clean it does not use it to store
something else. Like, ROMs, PROMs are non-volatile.
EPROM : An EPROM is the special type of prom that can be erased by
exposing it to ultraviolet light. After that we can reuse it.
EEPROM : An EEPROM is a special type of prom that can be erased by
exposing it to an electrical charge like EPROM. After erasing data, we
can reuse it.
MAGNETIC DISK :
PROGRAM
A computer program is a collection of instruction that can be executed by a
computer to form a specific task. Most computer devices require program to
function properly. A computer program is a computer programmer usually written
by programming language.
PROGRAMMING
Programming, also known as coding or software development, is the process of
creating computer programs or applications by instructing a computer to perform specific
tasks. A program is a set of instructions written in a programming language that a
computer can interpret and execute.
The primary goal of programming is to solve problems and automate tasks. Programmers
use programming languages to write code, which is a series of instructions that tell a
computer how to perform a particular task or set of tasks. These instructions are written
using a syntax specific to the chosen programming language.
PROGRAMMING LANGUAGE
A programming language is a vocabulary
and set of grammatical rules for instructing a
computer or computing device to perform
specific tasks. The term programming language
usually refers to high-level languages, such as
basic, c, C++, COBOL, java, FORTRAN, ADA, and
pascal.
LOW-LEVEL LANGUAGE :
The low-level language is a programming language that can directly access and
communicate with the hardware, and it is represented in 0 or 1 forms, which are the
machine instructions.
MACHINE- LEVEL LANGUAGE : The machine-level language comes at the lowest level
in the hierarchy, so it has direct access to the hardware. It cannot be easily
understood by humans. The machine-level language is written in binary digits, i.e., 0
and 1.
THE ASSEMBLY LANGUAGE : The assembly language comes above the machine
language means that it has lesser access to hardware. It is easy to read, write, and
maintain by humans.
Prepared and Composed by Sir M. Faizan Page 27 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
MIDDLE-LEVEL LANGUAGE :
Some special purpose middle-level languages were developed in the past that were
used as bridge between hardware and user interaction. However, such languages have
become obsolete and are not used anymore.
HIGH-LEVEL LANGUAGE :
The high-level languages brought revolution in programming world. They allow a
programmer to write the programs which are independent of a particular type of
computer. These languages are closer to human languages than machine-level languages.
High-level languages do not have direct access to the hardware.
PYTHON : Python is a versatile, high-level programming language known for its readability
and ease of use. It supports multiple programming paradigms and is widely used in web
development, data science, artificial intelligence, and automation.
JAVASCRIPT : JavaScript is a scripting language primarily used for web Development. It
allows dynamic content manipulation on web pages, and with the advent of [Link], it can
also be used for server-side development.
JAVA : java is a general-purpose, object-oriented programming Language designed to be
platform-independent. It is widely used in enterprise-level applications, mobile
development (android), and largescale systems.
C++ : C++ is a powerful, general-purpose programming language Derived from c. It includes
features like object-oriented programming and is used for system/software development,
game development, and performance-critical applications.
C# (C SHARP) : C# is a modern, object-oriented programming language developed by
Microsoft. It is commonly used for building windows applications, web applications (with
[Link]), and game development using unity.
PHP : PHP (hypertext preprocessor) is a server-side scripting Language designed for web
development. It is embedded in html and is used to create dynamic web pages, handling
tasks like form processing and database connectivity.
VISUAL BASIC (VB) : it is a user-friendly, event-driven programming language
Developed by Microsoft. It is known for its simplicity and ease of use, making it a popular
choice for developing windows applications with graphical user interfaces (GUI). VB enables
rapid application development and is often used for creating desktop applications,
automation scripts, and simple database-driven software.
SQL : SQL (structured query language) is not a general-purpose Programming language but
is crucial for managing and manipulating relational databases. It is used for tasks such as
querying databases, inserting, updating, and deleting data.
BOOLEAN ALGEBRA
Boolean algebra was invented by George Boole in 1954.
Prepared and Composed by Sir M. Faizan Page 29 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
Boolean algebra is a mathematical structure and set of operations used in digital logic
design and computer science.
it deals with binary variables and operations, where each variable can only take on
one of two values: true (1) or false (0).
The fundamental operations in Boolean algebra are based on logical operations.
RULES OF BOOLEAN ALGEBRA :
TRUTH TABLE :
A truth table is a breakdown of a logic function by listing all possible values
the function can attain. Such a table typically contains several rows and columns,
with the top row representing the logical variables and combinations, in increasing
complexity leading up to the final function.
LOGIC GATES :
Logic gates are the basic building blocks of any digital system. It is an electronic
circuit having one or more than one input and only one output. The relationship between
the input and the output is based on a certain logic.
1. And (basic)
2. Or (basic)
3. Not (basic)
4. Nand (universal)
Prepared and Composed by Sir M. Faizan Page 30 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
5. Nor (universal)
MATHEMATICAL WORK :
(Practice all Mathematical work related to following topics)
1. Number System Conversion
2. Simplification of binary number system (Addition, subtraction,
multiplication, division)
3. Truth Table
4. Boolean Simplification
5. Logic Gates (circuits)
BASIC TERMINOLOGIES
GENERAL COMPUTING TERMS :
AI : Artificial Intelligence
ML : Machine Learning
DL : Deep Learning
VR : Virtual Reality
AR : Augmented Reality
MR : Mixed Reality
SDK : Software Development Kit
IDE : Integrated Development Environment
CLI : Command Line Interface
GUI : Graphical User Interface
RAM : Random Access Memory
ROM : Read-Only Memory
CPU : Central Processing Unit
GPU : Graphics Processing Unit
BIOS : Basic Input / Output System
DNS : Domain Name System
VPN : Virtual Private Network
LAN : Local Area Network
WAN : Wide Area Network
MAN : Metropolitan Area Network
SAN : Storage Area Network
SSD : Solid State Drive
HDD : Hard Disk Drive
USB : Universal Serial Bus
Prepared and Composed by Sir M. Faizan Page 31 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
IEEE : Institute of Electrical and Electronics Engineers
WEB DEVELOPMENT :
HTML : Hypertext Markup Language
CSS : Cascading Style Sheets
JS : JavaScript
XML : extensible Markup Language
JSON : JavaScript Object Notation
AJAX : Asynchronous JavaScript and XML
CMS : Content Management System
SEO : Search Engine Optimization
SECURITY :
PKI : Public Key Infrastructure
VPN : Virtual Private Network
ACL : Access Control List
DDoS : Distributed Denial of Service
AES : Advanced Encryption Standard
OTP : One-Time Password
MOBILE DEVELOPMENT :
IOS : iPhone Operating System
Android OS : Android Operating System
APK : Android Package
IMEI : International Mobile Equipment Identity
SIM : Subscriber Identity Module
MISCELLANEOUS :
CAD : Computer-Aided Design
OCR : Optical Character Recognition
VRML : Virtual Reality Modeling Language
CAPTCHA : Completely Automated Public Turing test to tell Computers
and Humans Apart
URL : Uniform Resource Locator
USB : Universal Serial Bus
DATA
Data is the representation of facts, instructions, or concepts like text, numbers,
symbols, images, voice, and videos in a structured manner suitable for communication.
DATA COMMUNICATION
The processes, facilities and equipment used
to transport encoded information from one point
to another
ANALOG VS DIGITAL
Analog signals are a continuously varying signal or waves that
change with time period. Analog Signals can be used to measure
DATA TRANSMISSION
The data transmission means
emission of data in any direction via
wireless or wired medium. Transmission
may occur between source and
destination.
GUIDED MEDIA :
In guided media signals are transmitted in a narrow pathway by using physical links. It is
also called Wired or Bounded transmission media. The physical links are the cables that are
tangible or have physical existence. There are three common types of guided media used
for the networks. Each of them has its own characteristics like transmission speed, effect of
noise, physical appearance, cost, etc.
Twisted Pair Cable
Coaxial Cable
Fiber Optic
TWISTED PAIR : Twisted pair is a physical media made up of a pair of cables twisted
with each. A twisted pair cable is cheap and easy, and it is a lightweight cable, the
frequency for twisted pair cable is from 0 to 3.5 KHz.
UNSHIELDED TWISTED PAIR (UTP) : Unshielded twisted pair is widely
used telecommunication. It can be used for high-spec Local Area
Networking (LAN). It is less expensive and easy to install.
SHIELDED TWISTED PAIR (STP) : Twisted pair is a cable that contains
the mesh surrounding the wire that allows the high transmission
rate. The installation of STP is easy.
COAXIAL CABLE : Coaxial cable is also known as coax. It has an outer plastic covering
containing two parallel conductors. Each having a separate insulated protection cover.
FIBER OPTIC : In optical fiber or fiber-optic cable data is transferred in the form of light. It
uses the concept of reflection of light through a core made up of glass or plastic. The core is
surrounded by a less dense glass or plastic covering called the cladding. It is used for
transmission of large volumes of data at very high speed.
UNGUIDED MEDIA :
Unguided media is also termed as wireless or unbounded transmission media. As the
name implies, it does not require physical medium such as wire for the transmission of
electromagnetic signals.
Radio Waves
Microwaves
Infrared
RADIO WAVES : Radio waves are also called electromagnetic waves. These are easy
to generate and can penetrate through buildings.
FM, AM radios, television and cordless phones
use radio waves for transmission. Used to send
message to longer distance like country to
country city to city.
BAUD RATE :
The baud rate is the number of signals transmitted per second and one signal can
represent one or more bits. It is used to describe the maximum change in an electronic
signal. For example, if a signal changes 1200 times in one second, it would be measured at
1200 baud.
TRANSMISSION IMPAIRMENTS
DISTORTION :
Distortion means change in the
shape of the signal. A composite signal
has several frequencies. When it travels
through a medium different component
of signal may reach at different time at
destination because each component has
different speed in that medium. This is
called distortion. They have different phases at sender and receiver ends.
NOISE :
Unwanted signal that
mixes up with the original
signal during the transmission
of data is called noise. It can be
induced noise, crosstalk Noise,
thermal noise and impulse
noise which may damage the signal.
NETWORK
A computer network is a system that allows multiple computers or devices to
communicate with each other and share information. It's like a digital highway that enables
computers to connect and exchange data, just as roads allow cars to travel and reach
different destinations.
TYPES OF NETWORK :
LAN (Local Area Network)
WAN (Wide Area Network)
GAN (Global Area Network)
TOPOLOGY
Topology of LAN" could refer to the physical and logical layout or structure of a Local
Area Network (LAN). In networking, the term "topology" typically refers to how devices are
interconnected within a network. Here are some common LAN topologies
Star Topology
Bus Topology
Ring Topology
Mesh Topology
Tree Topology
Hybrid Topology
COMMUNICATION DEVICES
A communication device is a kind of hardware capable of transmitting and receiving
data, instructions, and information.
Prepared and Composed by Sir M. Faizan Page 39 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
Router
Switch
Hub
Modem
Bridge
Gateway
Repeater
NIC
PROTOCOLS
Network protocols are sets of rules and conventions that govern how data is
transmitted and received over a network. They define the format and order of messages
exchanged between devices on a network, ensuring proper communication. There are
various types of network protocols, each serving different purposes.
HTTP (HYPER TEXT TRANSFER PROTOCOL) : Used for transmitting hypertext (web
pages and files) over the internet. It operates on top of the TCP and, in some cases, the
TLS/SSL protocols.
FTP (FILE TRANSFER PROTOCOL) : Used for transferring files between computers on
a network. It can operate over TCP or, in some cases, over UDP.
HTTPS (HYPER TEXT TRANSFER PROTOCOL SECURE) : Similar to HTTP but operates
over a secure SSL/TLS connection, providing encrypted communication between the client
and the server.
LAN MODELS
ANALOG SIGNALS :
Analogue data signals are the form of continues varying waveforms which may be
periodic or non-periodic. There are two factors that govern the characteristics of an
analogue signals.
AMPLITUDE : Amplitude is the height of a wave on one side of the equilibrium position.
Amplitude is actually the strength or volume – the loudness – of a signal. A soft voice has
low amplitude. The amplitude is measured in volts.
FREQUENCY : Frequency is the number of times a wave repeats in a second. Measured in
hertz (Hz) or cycles per second.
DIGITAL SIGNALS :
A digital signal uses on / off or present / absent
electrical pulses in discrete rather than a continuous
waveform. This states represent the two-state binary
language of 0s and 1s that computer use.
ASYNCHRONOUS TRANSMISSION :
In asynchronous transmission, data is send one byte at a time. Each byte (which
consists of 8 bits) is preceded by “start” and “stop” bit.
Each byte is wrapped in its own “electronic envelop”.
Asynchronous transmission is inexpensive and so is
widely used with microcomputers. However, it is also
relatively slow.
SYNCHRONOUS TRANSMISSION :
In synchronous transmission,
blocks or “packet” of several bytes at a
time are transmitted without “start” or
“stop” bits. Header and trailer bits are
inserted at the beginnings and ends of
blocks. It is used by large computers to
transmit great volumes of data at High
speeds. Complex and expensive timing devices must be used to keep transmission activities
synchronized.
SIMPLEX TRANSMISSION :
In simplex transmission, data is transmitted only one direction. Device Connected to
such circuit is either a send-only or a receive
Prepared and Composed by Sir M. Faizan Page 43 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
–only device. An example is data received by computer from radio or television stations in
the form of voice and pictures.
DOMAIN :
1) .com : Originally intended for commercial entities.
2) .org : Designated for non-profit organizations.
3) .net : Meant for network-related organizations.
4) .edu : Restricted to educational institutions.
5) .gov : Reserved for government entities.
6) .mil : Reserved for military entities.
7) .int : Reserved for international organizations.
8) Country code : .pk , .uk , .au etc
OSI MODEL
The Open Systems Interconnection model is a conceptual model developed by ISO. It
characterizes and standardizes the communication functions of a telecommunication and
computing network. Its goal is the interoperability of different communication systems
with standard communication protocols. This model divides a communication system into
seven abstraction layers.
1. PHYSICAL LAYER :
It is responsible for converting electrical signals into
bits. It also defines the cable types to be used as transmission
media, cards, topology and other physical aspects.
3. NETWORK LAYER :
4. TRANSPORT LAYER :
It ensures the reliable transmission of data. Transport
layer manages error control, flow control and quality of the
service. If the data is not properly transmitted it requests to
resend.
5. SESSION LAYER :
Session Layer manages and synchronize the
conversation between two different applications. Transfer of
data from source to destination session layer streams of data
are marked and are resynchronized properly.
6. PRESENTATION LAYER :
While receiving the data, presentation layer transforms
the data to be ready for the application layer. It performs
Data compression, Data encryption, Data conversion etc.
7. APPLICATION LAYER :
Application Layer is the topmost layer. This layer mainly
holds application programs to act upon the received and to be
sent data.
MS WORD
A word processing program used for creating, editing, and formatting documents. It
is commonly used for tasks such as writing reports, letters, and other text-based
documents.
PAGE LAYOUT :
MARGINS : Set the margins for the entire document.
PAGE ORIENTATION : Choose between portrait and landscape orientations.
PAGE SIZE : Define the size of the paper for printing.
INSERTING ELEMENTS :
TABLES : Insert tables for organizing and presenting data.
PICTURES AND SHAPES : Add images, shapes, and graphical elements.
Hyperlinks : Insert links to websites or other parts of the document.
Headers and Footers : Include information at the top or bottom of each page.
REFERENCES :
TABLE OF CONTENTS : Automatically generate a table of contents.
FOOTNOTES AND ENDNOTES : Add annotations and references.
VIEW OPTIONS :
PRINT LAYOUT, WEB LAYOUT, and DRAFT : Switch between different views of the
document.
ZOOM : Adjust the document's zoom level for easier reading or editing.
MAIL MERGE :
MAIL MERGE WIZARD : Create personalized documents, such as letters or envelopes, for a
large audience.
REVIEWING TOOLS :
THESAURUS : Find synonyms and antonyms for words.
WORD COUNT : Check the number of words, characters, and paragraphs in the document.
Prepared and Composed by Sir M. Faizan Page 49 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
ACCESSIBILITY TOOLS :
ACCESSIBILITY CHECKER : Identify and fix accessibility issues in the document.
DEVELOPER TOOLS :
VISUAL BASIC FOR APPLICATIONS (VBA) : Create and run macros for automating tasks.
MS EXCEL
A spreadsheet application used for creating, managing, and analyzing data in tabular
form. Excel is widely used for tasks such as financial calculations, data analysis, and creating
charts and graphs.
WORKSHEET BASICS :
CELLS : Excel organizes data into cells, where you can input text, numbers, or formulas.
ROWS AND COLUMNS : Arrange data in rows and columns for easy organization.
SHEETS : A workbook can contain multiple sheets, each with its own set of data.
DATA ANALYSIS :
SORTING AND FILTERING : Arrange data in a specific order or display only certain rows
based on criteria.
PIVOTTABLES : Summarize and analyze data in a dynamic table format.
CHARTS AND GRAPHS : Create visual representations of data using various chart types.
DATA VALIDATION :
DATA VALIDATION RULES : Set rules to control the type of data entered into a cell.
DROP-DOWN LISTS : Create lists to simplify data entry.
CONDITIONAL FORMATTING :
HIGHLIGHT CELLS RULES : Apply formatting based on specific conditions.
Prepared and Composed by Sir M. Faizan Page 50 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
COLOR SCALES, DATA BARS, ICON SETS : Use visual cues to represent data variations.
WHAT-IF ANALYSIS :
GOAL SEEK : Determine the input required to achieve a desired result.
SCENARIO MANAGER : Create and compare different scenarios.
COLLABORATION TOOLS :
COMMENTS : Add comments to cells for collaboration.
SHARED WORKBOOKS : Allow multiple users to collaborate on the same workbook.
EXCEL ONLINE :
WEB-BASED EDITING : Access and edit Excel files through a web browser.
REAL-TIME COLLABORATION : Collaborate with others in real-time.
MS POWERPOINT
A presentation program used for creating slideshows with text, graphics, and
multimedia elements. PowerPoint is often used for business presentations, educational
lectures, and more.
MS ACCESS
A relational database management system that allows users to create and manage
databases. Access is used for tasks such as storing and retrieving data, creating forms, and
generating reports.
TABLES :
Create tables to store your data. Each table has fields (columns) and records (rows).
QUERIES :
Use queries to retrieve, filter, and analyze data from one or more tables.
Write SQL (Structured Query Language) queries or use the Query Design view.
FORMS :
Design custom data entry forms for inputting data into tables.
Create forms to display and navigate through data.
REPORTS :
Prepared and Composed by Sir M. Faizan Page 52 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
Generate professional-looking reports based on your database. Customize report
layouts, formatting, and grouping.
MACROS :
Create macros to automate repetitive tasks or execute a sequence of actions.
Use the Macro Design view for visual macro creation.
MODULES :
Develop custom functionality using VBA (Visual Basic for
Applications) code in modules.
Write custom procedures and functions to extend Access capabilities.
RELATIONSHIPS :
Relationship between tables to establish links and maintain data integrity.
Enforce referential integrity to ensure consistency in data.
DATA VALIDATION :
Set validation rules and input masks to ensure data accuracy. Use field and record
validation to control data entry.
IMPORT AND EXPORT :
Import data from various sources, including Excel, text files, and other databases.
Export data to different formats, such as Excel, CSV, or PDF.
SECURITY :
Set user-level security to control access to specific database objects. Password-
protect the entire database.
WEB DATABASES :
Create web databases to share data online using Access Services
INTEGRATION WITH OTHER MICROSOFT OFFICE APPS :
Easily import and export data between Access and other Microsoft Office
applications.
Embed Access forms, reports, and data into Word and Excel.
DATABASE TEMPLATES :
Use pre-built database templates for common tasks, such as
managing contacts, inventory, or projects.
DATA MACROS :
Create data macros to automate actions based on changes to table data.
Useful for performing actions like sending emails or updating related records.
DATABASE TOOLS :
Access offers various tools for compacting and repairing databases, checking for
errors, and analyzing performance.
SQL VIEW
Access the SQL View to write and execute SQL queries directly.
DATA TYPES :
Access supports various data types, including text, number, date/time, currency, and
more.
LINKED TABLES :
Prepared and Composed by Sir M. Faizan Page 53 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
Link to external data sources, such as other databases or Excel files, to incorporate
data into your Access database.
OFFICE AUTOMATION
Office automation refers to the use of technology to create, store, manipulate, and
relay information within an office environment to enhance productivity and efficiency. The
goal of office automation is to streamline routine tasks and processes, reduce manual
efforts, minimize errors, and improve overall organizational effectiveness.
MS OFFICE
Microsoft Office is a suite of productivity software applications developed by
Microsoft. It includes a variety of programs that are widely used in business, education, and
personal settings.
Microsoft Office suite includes the following core applications:
MS WORD
MS EXCEL
MS POWERPOINT
MS OUTLOOK
MS ACCESS
MS ONENOTE
MS PUBLISHER
MS TEAMS
MICROSOFT WORD :
A word processing program used for creating, editing, and formatting documents. It is
commonly used for tasks such as writing reports, letters, and other text-based documents.
MICROSOFT EXCEL :
A spreadsheet application used for creating, managing, and analyzing data in tabular form.
Excel is widely used for tasks such as financial calculations, data analysis, and creating
charts and graphs.
MICROSOFT POWERPOINT :
A presentation program used for creating slideshows with text, graphics, and multimedia
elements. PowerPoint is often used for business presentations, educational lectures, and
more.
MICROSOFT OUTLOOK :
An email client and personal information manager. Outlook is used for managing emails,
calendars, contacts, and tasks. It also includes features for scheduling meetings and
appointments.
MICROSOFT ACCESS :
Prepared and Composed by Sir M. Faizan Page 54 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
A relational database management system that allows users to create and manage
databases. Access is used for tasks such as storing and retrieving data, creating forms, and
generating reports.
MICROSOFT ONENOTE :
A digital note-taking application that allows users to create and organize notes, drawings,
and other content. OneNote is often used for collaborative work and information
gathering.
MICROSOFT PUBLISHER :
A desktop publishing program used for creating various types of publications, including
brochures, newsletters, and marketing materials.
MICROSOFT TEAMS :
A collaboration platform that combines chat, video conferencing, file storage, and
application integration. Teams is designed to facilitate communication and collaboration
within groups or teams.
MS OFFICE (KEYSTROKES) :
Ctrl + N: New document.
Ctrl + O: Open document.
Ctrl + S: Save document. Ctrl + P: Print document.
Ctrl + C: Copy selected text or object.
Ctrl + X: Cut selected text or object.
Ctrl + V: Paste copied or cut text or object.
Ctrl + Z: Undo last action.
Ctrl + Y: Redo last undone action.
MS WORD (KEYSTROKES) :
Ctrl + B: Bold.
Ctrl + I: Italicize.
Ctrl + U: Underline.
Ctrl + K: Insert hyperlink.
Ctrl + L: Left-align text.
Ctrl + E: Center-align text.
Ctrl + R: Right-align text.
Ctrl + J: Justify text.
MS EXCEL (KEYSTROKES) :
Ctrl + A: Select all cells.
Prepared and Composed by Sir M. Faizan Page 55 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
Ctrl + D: Fill down.
Ctrl + R: Fill right.
Ctrl + Shift + "+": Insert new sheet.
Ctrl + "-": Delete sheet.
Ctrl + Space: Select entire column.
Shift + Space: Select entire row.
Ctrl + Shift + L: Turn on/off filters.
MS POWERPOINT (KEYSTROKES) :
Ctrl + N: New presentation.
Ctrl + M: New slide.
Ctrl + S: Save presentation.
F5: Start slideshow from the beginning.
Shift + F5: Start slideshow from the current slide.
Ctrl + D: Duplicate selected slide.
MS OUTLOOK (KEYSTROKES) :
Ctrl + 1: Go to Mail.
Ctrl + 2: Go to Calendar.
Ctrl + 3: Go to Contacts.
Ctrl + Shift + M: Create a new message.
Ctrl + Shift + A: Create a new appointment.
Ctrl + Shift + C: Create a new contact.
MS ACCESS (KEYSTROKES) :
Ctrl + '+': Insert a new record.
Ctrl + '-': Delete the current record.
Ctrl + F: Find.
Ctrl + Shift + F: Advanced find.
Ctrl + Semicolon (;): Insert the current date.
CYBER CRIME
Cybercriminal uses devices to gain unauthorized access to important information.
Stealing passwords and important information, hacking social media accounts, accessing
anyone else's account and making transactions, committing online frauds are some of the
examples of cybercrime.
Hackers and Crackers
Piracy
Theft of hardware & time and services
Scam (Phishing)
Denial of service attack
Cyber bullying or harassment
Malware
Prepared and Composed by Sir M. Faizan Page 56 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
PIRACY :
SOFTWARE PIRACY : It is the act of illegally using, copying, or distributing software without
ownership or legal rights. The losses suffered as a result of software piracy directly affect
the profitability of the software industry.
PLAGIARISM : When someone uses the work of another artist without properly citing the
source or giving credit, then that will be an instance of plagiarism.
Plagiarism is a punishable offense, and it is a form of intellectual theft.
SCAM (PHISHING) :
Phishing is a type of online scam where attackers try to trick people into revealing
their personal information, such as passwords, credit card details, or social security
numbers. They often pretend to be trustworthy organizations or individuals by sending fake
emails, text messages, or making phone calls.
CYBER BULLYING :
MALWARE :
Malware, short for malicious software, encompasses a variety of harmful programs
designed to disrupt, damage, or gain unauthorized access to computer systems.
VIRUSES : Programs that attach themselves to legitimate files or programs and replicate
when the infected file or program runs.
WORMS : Self-replicating programs that spread across networks and systems without
needing a host file. Worms typically exploit vulnerabilities to propagate.
TROJANS (TROJAN HORSES) : Malicious software disguised as legitimate or benign
programs. Once installed, Trojans can give attackers unauthorized access or carry out
harmful actions.
RANSOMWARE : Encrypts files on a victim's system and demands payment (usually in
cryptocurrency) for the decryption key. It can cause significant data loss and disruption.
SPYWARE : Software that secretly monitors and collects information about users' activities
without their knowledge. This can include keystrokes, browsing habits, and sensitive
information.
ADWARE : Displays unwanted advertisements or redirects users to advertising websites.
While not always malicious, it can be intrusive and negatively impact system performance.
LOGIC BOMBS : Code embedded in a program that triggers a malicious action when specific
conditions are met, such as a particular date or event.
MACRO MALWARE : Malicious code embedded in document macros, often spread through
email attachments. When the user opens the document and enables macros, the malware
is executed.
CYBER SECURITY
Computer security, also known as cybersecurity, involves protecting computer
systems, networks, and data from unauthorized access, attacks, damage, or theft. It
encompasses a wide range of technologies, processes, and practices to ensure the
confidentiality, integrity, and availability of information. Here are key aspects of computer
security:
ACCESS CONTROL :
AUTHENTICATION : Verifying the identity of users or systems attempting to access
resources through methods like passwords, biometrics, or multi-factor authentication.
Prepared and Composed by Sir M. Faizan Page 58 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
AUTHORIZATION : Granting or restricting access rights based on the authenticated user's
permissions.
FIREWALLS :
Hardware or software barriers that monitor and control incoming and outgoing
network traffic based on predetermined security rules. Firewalls help prevent unauthorized
access and protect against malicious activities.
ENCRYPTION :
The process of converting data into a secure format that can only be read by
authorized individuals with the corresponding decryption key.
Encryption protects data during transmission and storage.
AUDITING :
Regularly reviewing and analyzing system logs, user activities, and configurations to
identify security issues, policy violations, or potential vulnerabilities.
NETWORK SECURITY :
Implementing measures such as Virtual Private Networks (VPNs), secure Wi-Fi
protocols, and network segmentation to protect data during transmission and prevent
unauthorized access to network resources.
OPERATING SYSTEM
An Operating System is a software which performs
all the basic tasks like booting the computer, file
management, memory management, process
management, and controlling peripheral devices such as
hard disk, printer, etc. It manages computer resources
efficiently. Most common operating systems are: DOS,
Windows, Linux, Android, Mac OS and iOS.
INTERFACE :
Prepared and Composed by Sir M. Faizan Page 59 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
An interface is a program that allows a user to interact with the computer or another
computer over a network.
CLI (COMMAND LINE INTERFACE) : A Command Line Interface (CLI) is a screen or text
based representation in which the user types the commands on place called prompt to
operate the computer.
GUI (GRAPHICAL USER INTERFACE) : It is a system of interactive visual components for
computer software. It displays objects that convey information, and represent actions that
can be taken by the user.
C++
C++ is a general-purpose programming language and widely used nowadays for
competitive programming. It has imperative, object-oriented and generic programming
features.
i) C is a powerful programming language developed by Dennis Ritchie at Bell (now AT & T’s
Bell) Laboratories of USA in 1972.
ii) C evolved from two earlier language: BCPL (Basic Combined Programming Language)
and B.
iii) BCPL was developed in 1967 by Martin Richards at the Cambridge University as a
language for writing operating systems software and compilers.
Prepared and Composed by Sir M. Faizan Page 61 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
iv) In 1970 Ken Thompson at Bell Laboratories developed a language based on BCPL and
Called it B, the first letter of BCPL.
v) Dennis Ritchie developed B further into a new language and gave it the name C, the next
letter of BCPL.
vi) In 1983, C++ was developed by Bjarne Stroustup at the Bell Laboratories, and is basically
a superset of C.
IDE
IDE stands for Integrated Development environment Include Compilation, linking,
loading and debugging tools .
Code completion capabilities improve programming workflow.
Automatically checks errors.
Help to make mistake free program.
RESERVED WORDS
A reserved word is a word that cannot be used as an identifier, such as the name of a
variable, function, or label – it is "reserved from use". This is a syntactic definition, and a
reserved word may have no meaning. There are a total of 95 reserved words in C++.
EXAMPLE : getch , printf , cout etc
DATA TYPES
TYPES KEYWORD SIZE RANGE
Boolean bool 1 byte 0 (false), 1 (true)
Character char 1 byte -127 to 127 or 0 to 255
Integer int 4 bytes -2147483648 to 2147483647
1.5 x 10-45 to 3.4 x 1038.
Floating point float 4 bytes Stores fractional numbers.
Sufficient for storing 7 decimal digits
Double 5.0 x 10-345 to 1.7 x 10308.
Floating double 8 bytes Stores fractional numbers.
point Sufficient for storing 15 decimal digits
CONSTANT AND VARIABLE
A constant does not change its value over time. A variable, on the other hand,
changes its value dependent on the equation. Constants are usually written in numbers.
Variables are specially written in letters or symbols. Constants usually represent the known
values in an equation, expression or in line of programming.
STRINGS :
Variables can store non numerical values that are longer than one single character
are known as strings.
PREPROCESSOR DIRECTIVES
These are lines included in a program that being with the character #, which makes
them different from a typical source code text. They are invoked by the compiler to process
some programs before compilation.
e.g. : #include<stdio.h> , #include<conio.h> , #include<iostream>
ESCAPE SEQUENCE
You can control the way the cursor moves on your monitor, and some other
computer function, by using special code, called escape sequences. An escape sequence
consists of the escape character (the backslash ‘\’) and a second character.
e.g. : \n (new line) , \t (tab space) , \a (alert beep)
COMMENTS IN C++
The comment statement are those statements that are ignored by the compiler.
SINGLE LINE COMMENT : It is used to a single-line explanation with the help of a double
slash (//) symbol.
DOUBLE LINE COMMENT : Symbols (/* and * / ) are needed at the start and end of the
statements.
OPERATORS
An operator is considered to be a programming ingredient, which mathematically or
logically evaluates the value of variables, constants and other identifiers.
CLASSIFICATION OF OPERATORS :
Operators fall into three classes on base of operands :
1) UNARY OPERATORS : The operators which requires one operand only is called unary
operator. Example are ++ (increment operator) , -- (decrement operator)
ARITHMETIC OPERATORS :
These operators are used to perform mathematical operation. An arithmetic
expression is made up of variable constants or both.
OPERATOR OPERATION EXAMPLE
+ Addition 10 + 3 = 13
- Subtraction 10 - 3 = 7
* multiplication 10 * 3 = 30
/ Division 10 / 3 = 9
% modulus 10 % 3 = 1
ASSIGNMENT OPERATORS :
An assignment operator is denoted by (=) is it use to assign / to store the value of an
expression to an identifier.
EXPRESSION MEANINGS
a = 5; 5 is assigned in 'a'
area = l* b; The product of l and b will be stored in area.
The assignment operator is also use with combination of arithmetic operators.
OPERATOR OPERATION EXAMPLE EXPLANATION
+= Add assign a +=b Same as a=a+b
-= Subtract assign a -=b Same as a=a-b
*= Multiply assign a *=b Same as a=a*b
/= divide assign a /=b Same as a=a/b
%= Remainder assign a %=b Same as a=a%b
RELATIONAL OPERATORS :
The relational operators are used for the comparison of two numeric operands. The
operands may be variables or constant or expressions that ultimately results in a numeric
value. Character values can also be compared as these can be represented by their ASCII
codes.
OPERATOR OPERATION EXAMPLE
< Less than a<b
> Greater than a>b
Prepared and Composed by Sir M. Faizan Page 64 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
<= Less than or equal a <= b
>= Greater than or equal a >= b
== Equals to a == b
!= Not equals to a != b
BOOLEAN(LOGICAL) OPERATORS :
These operators are used to take decision on the basis of same conditions. An
instruction having logical operators may have unary or binary operators. The operands may
be constants, variables or expressions.
OPERATOR OPERATION EXAMPLE
&& Logical AND If a==b && c==d; else 0
|| Logical OR If a==b || c==d; else 0
! Logical NOT If !a ==c ; else0
I / O FUNCTIONS
Formatted Functions Unformatted Functions
Type Input Output Type Input Output
Char Scanf() Printf() Char getch() Putch()
getche() Putchar()
Int Scanf() Printf() Int - -
Flaot Scanf() Printf() Float
Prepared and Composed by Sir M. Faizan Page 65 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
String Scanf() Printf() String Gets() Puts()
LANGUAGE TRANSLATOR
Computer can only understand program in machine languages but we write program
in high level languages. Therefore, there must be a languages translator which translates
high level language in to machine language so that computer can act upon our instruction.
1) COMPILER :
It translates the entire high-level language (Like C++, C#, java etc) program at once into
machine language before it is executed. It makes object file for next use and require more
space than interpreter.
2) INTERPRETER :
An interpreter is another type of translator that converts each statement of a program
written in a high-level language (like Python, JavaScript, Rub etc) into machine code and
executes it before translating the next statement of the source program. Interpreter does
not make any object file
3) ASSEMBLER :
PREPROCESSOR
A preprocessor is a tool that modifies the source code before it is compiled or
interpreted. Preprocessors are commonly used in languages like C and C++ to perform tasks
such as macro substitution, file inclusion, and conditional compilation. Examples of
preprocessor tools include the C preprocessor (cpp) and the Sass preprocessor for CSS.
SOURCE CODE
Source code refers to the human-readable form of a program written in a programming
language such as C, Python, Java, etc.
Source code is typically written using a text editor or an integrated development
environment (IDE).
Source code can be easily modified and maintained by developers to add new features,
fix bugs, or improve performance.
OBJECT CODE
Object code, also known as machine code or binary code, is the machine-readable form
of a program generated by compiling the source code.
Object code is not human-readable and appears as a sequence of binary digits (0s and
1s) or hexadecimal numbers.
Object code is produced by a compiler or an assembler, which translates the source
code into machine code specific to the target architecture.
DATABASE
A database is an organized collection of structured information or data, typically
stored electronically in a computer system. Databases are widely used in various
applications, ranging from simple to complex, to efficiently manage and retrieve data.
There are several types of databases, each designed to cater to specific requirements and
use cases.
DATABASE MODEL
A database model is simply a model of the various ways in which the data within a
database may be structured, i.e. its logical structure, and not the way that it is stored on
any particular storage medium.
DATA MODELING
Data modelling is a process of developing conceptual representation of data objects
and their relations. Data models are used to express how the information will be stored in
database. This helps to identify the most important fields and remove the irrelevant data.
Data models can be used by database developers to create a physical database.
(i) Entity
(ii) Relationship
(iii) Referential Keys
ENTITY :
In literal sense, an entity is any individual object which has its own qualities and
properties. In database terms, an entity is an independent table and its fields are known as
attributes. As an example, a Payroll database will contain an entity named Employees. The
Employees entity will contain various attributes like EmployeeID, Name, Designation,
Salary, etc.
RELATIONSHIP :
A relationship is a link that is created and maintained between two tables that
enable data to be accessed from both that enables simultaneously, and is technically called
a join.
TYPES :
1) One-to-one
2) One-to-many
3) Many-to-Many
1) ONE-TO-ONE : Each record in table A can have only one
matching record in table B and each record of table B can have
only one matching record in table A.
2) ONE-TO-MANY : A one-to-many is the most common type of
relationship. In a one-to-many relationship, a record in table A
can have many matching records in table B, but a record in
table B has only one matching record in table A.
3) MANY-TO-MANY : In a many-to-many relationship, a record in
a table A have many matching record in table B and a record in
table B can have many matching
records in table A.
REFERENTIAL KEYS :
The relationships are configured by using referential keys on entities. The keys
determine a certain set of rules that must be followed by the data stored in a field of an
entity. In larger database keys are very important to uniquely identify a specific record.
TYPES :
1) Primary Key
Prepared and Composed by Sir M. Faizan Page 70 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
2) Foreign Key
ER MODEL
Entity Relationship Model (ERM) or Entity Relationship Diagram (ERD) describes the
entities, attributes and relationships with their types in a simplified diagram.
DATA INTEGRITY
A DBMS must have safeguard for data integrity. In case user committed mistakes,
power failures, the DBMS should have backup measures to insure that valuable data
remains intact.
SYNTAX ERROR :
Syntax error occurs when the code does not follow the syntax rules of the
programming language. These type of errors (misspelled keywords, a missing punctuation
character, a missing bracket, or missing closing parenthesis). All famous IDE’s detect these
type of errors as you type and underline the faulty statements. No chance to execute
program with syntax error.
LOGICAL ERROR :
A logic error is a mistake in a program's source code that results in incorrect or
unexpected behavior. For example, assigning a value to the wrong variable may cause a
series of unexpected program errors. Multiplying two numbers instead of adding them
together may also produce unwanted results.
RUNTIME ERROR :
Errors which occur during program execution (run-time). Runtime error refers to an
error that takes place while executing a program. Runtime errors imply bugs in the program
or issues that the developers had expected but were unable to correct. For example,
insufficient memory can often trigger a runtime error.
DEBUGGING PROCESS
The debugging process through which a program can be made error free and
properly functional is called debugging process. Several tools have been divided for finding
and removing three types of errors, as follows:
Desk checking
manual testing with sample data
Structured walkthrough
Attempt At Translation
Testing Sample data on computer (Alpha Testing)
Run real world data (Beta Testing)
ALGORITHM
Prepared and Composed by Sir M. Faizan Page 72 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
Algorithms are Widely used throughout all areas Of Information
Technology (IT).
A search engine algorithm, for example, takes search strings of keywords and operators
as input, searches its associated database for relevant web pages, and returns results.
Another common example is online advertisements where the algorithm takes age,
gender, region and interests as input and then displays ads to only those people who
match the criteria.
An algorithm is a set of instructions/ steps/ rules that are followed to solve a problem.
It is a tool for solving a well-specified computational problem.
In our daily lives as well, we follow various algorithms without knowing.
METHOD OF ALGORITHM
These step-by-step instructions that we follow everyday are algorithms to solve certain
problems.
There are two common method to express algorithm designs; Pseudocode and Flowcharts.
PSEUDOCODE :
Pseudocode is a plain language description of an algorithm or program logic, used to
plan and outline the steps of a solution before writing actual code. It's language-neutral
and focuses on conveying the algorithm's logic without being concerned about specific
syntax rules.
Pseudo means fake
Pseudocode means fake code.
FLOWCHART :
A flowchart is a diagram that represents a set of instructions. Flowcharts normally
use standard symbols to represent the different types of instructions.
CONTROL STRUCTURE
A computer program is the set of instructions in sequential form. These instructions
execute from top to bottom. We can control the flow of program with the help of control
statement. It controls the direction of program to repeating any block of code.
1) Selection/Decision
2) Iteration/Loops
3) Jump
1) SELECTION / DECISION :
Structure :
if (condition)
{
// code to execute if condition is true
}
Prepared and Composed by Sir M. Faizan Page 74 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
ii. IF-ELSE: Executes one block of code if the condition is true and another block if the
condition is false.
Structure :
if (condition)
{
// code to execute if condition is true
}
else
{
// code to execute if condition is false
}
Structure :
if (condition 1)
{
// code to execute if condition 1 is true
}
elseif (condition 2)
{
// code to execute if condition 2 is true
}
elseif (condition 2)
{
// code to execute if none of the above conditions are true
}
iv. Switch : It is a control flow statement that allows you to select one of several
possible execution paths based on the value of a given expression. It provides a
concise way to implement multi-way branching in your code.
Structure :
switch (expression)
{
case value 1:
// code to execute if expression equals value 1
Prepared and Composed by Sir M. Faizan Page 75 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
break;
case value 2:
// code to execute if expression equals value 2
break;
default :
// code to execute if expression doesn't match any case
}
2) ITERATION / LOOPS :
ii. WHILE : Executes a block of code repeatedly as long as the specified condition is
true. The condition is checked before each iteration.
Structure :
initialization;
while(condition)
{
// code to execute repeatedly
increment / decrement;
}
iii. DO-WHILE : Similar to “while” loop, but the condition is checked after each
iteration. This guarantees that the code block is executed at least once.
Structure :
initialization;
do
{
Prepared and Composed by Sir M. Faizan Page 76 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
// code to execute repeatedly
increment / decrement;
}
while(condition);
3) JUMP :
BREAK : Terminates the execution of the nearest enclosing loop or switch statement,
transferring control to the statement immediately following the terminated loop or switch.
CONTINUE : Skips the rest of the current iteration of a loop and proceeds to the next
iteration.
RETURN : Exits the current function and returns a value to the calling function.
GOTO : Transfers control to a labelled statement within the same function. However, its use
is generally discouraged due to its potential for creating unreadable and unmaintainable
code.
EXIT : The exit() is used to terminate a C++ program and closes program whenever
executed. It is defined under " stdlib.h " header file.
FUNCTIONS
A function is one of the fundamental ideas in structured programming. The idea
defines the development of independent modules which are separately solved as sub
problems. Every C program contains at least one function that is main (). Example : clrscr();
getch(); printf(); etc.
TYPES :
There are two types of functions
1) Pre-defined/ Built in/ Library functions
2) Programmer defined/ User defined functions
PRE-DEFINED FUNCTIONS :
These are the functions which are created by the developers of the programming
language C++. These functions do not need to be declared and defined. Pre-define
functions are declared in header file. All predefined functions can be used simply by calling
the function, many pre-define functions need proper header file by using it include.
i. FUNCTION DECLARATION : Using functions in your program requires that you first
declare the function and then you define the function.
ii. FUNCTION CALLING : A user defined function is called from the main program simply
by using its name, including the parentheses which follow the name.
iii. FUNCTION DEFINITION : The function definition is the function itself. Function
definition may be defined before or after the main function.
FILE EXTENSIONS
File extensions are suffixes added to filenames to denote the file format or the type
of data contained within the file. They typically consist of three or four characters following
a period (e.g., ".txt" for text files, ".jpg" for JPEG image files). File extensions help both
users and operating systems to quickly identify the type of file and determine which
program should be used to open or process it.
SPREADSHEETS :
.xlsx - Microsoft Excel spreadsheet
.csv - Comma-separated values file
.ods - OpenDocument Spreadsheet
PRESENTATIONS :
.pptx - Microsoft PowerPoint presentation
.key - Keynote presentation
.odp - OpenDocument Presentation
IMAGES :
.jpg or .jpeg - JPEG image file
.png - Portable Network Graphics image file
.gif - Graphics Interchange Format
.bmp - Bitmap image file
.svg - Scalable Vector Graphics
AUDIO :
.mp3 - MP3 audio file
.wav - Waveform Audio File Format
.flac - Free Lossless Audio Codec
Prepared and Composed by Sir M. Faizan Page 79 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
.aac - Advanced Audio Coding
VIDEO :
.mp4 - MPEG-4 video file
.mov - QuickTime movie file
.avi – Audio Video Interleave file
.mkv - Matroska Multimedia Container
ARCHIVES :
.zip - Compressed archive file
.rar - RAR archive file
.7z - 7-Zip compressed file
.[Link] - Tarball compressed file
EXECUTABLE FILES :
.exe - Executable file (Windows)
.app - Application bundle (macOS)
.sh - Shell script (Unix/Linux)
FONTS :
.ttf - TrueType font file
.otf - OpenType font file
DATABASE FILES :
.db - Database file
.sql - SQL database script file
SYSTEM FILES :
.dll - Dynamic Link Library file (Windows)
.sys - System file (Windows)
.ini – Initialization file (configuration)
Prepared and Composed by Sir M. Faizan Page 80 of 81
Contact : 0345-2819861 / faisyfaizan@[Link]
CCAT
CONFIGURATION FILES :
.cfg - Configuration file
.conf - Configuration file
BACKUP FILES :
.bak - Backup file
TORRENT FILES :
.torrent - Torrent file