Computer Programming, Patient Safety & Cyber Security – Complete Notes (English + Urdu)
25. COMPUTER PROGRAMMING: FUNDAMENTAL STEPS
Definition
Programming is the process of designing, coding, testing, and debugging software to perform specific tasks.
اردو:
پروگرامنگ سافٹ ویئر کو ڈیزائن کرنے، کوڈنگ کرنے، ٹیسٹنگ کرنے اور ڈی بگنگ کرنے کا عمل ہے تاکہ وہ مخصوص افعال انجام دے سکے۔
A. Fundamental Steps in Programming
1. Define the Problem
Clearly identify the problem and determine the required input, processing, and output.
اردو:
مسئلے کی تعریف: مسئلے اور مطلوبہ ان پٹ، پروسیسنگ، اور آؤٹ پٹ کی ضروریات کی واضح شناخت کریں۔
2. Design the Solution
Plan the system logic, divide the problem into smaller tasks, and define data structures and algorithms.
اردو:
حل کا ڈیزائن: سسٹم کی منطق کی منصوبہ بندی کریں، مسئلے کو چھوٹے حصوں میں تقسیم کریں، اور ڈیٹا اسٹرکچر اور الگورتھم کی وضاحت کریں۔
3. Choose a Programming Language
Select a suitable programming language such as Python, Java, or C++ based on the project requirements and platform.
اردو:
پروگرامنگ لینگویج کا انتخاب: مسئلے اور پلیٹ فارم کے مطابق موزوں زبان منتخب کریں جیسے Python، Java، یا C++۔
4. Write Code
Convert the design into actual code while following coding standards to ensure clarity and readability.
اردو:
کوڈ لکھیں: ڈیزائن کو اصل کوڈ میں تبدیل کریں اور بہتر پڑھنے کی صلاحیت کے لیے معیاری طریقوں کی پیروی کریں۔
5. Debugging & Testing
Test the code for errors (bugs) using debugging tools. Run the program with various inputs to ensure the correct output.
اردو:
ڈی بگنگ اور ٹیسٹنگ: ٹولز کا استعمال کرتے ہوئے کوڈ کو غلطیوں کے لیے چیک کریں اور مختلف ان پٹس کے ساتھ پروگرام کو چلائیں۔
6. Documentation
Add comments, meaningful variable names, and create user documentation.
اردو:
ڈاکومنٹیشن: کوڈ میں تبصرے شامل کریں، بامعنی نام استعمال کریں، اور صارف کے لیے دستاویزات تیار کریں۔
7. Optimization & Version Control
Improve performance (speed and memory usage) and manage code changes using version control systems like Git.
اردو:
آپٹیمائزیشن اور ورژن کنٹرول: بہتر کارکردگی کے لیے کوڈ کو بہتر بنائیں اور تبدیلیوں کو منظم کرنے کے لیے Git جیسے سسٹمز استعمال کریں۔
8. Security & Integration
Apply security practices such as input validation and ensure proper communication with external systems.
اردو:
سیکیورٹی اور انٹیگریشن: سیکیورٹی کے بہترین طریقے نافذ کریں اور بیرونی سسٹمز کے ساتھ ہموار انضمام کو یقینی بنائیں۔
9. Deployment, Monitoring & Maintenance
Deploy the program on the intended platform and monitor system performance continuously.
اردو:
تعیناتی، مانیٹرنگ اور دیکھ بھال: پروگرام کو مطلوبہ پلیٹ فارم پر تعینات کریں اور کارکردگی کی نگرانی کریں۔
10. Support, Improvement & Recovery
Provide user training, collect feedback, and implement backup and disaster recovery plans.
اردو:
سپورٹ، بہتری اور ریکوری: صارفین کو تربیت دیں، فیڈ بیک حاصل کریں اور بیک اپ اور ڈیزاسٹر ریکوری پلان تیار کریں۔
26. PROGRAMMING LANGUAGES AND SDLC
Role of Programming Languages in SDLC
Programming languages influence every stage of the System Development Life Cycle (SDLC).
اردو:
پروگرامنگ زبانیں System Development Life Cycle (SDLC) کے تمام مراحل کو متاثر کرتی ہیں۔
A. SDLC Phases and Language Selection Impact
Planning & Analysis
Language selection depends on team expertise, scalability needs, and long-term goals.
اردو:
منصوبہ بندی اور تجزیہ: زبان کا انتخاب ٹیم کی مہارت، سکیل ایبلٹی اور پراجیکٹ کے اہداف پر منحصر ہوتا ہے۔
Design & Implementation
The selected language determines system architecture and coding structure.
اردو:
ڈیزائن اور عمل درآمد: منتخب زبان سسٹم کے فن تعمیر اور کوڈنگ کے طریقے کا تعین کرتی ہے۔
Testing & Deployment
Programming language affects testing complexity and deployment requirements.
اردو:
ٹیسٹنگ اور تعیناتی: زبان ٹیسٹنگ کی پیچیدگی اور تعیناتی کے تقاضوں کو متاثر کرتی ہے۔
Maintenance
Languages with strong communities and readability (like Python and Java) simplify maintenance.
اردو:
دیکھ بھال: مضبوط کمیونٹی سپورٹ اور آسان پڑھنے والی زبانیں دیکھ بھال کو آسان بناتی ہیں۔
B. Common Programming Languages (Quick Reference)
Python
General-purpose language used for data science, automation, and web development.
اردو:
پائتھون: عام مقصد کی زبان جو ڈیٹا سائنس اور ویب ڈویلپمنٹ میں استعمال ہوتی ہے۔
Java
Popular for enterprise-level applications and cross-platform development.
اردو:
جاوا: بڑے اداروں کی ایپلی کیشنز کے لیے استعمال ہوتی ہے اور پورٹیبلٹی کے لیے مشہور ہے۔
JavaScript
Main language for frontend and backend web development.
اردو:
جاوا اسکرپٹ: ویب ڈویلپمنٹ کے لیے بنیادی زبان۔
C++ / C#
C++ is used for high-performance systems and games, while C# is common in Windows applications.
اردو:
C++ اعلی کارکردگی والے سسٹمز کے لیے جبکہ C# ونڈوز ایپلی کیشنز کے لیے استعمال ہوتی ہے۔
Swift / Ruby
Swift is used for Apple ecosystem, while Ruby is known for web development simplicity.
اردو:
Swift ایپل پلیٹ فارم کے لیے جبکہ Ruby ویب ڈویلپمنٹ کے لیے مشہور ہے۔
27. ERGONOMICS, HEALTH, AND PRIVACY ISSUES
27.1 Ergonomics (Science of Efficiency & Safety)
Definition
Ergonomics is the science of designing work environments for efficient and safe human interaction.
اردو:
ارگونومکس ایک ایسی سائنس ہے جو کام کی جگہ کو محفوظ اور مؤثر بنانے کے لیے ڈیزائن کرتی ہے۔
Poor ergonomics can lead to Repetitive Strain Injuries (RSIs) and musculoskeletal disorders.
اردو:
خراب ارگونومکس سے RSIs اور پٹھوں کے مسائل پیدا ہو سکتے ہیں۔
Key Ergonomic Focus Areas
Workspace Design
Proper chair height, desk layout, and monitor placement are essential.
اردو:
کام کی جگہ کا ڈیزائن: کرسی اور میز کی درست اونچائی اور مانیٹر کی مناسب جگہ۔
Posture & Movement
Adjustable desks allow switching between sitting and standing positions.
اردو:
پوزیشن اور حرکت: بیٹھنے اور کھڑے ہونے کے درمیان تبدیلی صحت کے لیے بہتر ہے۔
Reducing Eye Strain
Use proper lighting and correct monitor distance.
اردو:
آنکھوں کے تناؤ میں کمی: مناسب روشنی اور مانیٹر کی درست پوزیشن۔
27.2 Privacy Issues (IT & Health)
Core Privacy Concerns
Biometric Data
Use of fingerprints or facial recognition raises privacy concerns.
اردو:
بایومیٹرک ڈیٹا جیسے فنگر پرنٹ کے استعمال سے رازداری کے مسائل پیدا ہوتے ہیں۔
Monitoring & Surveillance
Employee monitoring systems must respect privacy rights.
اردو:
ملازمین کی نگرانی کو رازداری کے حقوق کے ساتھ متوازن ہونا چاہیے۔
Health Data Collection
Health devices and wearables collect sensitive data requiring protection.
اردو:
صحت کے آلات حساس معلومات جمع کرتے ہیں جن کی حفاظت ضروری ہے۔
Privacy in Healthcare Technology
Telehealth & Wearables
Increase accessibility but require strict data confidentiality.
اردو:
ٹیلی ہیلتھ اور پہننے کے قابل آلات رسائی بڑھاتے ہیں لیکن ڈیٹا کی حفاظت ضروری ہے۔
Data Security
Electronic Health Records (EHRs) require strong security systems.
اردو:
الیکٹرانک ہیلتھ ریکارڈز کے لیے مضبوط سیکیورٹی ضروری ہے۔
Consent & Ethics
Users must be informed about how their data is used.
اردو:
صارفین کو ڈیٹا کے استعمال کے بارے میں مکمل معلومات دی جانی چاہیے۔
Regulations
Important privacy laws include:
- GDPR (General Data Protection Regulation)
- HIPAA (Health Insurance Portability and Accountability Act)
اردو:
یہ قوانین ذاتی اور صحت کے ڈیٹا کے قانونی تحفظ کو یقینی بناتے ہیں۔
28. COMPUTER CRIMES AND THEFT
A. Major Computer Crimes
Identity Theft
Unauthorized access to personal information for financial gain.
اردو:
شناختی چوری: کسی کی ذاتی معلومات کا غیر قانونی استعمال۔
Financial Fraud
Illegal financial transactions such as online banking fraud.
اردو:
مالیاتی دھوکہ دہی: غیر قانونی مالی لین دین۔
Data Breaches
Unauthorized access to databases to steal sensitive information.
اردو:
ڈیٹا کی خلاف ورزی: حساس معلومات کی چوری۔
Ransomware Attacks
Malware encrypts files and demands payment for access.
اردو:
رینسوم ویئر حملے: فائلوں کو لاک کر کے رقم کا مطالبہ۔
Intellectual Property Theft
Unauthorized use of patents, copyrights, or trade secrets.
اردو:
دانشورانہ املاک کی چوری۔
B. Security Measures (Defense Strategies)
Firewalls & Antivirus
Block unauthorized access and detect malicious programs.
اردو:
فائر والز اور اینٹی وائرس غیر مجاز رسائی کو روکتے ہیں۔
Encryption
Converts sensitive data into unreadable code.
اردو:
انکرپشن حساس ڈیٹا کو محفوظ کوڈ میں تبدیل کرتی ہے۔
Multi-Factor Authentication (MFA)
Requires multiple verification methods.
اردو:
ملٹی فیکٹر تصدیق اضافی سیکیورٹی فراہم کرتی ہے۔
Regular Software Updates
Fix security vulnerabilities.
اردو:
باقاعدہ اپ ڈیٹس سیکیورٹی کمزوریوں کو ختم کرتی ہیں۔
Employee Training
Educating staff about phishing and cyber threats.
اردو:
ملازمین کو سائبر سیکیورٹی کے بارے میں تربیت دینا۔
Access Controls & Incident Response Plans
Restrict system access and prepare response strategies for attacks.
اردو:
رسائی کنٹرول اور ریسپانس پلان حملوں کے اثرات کو کم کرتے ہیں۔
Below are your Exam Preparation Materials based on the notes you provided.
Expected Exam Questions (Top 20)
Section A – Computer Programming
1. What is computer programming? Explain its definition.
2. Write the fundamental steps involved in the programming process.
3. Explain the importance of defining a problem before writing code.
4. What is debugging? Why is debugging important in programming?
5. What is documentation in programming and why is it necessary?
6. Explain optimization and version control in software development.
7. What is deployment in programming?
8. Why are backup and disaster recovery important in system development?
Section B – Programming Languages and SDLC
9. What is SDLC (System Development Life Cycle)?
10. How does the choice of programming language affect the SDLC process?
11. Explain the impact of programming languages during the planning and analysis phase.
12. Name four common programming languages and explain their main uses.
13. Why are languages like Python and Java considered easy to maintain?
Section C – Ergonomics and Health Issues
14. Define ergonomics and explain its importance in computer environments.
15. What health problems can occur due to poor ergonomics?
16. Explain the key ergonomic factors in workspace design.
Section D – Privacy Issues
17. What are the major privacy concerns related to healthcare technology?
18. Explain the importance of GDPR and HIPAA regulations.
Section E – Computer Crimes and Security
19. What are computer crimes? Describe three common examples.
20. Explain the major security measures used to prevent cyber attacks.
Short Exam Revision Notes (1-Page Summary)
1. Computer Programming
Programming is the process of designing, coding, testing, and maintaining software to perform specific tasks.
اردو:
پروگرامنگ سافٹ ویئر کو ڈیزائن کرنے، لکھنے اور ٹیسٹ کرنے کا عمل ہے تاکہ وہ مخصوص کام انجام دے سکے۔
Fundamental Steps
- Define the Problem – Identify input, process, and output.
- Design the Solution – Plan logic and algorithms.
- Choose Programming Language – Example: Python, Java.
- Write Code – Convert design into code.
- Debugging & Testing – Find and fix errors.
- Documentation – Write comments and manuals.
- Optimization & Version Control – Improve performance using tools like Git.
- Deployment & Maintenance – Run program and update regularly.
2. Programming Languages and SDLC
SDLC (System Development Life Cycle) is a structured process used to develop software systems.
SDLC Phases
- Planning
- Analysis
- Design
- Implementation
- Testing
- Deployment
- Maintenance
Programming language choice affects:
- System architecture
- Development speed
- Maintenance
- Deployment requirements
Common Programming Languages
Python – Data science, automation, web development
Java – Enterprise applications
JavaScript – Web development
C++ – High-performance systems
3. Ergonomics
Ergonomics is the science of designing workplaces for efficiency and safety.
Key Factors
- Proper chair and desk height
- Correct monitor position
- Comfortable keyboard and mouse usage
Health Risks
Poor ergonomics can cause:
- Repetitive Strain Injuries (RSIs)
- Back pain
- Eye strain
- Musculoskeletal disorders
4. Privacy Issues
Technology in healthcare creates privacy challenges.
Major Concerns
- Biometric data (fingerprints, face recognition)
- Employee monitoring systems
- Health data collection
Regulations
GDPR – European data protection law.
HIPAA – US law protecting medical information.
5. Computer Crimes
Computer crimes are illegal activities using computers or networks.
Common Types
Identity Theft – Stealing personal data for financial fraud.
Data Breaches – Unauthorized access to sensitive databases.
Ransomware – Malware that locks files and demands payment.
6. Security Measures
Organizations use several protections:
- Firewalls and Antivirus
- Encryption
- Multi-Factor Authentication (MFA)
- Regular Software Updates
- Employee Cybersecurity Training
These measures protect systems from cyber threats and data theft.



