SlideShare a Scribd company logo
1 of 39
INTRODUCTION
AGENDA
INTRODUCTION
HARDWARE
TYPES OF HARDWARE
SOFTWARE
TYPES OF SOFTWARE
INTRODUCTION
• A COMPUTER is an electronic device that accept data
and process data arithmetically and logically, produce
information.
• It is divided into two main categories
Hardware
Software
HARDWARE
Hardware is the physical aspect of computers,
telecommunications and other devices.
It includes not only the computer but also cables,
connectors, power supply units, and peripheral
devices such as keyboards, mouse, audio speakers
and printers.
INTERNAL HARDWARE
• Internal hardware is also called components .It includes
CPU
Motherboard
RAM
ROM
CENTRAL PROCESSING UNIT
It is brain of computer.
Most of calculations take place here
Two components of CPU are:
Arithmetic logic unit
Control unit
Motherboard
• It is the main circuit board of microcomputer,
• It contains the CPU, Memory, expansion slots and
all the controllers required to control standard
hardware device
RANDOM ACCESS MEMORY(RAM)
• Random access memory (RAM) is the hardware in a
computing device that provides temporary storage for the
operating system (OS), software programs and any other
data.
• RAM is often referred to as a computer's main memory.
• It is also referred to as primary memory.
Cont..
• RAM is faster to read and write than secondary storage.
Cont..
• The term random access or direct access as it
applies to RAM is based on the facts that any
storage location can be accessed directly via its
memory address and that access can be random.
• RAM is physically small and stored in microchips
which plug into slots in computer’s motherboard.
Cont..
• RAM are non-volatile. They don't require constant
power and won't lose data if the power is turned
off.
• Random access memory can hold only a limited
amount of data, much less than secondary storage
such as an SSD or HDD
• If RAM fills up and additional data is needed, the system must
free up space in RAM for the new data. This process might
involve moving data temporarily to secondary storage, often
by swapping or paging.
Types of RAM
• RAM comes in two primary forms:
DRAM
SRAM
• DRAM
DRAM is typically used for a computer's main memory. needs continuous power to
retain stored data. DRAM is cheaper than SRAM and offers a higher density, but it
produces more heat, consumes more power and is not as fast as SRAM.
SRAM
• This type of RAM is typically used for the system's high
speed cache, such as L1 or L2. Like DRAM, SRAM also
needs constant power to hold on to data, but it doesn't
need to be continually refreshed the way DRAM does.
SRAM is more expensive than DRAM and has a lower
density, but it produces less heat, consumes less power
and offers better performance.
RAM vs. virtual memory
RAM vs. virtual memory
RAM vs. flash memory
RAM vs. ROM
Procedure Oriented Programming
• COBOL, FORTRAN & C are known as
procedure oriented programming.
• In POP problem is viewed as sequence of things
like reading, calculating etc
• A number of functions are written to accomplish
these task.
• Emphasis is on doing things(algorithms).
• Large programs are divided into smaller programs known as functions.
• Most of the functions share global data.
• Data move openly around the system from function to function.
• Functions transform data from one form to another.
• Employs top down down approach in program design
OOP
• Emphasis is on data rather than procedure.
• Programs are divided into objects
• Functions that operate on data of an object are tied together in data structure.
• Data is hidden and cannot be accessed by external functions.
• Objects may communicate with each other through functions.
• New data and functions can be easily added whenever necessary.
• Follows bottom up approach.
Introduction to C++
• C++ is one of the most popular programming languages. It used to create high-
performance applications like YouTube, Google, MySql,Spotify.
• C++ was developed by Bjarne Stroustup, an extension to C language.
• C++ invented in 1979 but its first version released to public at 1983.
• C++ is an object-oriented programming language
Elements of OOPs
• Object
• Classes
• Encapsulation
• Data Abstraction
• Inheritance
• Polymorphism
• Dynamic Binding
• Message Passing
Features of OOPs
Objects
• Oops uses objects as its fundamental building blocks.
• Objects are the basic run time entities
• Object is associated with data and function which define
meaningful operations in that object.
• Object is a real world entity
• Object is an instance of a particular class.
• Object take up space in memory and have associated address.
Object
Object
Class
Classes
• It is similar to structure in C
• Classes is a user defined data type.
• It holds own data members and member function.
• Classes can be accessed and used only by instance of that
class.
• It is basically blueprint for object.
Encapsulation
• The wrapping up of data and function into a single unit called class and
keeps them safe from external interference and misuse.
• It helps in hiding implementational details.
• Access specifiers like private, public ,protected are used to control visibility
of class members.
Abstraction
• It is most essential feature of OOPs.
• Abstraction means displaying only essential information and hiding details.
• It enables code reuse by avoiding code duplication.
• It enhances software security by making only necessary information available
to the users.
Inheritance
• The capability of a class to derive properties and characterstic
from another class is called inheritance.
• Sub Class: The class that inherits properties from another class is
called Sub Class or Derived Class.
• Super Class : The class whose properties are inherited by a sub-
class is called Base Class or Superclass.
• Inheritance support the concept of “Reusability”.
Example
Difference between C& C++
C
1. C is a POP
2. Top down Approach is used in
programming
3. In C, no concept of Polymorphism
4. Operator overloading is not possible.
5.
C++
1 C++ is an OOP
2 Bottom up approach is used here.
3 In C++ concept of Polymorphism
is important.
4. Operator overloading is not
possible
INTRODUCTIONTO BASICS OF PROGRAMMING.pptx

More Related Content

Similar to INTRODUCTIONTO BASICS OF PROGRAMMING.pptx

Computer Basics Final.ppt
Computer Basics Final.pptComputer Basics Final.ppt
Computer Basics Final.pptPooja Nanda
 
Computer system organization
Computer system organizationComputer system organization
Computer system organizationSyed Zaid Irshad
 
Computer storage MBA present.pptx
Computer storage MBA present.pptxComputer storage MBA present.pptx
Computer storage MBA present.pptxfazilathshaikh1
 
A walk through the computer system
A walk through the computer systemA walk through the computer system
A walk through the computer systemfaiqikhan
 
Intro to computer system
Intro to computer systemIntro to computer system
Intro to computer systembenchhood
 
Lesson 3-What are the hardware components of computer.pptx
Lesson 3-What are the hardware components of computer.pptxLesson 3-What are the hardware components of computer.pptx
Lesson 3-What are the hardware components of computer.pptxJasonbaloro
 
Database management system.pptx
Database management system.pptxDatabase management system.pptx
Database management system.pptxRamyaGr4
 
3. basic organization of a computer
3. basic organization of a computer3. basic organization of a computer
3. basic organization of a computerSHIKHA GAUTAM
 
What is operating system
What is operating systemWhat is operating system
What is operating systemSuvithak
 
cs-intro-os.ppt
cs-intro-os.pptcs-intro-os.ppt
cs-intro-os.pptinfomerlin
 
Information Technology
Information TechnologyInformation Technology
Information TechnologyKunal Agrawal
 

Similar to INTRODUCTIONTO BASICS OF PROGRAMMING.pptx (20)

Computer Basics Final.ppt
Computer Basics Final.pptComputer Basics Final.ppt
Computer Basics Final.ppt
 
Introduction to computer system
Introduction to computer systemIntroduction to computer system
Introduction to computer system
 
MODULE 2.pptx
MODULE 2.pptxMODULE 2.pptx
MODULE 2.pptx
 
Computer system organization
Computer system organizationComputer system organization
Computer system organization
 
Computer storage MBA present.pptx
Computer storage MBA present.pptxComputer storage MBA present.pptx
Computer storage MBA present.pptx
 
A walk through the computer system
A walk through the computer systemA walk through the computer system
A walk through the computer system
 
Intro to computer system
Intro to computer systemIntro to computer system
Intro to computer system
 
lec 1.pptx
lec 1.pptxlec 1.pptx
lec 1.pptx
 
Lesson 3-What are the hardware components of computer.pptx
Lesson 3-What are the hardware components of computer.pptxLesson 3-What are the hardware components of computer.pptx
Lesson 3-What are the hardware components of computer.pptx
 
Database management system.pptx
Database management system.pptxDatabase management system.pptx
Database management system.pptx
 
Operating systems 101
Operating systems 101Operating systems 101
Operating systems 101
 
Unit 2.pptx
Unit 2.pptxUnit 2.pptx
Unit 2.pptx
 
Unit 2.pptx
Unit 2.pptxUnit 2.pptx
Unit 2.pptx
 
3. basic organization of a computer
3. basic organization of a computer3. basic organization of a computer
3. basic organization of a computer
 
Computer basics
Computer basicsComputer basics
Computer basics
 
What is operating system
What is operating systemWhat is operating system
What is operating system
 
cs-intro-os.ppt
cs-intro-os.pptcs-intro-os.ppt
cs-intro-os.ppt
 
Information Technology
Information TechnologyInformation Technology
Information Technology
 
Os concepts
Os conceptsOs concepts
Os concepts
 
Computer basics
Computer basicsComputer basics
Computer basics
 

More from urvashipundir04

static MEMBER IN OOPS PROGRAMING LANGUAGE.pptx
static MEMBER IN OOPS PROGRAMING LANGUAGE.pptxstatic MEMBER IN OOPS PROGRAMING LANGUAGE.pptx
static MEMBER IN OOPS PROGRAMING LANGUAGE.pptxurvashipundir04
 
inheriTANCE IN OBJECT ORIENTED PROGRAM.pptx
inheriTANCE IN OBJECT ORIENTED PROGRAM.pptxinheriTANCE IN OBJECT ORIENTED PROGRAM.pptx
inheriTANCE IN OBJECT ORIENTED PROGRAM.pptxurvashipundir04
 
static members in object oriented program.pptx
static members in object oriented program.pptxstatic members in object oriented program.pptx
static members in object oriented program.pptxurvashipundir04
 
constructor in object oriented program.pptx
constructor in object oriented program.pptxconstructor in object oriented program.pptx
constructor in object oriented program.pptxurvashipundir04
 
UNIT3 on object oriented programming.pptx
UNIT3 on object oriented programming.pptxUNIT3 on object oriented programming.pptx
UNIT3 on object oriented programming.pptxurvashipundir04
 
HOMEOPATHY A new approach to medicines.pptx
HOMEOPATHY A new approach to medicines.pptxHOMEOPATHY A new approach to medicines.pptx
HOMEOPATHY A new approach to medicines.pptxurvashipundir04
 
concepts of object and classes in OOPS.pptx
concepts of object and classes in OOPS.pptxconcepts of object and classes in OOPS.pptx
concepts of object and classes in OOPS.pptxurvashipundir04
 
Analysis of variance(one way ANOVA).pptx
Analysis of variance(one way ANOVA).pptxAnalysis of variance(one way ANOVA).pptx
Analysis of variance(one way ANOVA).pptxurvashipundir04
 
object oriented programming part inheritance.pptx
object oriented programming part inheritance.pptxobject oriented programming part inheritance.pptx
object oriented programming part inheritance.pptxurvashipundir04
 
ETHICAL ISSUES RELATED TO DATA COLLECTION.pptx
ETHICAL ISSUES RELATED TO DATA COLLECTION.pptxETHICAL ISSUES RELATED TO DATA COLLECTION.pptx
ETHICAL ISSUES RELATED TO DATA COLLECTION.pptxurvashipundir04
 
Scientific Conduct (Part-1)on research.pptx
Scientific Conduct (Part-1)on research.pptxScientific Conduct (Part-1)on research.pptx
Scientific Conduct (Part-1)on research.pptxurvashipundir04
 
INTRODUCTION on hardware and software.pptx
INTRODUCTION on hardware and software.pptxINTRODUCTION on hardware and software.pptx
INTRODUCTION on hardware and software.pptxurvashipundir04
 
INTRODUCTION ON ANOVA TECHNIQUE ONE .pptx
INTRODUCTION ON ANOVA TECHNIQUE ONE .pptxINTRODUCTION ON ANOVA TECHNIQUE ONE .pptx
INTRODUCTION ON ANOVA TECHNIQUE ONE .pptxurvashipundir04
 

More from urvashipundir04 (13)

static MEMBER IN OOPS PROGRAMING LANGUAGE.pptx
static MEMBER IN OOPS PROGRAMING LANGUAGE.pptxstatic MEMBER IN OOPS PROGRAMING LANGUAGE.pptx
static MEMBER IN OOPS PROGRAMING LANGUAGE.pptx
 
inheriTANCE IN OBJECT ORIENTED PROGRAM.pptx
inheriTANCE IN OBJECT ORIENTED PROGRAM.pptxinheriTANCE IN OBJECT ORIENTED PROGRAM.pptx
inheriTANCE IN OBJECT ORIENTED PROGRAM.pptx
 
static members in object oriented program.pptx
static members in object oriented program.pptxstatic members in object oriented program.pptx
static members in object oriented program.pptx
 
constructor in object oriented program.pptx
constructor in object oriented program.pptxconstructor in object oriented program.pptx
constructor in object oriented program.pptx
 
UNIT3 on object oriented programming.pptx
UNIT3 on object oriented programming.pptxUNIT3 on object oriented programming.pptx
UNIT3 on object oriented programming.pptx
 
HOMEOPATHY A new approach to medicines.pptx
HOMEOPATHY A new approach to medicines.pptxHOMEOPATHY A new approach to medicines.pptx
HOMEOPATHY A new approach to medicines.pptx
 
concepts of object and classes in OOPS.pptx
concepts of object and classes in OOPS.pptxconcepts of object and classes in OOPS.pptx
concepts of object and classes in OOPS.pptx
 
Analysis of variance(one way ANOVA).pptx
Analysis of variance(one way ANOVA).pptxAnalysis of variance(one way ANOVA).pptx
Analysis of variance(one way ANOVA).pptx
 
object oriented programming part inheritance.pptx
object oriented programming part inheritance.pptxobject oriented programming part inheritance.pptx
object oriented programming part inheritance.pptx
 
ETHICAL ISSUES RELATED TO DATA COLLECTION.pptx
ETHICAL ISSUES RELATED TO DATA COLLECTION.pptxETHICAL ISSUES RELATED TO DATA COLLECTION.pptx
ETHICAL ISSUES RELATED TO DATA COLLECTION.pptx
 
Scientific Conduct (Part-1)on research.pptx
Scientific Conduct (Part-1)on research.pptxScientific Conduct (Part-1)on research.pptx
Scientific Conduct (Part-1)on research.pptx
 
INTRODUCTION on hardware and software.pptx
INTRODUCTION on hardware and software.pptxINTRODUCTION on hardware and software.pptx
INTRODUCTION on hardware and software.pptx
 
INTRODUCTION ON ANOVA TECHNIQUE ONE .pptx
INTRODUCTION ON ANOVA TECHNIQUE ONE .pptxINTRODUCTION ON ANOVA TECHNIQUE ONE .pptx
INTRODUCTION ON ANOVA TECHNIQUE ONE .pptx
 

Recently uploaded

Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf203318pmpc
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...soginsider
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projectssmsksolar
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 

Recently uploaded (20)

Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 

INTRODUCTIONTO BASICS OF PROGRAMMING.pptx

  • 3. INTRODUCTION • A COMPUTER is an electronic device that accept data and process data arithmetically and logically, produce information. • It is divided into two main categories Hardware Software
  • 4. HARDWARE Hardware is the physical aspect of computers, telecommunications and other devices. It includes not only the computer but also cables, connectors, power supply units, and peripheral devices such as keyboards, mouse, audio speakers and printers.
  • 5. INTERNAL HARDWARE • Internal hardware is also called components .It includes CPU Motherboard RAM ROM
  • 6. CENTRAL PROCESSING UNIT It is brain of computer. Most of calculations take place here Two components of CPU are: Arithmetic logic unit Control unit
  • 7. Motherboard • It is the main circuit board of microcomputer, • It contains the CPU, Memory, expansion slots and all the controllers required to control standard hardware device
  • 8. RANDOM ACCESS MEMORY(RAM) • Random access memory (RAM) is the hardware in a computing device that provides temporary storage for the operating system (OS), software programs and any other data. • RAM is often referred to as a computer's main memory. • It is also referred to as primary memory.
  • 9. Cont.. • RAM is faster to read and write than secondary storage.
  • 10. Cont.. • The term random access or direct access as it applies to RAM is based on the facts that any storage location can be accessed directly via its memory address and that access can be random. • RAM is physically small and stored in microchips which plug into slots in computer’s motherboard.
  • 11. Cont.. • RAM are non-volatile. They don't require constant power and won't lose data if the power is turned off. • Random access memory can hold only a limited amount of data, much less than secondary storage such as an SSD or HDD
  • 12. • If RAM fills up and additional data is needed, the system must free up space in RAM for the new data. This process might involve moving data temporarily to secondary storage, often by swapping or paging.
  • 13. Types of RAM • RAM comes in two primary forms: DRAM SRAM • DRAM DRAM is typically used for a computer's main memory. needs continuous power to retain stored data. DRAM is cheaper than SRAM and offers a higher density, but it produces more heat, consumes more power and is not as fast as SRAM.
  • 14. SRAM • This type of RAM is typically used for the system's high speed cache, such as L1 or L2. Like DRAM, SRAM also needs constant power to hold on to data, but it doesn't need to be continually refreshed the way DRAM does. SRAM is more expensive than DRAM and has a lower density, but it produces less heat, consumes less power and offers better performance.
  • 15. RAM vs. virtual memory RAM vs. virtual memory
  • 16. RAM vs. flash memory
  • 18.
  • 19.
  • 20. Procedure Oriented Programming • COBOL, FORTRAN & C are known as procedure oriented programming. • In POP problem is viewed as sequence of things like reading, calculating etc • A number of functions are written to accomplish these task.
  • 21. • Emphasis is on doing things(algorithms). • Large programs are divided into smaller programs known as functions. • Most of the functions share global data. • Data move openly around the system from function to function. • Functions transform data from one form to another. • Employs top down down approach in program design
  • 22.
  • 23. OOP • Emphasis is on data rather than procedure. • Programs are divided into objects • Functions that operate on data of an object are tied together in data structure. • Data is hidden and cannot be accessed by external functions. • Objects may communicate with each other through functions. • New data and functions can be easily added whenever necessary. • Follows bottom up approach.
  • 24.
  • 25. Introduction to C++ • C++ is one of the most popular programming languages. It used to create high- performance applications like YouTube, Google, MySql,Spotify. • C++ was developed by Bjarne Stroustup, an extension to C language. • C++ invented in 1979 but its first version released to public at 1983. • C++ is an object-oriented programming language
  • 26. Elements of OOPs • Object • Classes • Encapsulation • Data Abstraction • Inheritance • Polymorphism • Dynamic Binding • Message Passing
  • 28. Objects • Oops uses objects as its fundamental building blocks. • Objects are the basic run time entities • Object is associated with data and function which define meaningful operations in that object. • Object is a real world entity • Object is an instance of a particular class. • Object take up space in memory and have associated address.
  • 31. Class
  • 32. Classes • It is similar to structure in C • Classes is a user defined data type. • It holds own data members and member function. • Classes can be accessed and used only by instance of that class. • It is basically blueprint for object.
  • 33. Encapsulation • The wrapping up of data and function into a single unit called class and keeps them safe from external interference and misuse. • It helps in hiding implementational details. • Access specifiers like private, public ,protected are used to control visibility of class members.
  • 34. Abstraction • It is most essential feature of OOPs. • Abstraction means displaying only essential information and hiding details. • It enables code reuse by avoiding code duplication. • It enhances software security by making only necessary information available to the users.
  • 35. Inheritance • The capability of a class to derive properties and characterstic from another class is called inheritance. • Sub Class: The class that inherits properties from another class is called Sub Class or Derived Class. • Super Class : The class whose properties are inherited by a sub- class is called Base Class or Superclass. • Inheritance support the concept of “Reusability”.
  • 37.
  • 38. Difference between C& C++ C 1. C is a POP 2. Top down Approach is used in programming 3. In C, no concept of Polymorphism 4. Operator overloading is not possible. 5. C++ 1 C++ is an OOP 2 Bottom up approach is used here. 3 In C++ concept of Polymorphism is important. 4. Operator overloading is not possible