For: Bihar STET Computer Science & BPSC Teacher Computer Science
1. What is E-Commerce?
Electronic Commerce (E-Commerce) refers to buying, selling, exchanging products or services and conducting business transactions through electronic networks, particularly the Internet.
Examples include:
- Online shopping
- Online banking
- Online ticket booking
- Online auctions
- Digital payments
- Online marketplaces
- Electronic supply-chain management
Basic E-Commerce Process
Buyer → Internet → E-Commerce Platform → Payment System → Seller → Delivery
2. Characteristics of E-Commerce
Important characteristics include:
- Global reach
- 24×7 availability
- Electronic transactions
- Reduced transaction costs
- Faster communication
- Wider customer reach
- Digital payment options
- Automated business processes
3. E-Commerce vs Traditional Commerce
| E-Commerce | Traditional Commerce |
|---|---|
| Conducted electronically | Mainly physical transactions |
| Global reach | Usually geographically limited |
| 24×7 availability possible | Generally restricted by business hours |
| Digital payment | Cash/card/manual payment may be used |
| Online catalog | Physical store/catalog |
| Lower physical infrastructure requirements | Requires physical infrastructure |
4. E-Commerce Framework
An E-Commerce framework consists of several components that work together to support electronic business transactions.
Major Components
- Network infrastructure
- Hardware
- Software
- Databases
- Web servers
- Payment systems
- Security mechanisms
- Electronic communication
- Legal and regulatory framework
Simplified Framework
Internet → Web Server → Application Server → Database → Payment Gateway
5. E-Commerce Business Models
B2B – Business to Business
Transactions between businesses.
Example: Manufacturer selling products to a wholesaler through an online platform.
B2C – Business to Consumer
A business sells directly to individual consumers.
Example: Online retail store selling a laptop to a customer.
C2C – Consumer to Consumer
Transactions between consumers.
Example: A person selling a used product to another person through an online marketplace.
C2B – Consumer to Business
An individual offers products/services to a business.
Example: A freelancer providing design services to a company.
B2G – Business to Government
Businesses provide products/services to government organizations electronically.
G2C – Government to Citizen
Government provides services electronically to citizens.
Examples:
- Online certificates
- Tax services
- Online applications
- Government portals
6. Electronic Data Interchange (EDI)
EDI = Electronic Data Interchange
EDI is the structured electronic exchange of business documents between organizations using standardized formats.
Examples of EDI documents include:
- Purchase orders
- Invoices
- Shipping notices
- Payment information
Traditional Process
Paper document → Manual entry → Processing
EDI Process
Computer → Standardized electronic message → Computer
Advantages of EDI
- Faster transactions
- Reduced paperwork
- Lower data-entry errors
- Reduced processing cost
- Improved efficiency
- Better supply-chain coordination
7. EDI Standards
EDI requires standardized formats so that different organizations' computer systems can understand exchanged information.
Important standards include:
ANSI ASC X12
Widely used EDI standard, particularly in North America.
EDIFACT
Electronic Data Interchange for Administration, Commerce and Transport
It is an international EDI standard associated with the United Nations.
Exam Tip:
EDI → Electronic exchange of structured business documents.
8. Electronic Payment Systems
Electronic payment systems allow customers to make payments electronically.
Common methods include:
- Credit cards
- Debit cards
- Internet banking
- UPI
- Mobile wallets
- Electronic funds transfer
- Payment gateways
9. Payment Gateway
A payment gateway is a technology/service that facilitates the secure transmission of payment information between a customer, merchant and payment-processing system.
Simplified process:
Customer → Merchant → Payment Gateway → Bank/Payment Network → Result
Examples of payment gateway providers include services such as Razorpay, PayU and Stripe.
10. Credit Card Payment
A typical online card transaction involves:
- Customer enters payment information.
- Merchant sends transaction information for processing.
- Payment information is authenticated/authorized.
- Issuer/payment network processes the transaction.
- Merchant receives approval or decline.
11. Digital Wallet
A digital wallet allows users to store payment-related information and/or funds electronically and make digital transactions.
Examples include:
- Mobile wallets
- Online wallets
- App-based payment wallets
12. UPI
UPI = Unified Payments Interface
UPI enables users to make real-time bank-account-based digital payments through supported applications and participating banks.
It is widely used for:
- Person-to-person payments
- Merchant payments
- Online purchases
- Bill payments
13. E-Commerce Security
Security is one of the most important requirements of E-Commerce.
Major security objectives include:
Confidentiality
Only authorized parties should be able to access information.
Integrity
Information should not be altered without authorization.
Authentication
Verifies the identity of a user or system.
Authorization
Determines what an authenticated entity is allowed to access.
Non-Repudiation
Provides evidence so that a party cannot easily deny having performed a transaction or communication.
14. Encryption
Encryption converts readable data (plaintext) into an encoded form (ciphertext).
Plaintext ↓ Encryption ↓ Ciphertext ↓ Decryption ↓ Plaintext
15. Symmetric Encryption
In symmetric encryption, the same secret key is used for encryption and decryption.
Plaintext ↓ Secret Key ↓ Encryption ↓ Ciphertext ↓ Same Secret Key ↓ Decryption
Example:
AES
Advantage
Fast and efficient for encrypting large amounts of data.
Challenge
The secret key must be securely shared.
16. Asymmetric Encryption
Asymmetric cryptography uses a key pair:
- Public key
- Private key
The keys are mathematically related but serve different roles.
Examples:
- RSA
- ECC
Important concept
A public key can be shared openly, while the private key should be kept secret.
17. Digital Signature
A digital signature is a cryptographic mechanism used to provide assurance about:
- Authenticity
- Integrity
- Non-repudiation
A simplified signing process involves creating a hash of the message and using the signer's private key to create the signature.
The recipient can use the corresponding public key to verify it.
Exam Tip:
Digital Signature → Authentication + Integrity + Non-Repudiation
18. Hashing
A cryptographic hash function converts data into a fixed-length digest.
Examples include:
- SHA-256
- SHA-3
A small change in input should generally produce a significantly different hash.
Hashing is commonly used for:
- Integrity verification
- Password protection systems
- Digital signatures
- Data verification
19. SSL/TLS
TLS = Transport Layer Security
TLS provides secure communication over networks.
It helps provide:
- Encryption
- Authentication
- Data integrity
SSL is the older predecessor of TLS and is now considered obsolete.
HTTPS
HTTPS = HTTP Secure
HTTPS uses TLS to protect HTTP communication.
20. Common E-Commerce Security Threats
Important threats include:
Phishing
Attackers attempt to trick users into revealing sensitive information.
Malware
Malicious software designed to damage systems, steal information or perform unauthorized actions.
SQL Injection
An attacker attempts to manipulate database queries through improperly handled input.
Cross-Site Scripting (XSS)
Malicious scripts are injected into web pages viewed by users.
Man-in-the-Middle Attack
An attacker intercepts or potentially alters communication between parties.
Password Attacks
Attackers attempt to obtain or guess authentication credentials.
21. E-Commerce Applications
E-Commerce is used in:
- Online retail
- Online banking
- Online ticket booking
- E-learning
- Digital government services
- Online auctions
- Online insurance
- Online travel services
- Electronic supply-chain management
E-Commerce MCQs
Q1. What does E-Commerce stand for?
A. Electronic Commerce
B. Economic Commerce
C. Enterprise Communication
D. Electronic Communication
Answer: A. Electronic Commerce
Q2. Which model represents a transaction between a business and an individual consumer?
A. B2B
B. B2C
C. C2C
D. C2B
Answer: B. B2C
Q3. B2B stands for:
A. Business to Business
B. Business to Buyer
C. Buyer to Business
D. Business to Bank
Answer: A. Business to Business
Q4. A consumer selling a used product to another consumer through an online marketplace is an example of:
A. B2B
B. B2C
C. C2C
D. C2B
Answer: C. C2C
Q5. What is EDI?
A. Electronic Data Interchange
B. Electronic Database Interface
C. Enterprise Data Internet
D. Electronic Digital Information
Answer: A. Electronic Data Interchange
Q6. EDI is primarily used for:
A. Electronic exchange of structured business documents
B. Creating computer games
C. Designing websites
D. Editing videos
Answer: A. Electronic exchange of structured business documents
Q7. Which of the following is an example of an EDI document?
A. Purchase order
B. Wallpaper
C. Video
D. Music file
Answer: A. Purchase order
Q8. EDIFACT is associated with:
A. Image compression
B. Electronic Data Interchange
C. Operating systems
D. Computer graphics
Answer: B. Electronic Data Interchange
Q9. Which technology facilitates secure transmission of payment information during an online transaction?
A. Payment gateway
B. Compiler
C. Printer driver
D. File manager
Answer: A. Payment gateway
Q10. Which of the following is an electronic payment method?
A. UPI
B. Paper cheque only
C. Postal letter
D. Printed invoice only
Answer: A. UPI
Q11. UPI stands for:
A. Unified Payment Interface
B. Unified Payments Interface
C. Universal Payment Internet
D. User Payment Interface
Answer: B. Unified Payments Interface
Q12. Which security property ensures that unauthorized users cannot read protected information?
A. Integrity
B. Confidentiality
C. Availability
D. Redundancy
Answer: B. Confidentiality
Q13. Which security property ensures that data has not been improperly modified?
A. Integrity
B. Confidentiality
C. Authentication
D. Availability
Answer: A. Integrity
Q14. Authentication is used to:
A. Verify identity
B. Compress data
C. Delete records
D. Increase storage
Answer: A. Verify identity
Q15. Authorization determines:
A. Identity of the user
B. Access permissions of an authenticated entity
C. Encryption algorithm only
D. Network speed
Answer: B. Access permissions of an authenticated entity
Q16. In symmetric encryption:
A. Two unrelated keys are used
B. The same secret key is used for encryption and decryption
C. No key is required
D. Only a public key is used
Answer: B. The same secret key is used for encryption and decryption
Q17. Which of the following is a symmetric encryption algorithm?
A. AES
B. RSA
C. ECC
D. DSA
Answer: A. AES
Q18. Asymmetric cryptography uses:
A. Only one secret key
B. Public and private keys
C. No keys
D. Only passwords
Answer: B. Public and private keys
Q19. Which of the following is an asymmetric cryptographic algorithm?
A. AES
B. RSA
C. DES
D. 3DES
Answer: B. RSA
Q20. A digital signature is primarily used to provide:
A. Authentication and integrity
B. Video compression
C. Increased bandwidth
D. Data storage
Answer: A. Authentication and integrity
Q21. Which technique converts data into a fixed-length digest?
A. Hashing
B. Routing
C. Switching
D. Formatting
Answer: A. Hashing
Q22. Which of the following is a cryptographic hash algorithm?
A. SHA-256
B. HTTP
C. FTP
D. SMTP
Answer: A. SHA-256
Q23. HTTPS primarily protects web communication using:
A. FTP
B. TLS
C. DNS
D. DHCP
Answer: B. TLS
Q24. Which attack attempts to inject malicious SQL statements through application input?
A. Phishing
B. SQL Injection
C. DDoS
D. Sniffing only
Answer: B. SQL Injection
Q25. Which attack attempts to trick a user into revealing sensitive information through fraudulent communication?
A. Phishing
B. Hashing
C. Encryption
D. Compression
Answer: A. Phishing