BCA / B.Tech 12 min read

Functional and Non-Functional Requirements in Hindi

RK

लेखक Ratan Kumawat · संस्थापक, NotesMedia

प्रकाशित:

त्वरित सारांश और मुख्य बिंदु

  • • विषय फोकस: Software Engineering Notes in Hindi | सॉफ्टवेयर इंजीनियरिंग (BCA / B.Tech Syllabus)
  • • मुख्य विषय: Functional and Non-Functional Requirements in Hindi - General Topics
  • • अवलोकन: Quick Answer: Software engineering में Functional Requirements बताते हैं कि software को क्या काम करना है (what the system should do), जैसे user login, ...
  • • मुख्य अवधारणाएं: Functional non functional requirements, Use cases performance security Hindi, Usability traceability requirements,Functional non functional requirements, Use cases performance security, Usability traceability requirements
Quick Answer: Software engineering में Functional Requirements बताते हैं कि software को क्या काम करना है (what the system should do), जैसे user login, data save करना या bill generate करना। इसके विपरीत, Non-Functional Requirements बताते हैं कि software को कैसा काम करना है (how the system should perform), जैसे software की speed, security, 24/7 availability और scalability। आसान शब्दों में, functional requirements सीधे features तय करते हैं, जबकि non-functional requirements quality और user experience तय करते हैं।

Requirements in Software Engineering क्या हैं?

जब भी कोई client किसी software company से नया software बनवाता है, तो सबसे पहले वह बताता है कि उसे software में क्या-क्या चाहिए। Client और user की इन सभी ज़रूरतों, नियमों और शर्तों को software engineering में Requirements कहते हैं।

Advertisement

SDLC in Hindi के सबसे पहले phase यानी Requirement Gathering and Analysis में business analyst और developers users से मिलकर requirements इकट्ठा करते हैं। इसके बाद पूरी Requirements Engineering process चलाई जाती है और आखिर में एक official document तैयार होता है, जिसे SRS (Software Requirement Specification) कहते हैं।

IEEE standard के मुताबिक किसी भी software की requirements को मुख्य रूप से दो categories में बाँटा जाता है:

  1. Functional Requirements: System के functions, features और operations।
  2. Non-Functional Requirements: System की quality, performance और technical constraints।
+-------------------------------------------------------------+
|             Software System Requirements (SRS)              |
+-------------------------------------------------------------+
                               |
        +----------------------+----------------------+
        |                                             |
        v                                             v
+-------------------------------+   +-------------------------------+
|     Functional Requirements   |   |   Non-Functional Requirements |
|     (What the system does)    |   |    (How well the system does) |
+-------------------------------+   +-------------------------------+
| * User Authentication / Login |   | * Performance (< 2s load time)|
| * Data Input and Validation   |   | * Security (AES-256, HTTPS)   |
| * Transaction Processing      |   | * Scalability (10k users)     |
| * Report / Bill Generation    |   | * Availability (99.9% uptime) |
| * Database CRUD Operations    |   | * Usability & Portability     |
+-------------------------------+   +-------------------------------+

Functional Requirements in Software Engineering क्या हैं?

Functional word का सीधा मतलब function यानी कार्य से है। Functional requirements वे requirements होती हैं जो बताती हैं कि software को run होने पर कौन-कौन से specific tasks पूरे करने हैं।

यह सीधे system के business logic और behavior से जुड़ी होती हैं। अगर software में से कोई functional requirement छूट जाए, तो software वो काम ही नहीं कर पाएगा जिसके लिए उसे बनाया गया है।

Functional Requirements के मुख्य घटक (Key Components)

  • User Interface और Interaction: User screen पर क्या button दबाएगा और click करने पर screen पर क्या बदलाव होगा।
  • Input Data और Validation: System user से क्या data लेगा (जैसे mobile number, email, roll number) और check करेगा कि data सही format में है या नहीं।
  • Business Logic और Processing: Input data पर कौन-सा formula या rule लागू होगा (जैसे cart value पर 10% discount लगाना या bank interest जोड़ना)।
  • Output Generation: Processing के बाद screen पर क्या result दिखेगा, PDF slip कैसे download होगी या SMS/email alert कैसे जाएगा।
  • Database Transactions: Database में नया record add करना, update करना, search करना या delete करना (CRUD operations)।
  • Error Handling: गलत password डालने या server down होने पर user को screen पर क्या error alert दिखेगा।

Functional Requirements के Real Examples

मान लीजिए आप college के लिए एक Student Management System बना रहे हैं। उसकी functional requirements ये होंगी:

  • Admin नए student का registration कर सके और roll number allot कर सके।
  • Student अपने roll number और password से portal में login कर सके।
  • Faculty students के marks enter कर सके और system total percentage खुद calculate करे।
  • Exam fee pay होने के बाद system automatic fee receipt generate करके download का option दे।
  • Search bar में name या enrollment number type करने पर student का पूरा profile open हो जाए।

Non-Functional Requirements in Software Engineering क्या हैं?

Non-functional requirements वे requirements होती हैं जो बताती हैं कि system अपने functions को कितनी अच्छी quality, speed और security के साथ पूरा करेगा। इन्हें Quality Attributes या System Constraints भी कहा जाता है।

यह "what system does" के बजाय "how the system performs" पर focus करती हैं। अगर non-functional requirements पूरी न हों, तो software functions तो करेगा लेकिन users उसे use करना छोड़ देंगे क्योंकि software slow होगा, crash होगा या secure नहीं रहेगा।

Non-Functional Requirements के मुख्य प्रकार (Types)

Software engineering में standard non-functional requirements को नीचे दी गई categories में समझा जाता है:

  • Performance: System का speed, throughput और response time कितना है। जैसे "Search button click करने के बाद result 2 seconds के अंदर load होना चाहिए।"
  • Security: Data safe रखने के नियम। जैसे "User password database में plain text में नहीं, बल्कि bcrypt hash algorithm से save होगा।"
  • Scalability: Future में users बढ़ने पर load संभालने की क्षमता। जैसे "System एक साथ 10,000 active concurrent users का traffic बिना crash हुए संभाल सके।"
  • Availability और Reliability: Software कितनी देर बिना रुकावट काम करता है। जैसे "System की availability 99.9% होनी चाहिए (पूरे साल में 8.7 घंटे से ज़्यादा down time न हो)।"
  • Usability: Software चलाने में कितना आसान है। नया user बिना किसी training के 5 minutes में form fill कर सके।
  • Maintainability: Code में bug fix करना या नया feature जोड़ना कितना आसान है। Modular architecture use किया जाए ताकि एक module बदलने से पूरा system न बिगड़े।
  • Portability: Software किन platforms और browsers पर चलेगा। जैसे web portal Chrome, Firefox, Edge, Safari और mobile browsers सब पर smoothly चले।

Functional vs Non-Functional Requirements (तुलना)

Exam में 5 से 10 marks का सीधा question पूछा जाता है कि functional और non-functional requirements में क्या अंतर है। आप इस comparison table को याद रखें:

Point of Difference Functional Requirements Non-Functional Requirements
मूल अर्थ (Meaning) Software क्या काम करेगा (What system does)। Software कैसे काम करेगा (How system performs)।
मुख्य Focus User requirements और business features पर। System quality, speed और technical properties पर।
तय कौन करता है? End users और business clients तय करते हैं। Software architects, technical leads और developers तय करते हैं।
मापने का तरीका (Measurement) Yes या No (Pass या Fail) के रूप में (Feature चला या नहीं चला)। Quantity और numbers के रूप में (Seconds, percentage, TPS)।
Testing का तरीका Functional Testing, Unit Testing, System Testing से check होती हैं। Performance Testing, Load Testing, Stress Testing, Security Testing से check होती हैं।
फेल होने पर क्या असर? Feature काम नहीं करेगा, user का काम रुक जाएगा। Software धीमा चलेगा, crash हो सकता है या hack हो सकता है।
Example Login button दबाने पर dashboard open होना। Dashboard click करने पर 1.5 seconds में open होना।

Non-Functional Requirements के Metrics और Measurement

Non-functional requirements लिखते समय कभी भी गोल-मोल बातें नहीं लिखी जातीं, जैसे "Software fast होना चाहिए" या "Software user-friendly होना चाहिए"। इन्हें हमेशा ठोस measurement units (metrics) में लिखा जाता है ताकि software tester इन्हें lab में verify कर सके:

Quality Property Measurement Metric (Unit) सही Specification का Example
Speed / Response Time Seconds / Milliseconds Payment click करने के बाद confirmation screen 2 seconds के अंदर load होनी चाहिए।
Throughput Transactions Per Second (TPS) System एक second में कम से कम 500 financial transactions process कर सके।
Availability Uptime Percentage (%) System का uptime 99.95% होना चाहिए।
Reliability Mean Time Between Failures (MTBF) System लगातार 720 hours (30 दिन) बिना crash हुए चलना चाहिए।
Security Encryption Standard / Failed Attempts Password storage के लिए SHA-256 hash और लगातार 3 wrong attempts पर account 15 minutes के लिए lock होना चाहिए।
Storage / Capacity Gigabytes (GB) / Terabytes (TB) Database 50 लाख users का data 5 years तक बिना performance loss के store कर सके।
Advertisement

Worked Example: Banking Application की Requirements

Concept को बिल्कुल clear समझने के लिए मान लीजिए कि एक Bank के लिए Mobile Banking App design किया जा रहा है। Requirements gathering के दौरान उसकी दोनों तरह की requirements कैसे लिखी जाएँगी, नीचे देखिए:

Functional Requirements (बैंकिंग ऐप):

  1. User Registration & Login: User account number और OTP डालकर register कर सके। Login के लिए 6-digit MPIN या fingerprint biometric support हो।
  2. Fund Transfer (IMPS/NEFT): User beneficiary account number और IFSC code डालकर पैसे भेज सके। Money debit होने पर sender और receiver दोनों के balance update हों।
  3. Account Statement Download: User date filter (जैसे 1 April से 30 September) लगाकर PDF format में bank statement download कर सके।
  4. Bill Payment: User electricity bill, water bill और mobile recharge directly app से pay कर सके।
  5. Notification Alert: जब भी account से 500 रुपये से ज़्यादा का transaction हो, user के registered mobile पर instant SMS alert जाए।

Non-Functional Requirements (बैंकिंग ऐप):

  1. Response Time (Performance): Balance check करने का request 1 second के अंदर screen पर display होना चाहिए।
  2. Encryption (Security): Mobile app और bank server के बीच सारा network traffic TLS 1.3 protocol और 256-bit encryption से secure होना चाहिए।
  3. Concurrency (Scalability): Salary day (महीने की 1 तारीख) पर app एक साथ 1,00,000 active users का load बिना hang हुए handle कर सके।
  4. Data Backup (Disaster Recovery): Bank database का automated live mirror backup secondary data center में sync होना चाहिए, ताकि main server crash होने पर 5 minutes में recovery हो सके।
  5. Session Timeout: अगर user app open करके 2 minutes तक कोई activity न करे, तो session automatic expire हो जाए और logout हो जाए।

यहाँ आप साफ देख सकते हैं कि अगर developer सिर्फ functional requirements पूरी कर दे (पैसे transfer हो रहे हैं), लेकिन non-functional requirements छोड़ दे (पैसे transfer होने में 5 मिनट लग रहे हैं और password hack हो रहा है), तो वो banking app market में पूरी तरह fail हो जाएगी।

Exam में कैसे लिखें (5 Marks Ready Answer)

University exam (जैसे MDSU, RTU, RU) में 5 marks का question आने पर point-to-point इस तरह लिखें:

  1. Definition (Functional): Functional requirements software के services, features और operations को define करती हैं। ये बताती हैं कि system को "क्या करना है"।
  2. Input-Process-Output: ये user से लिए गए input, business calculation और screen पर आने वाले output का rule तय करती हैं। (Example: Login validation, bill calculate करना)।
  3. Definition (Non-Functional): Non-functional requirements system की overall quality, performance, constraints और standards को define करती हैं। ये बताती हैं कि system को "कैसा काम करना है"।
  4. Quality Parameters: इसमें performance, security, availability, portability, scalability और usability शामिल हैं। (Example: 2 seconds load time, 99.9% uptime)।
  5. Testing Difference: Functional requirements को unit testing और system testing से check किया जाता है। Non-functional को load testing, stress testing और security testing से check किया जाता है।
  6. SRS Role: SRS document के Section 3 में functional requirements और Section 4/5 में non-functional requirements detail में लिखी जाती हैं।
  7. Short Summary Formula: Functional = Features/Behaviors, Non-Functional = Quality/Performance Constraints.

Common Mistakes जो Students Exam में करते हैं

  • Non-functional requirement को बिना metric के लिखना: Exam में "system तेज़ होना चाहिए" या "website safe होनी चाहिए" लिखना गलत माना जाता है। सही तरीका है: "Response time < 2 seconds" या "Data encrypted using AES-256"।
  • Security को Functional Requirement समझना: Password field होना functional requirement है, लेकिन उस password का data transit में encrypt होना और brute-force attack से secure रहना non-functional requirement है।
  • Testing के फ़र्क को भूल जाना: Functional testing (Black Box and White Box Testing in Hindi) features की जांच करती है, जबकि non-functional requirements के लिए specialized load testing tools (जैसे Apache JMeter) इस्तेमाल होते हैं।
  • दोनों को independent मानना: Students सोचते हैं दोनों अलग दुनिया हैं। सच यह है कि हर functional feature के पीछे एक non-functional constraint लगा होता है। जैसे login एक feature है, और वो 1 second में secure connection पर खुलना उसका non-functional constraint है।

Exam के लिए Important Questions

Short Questions (2–3 marks)

  1. Functional Requirement क्या है? एक practical example दीजिए। (Software का feature, जैसे OTP verify करना)
  2. Non-Functional Requirement क्या है? इसके दो उदाहरण लिखिए। (Software की quality, जैसे response time 2s और AES-256 encryption)
  3. Software Engineering में Availability 99.9% का क्या मतलब है? (पूरे वर्ष में software का कुल down time 8.76 hours से कम होना)
  4. Functional और Non-Functional testing में क्या अंतर है? (Functional में feature का logic check होता है; Non-functional में speed, load और security check होती है)

Long Questions (5–10 marks)

  1. Functional और Non-Functional requirements को detail में समझाइए। Software development में दोनों का संतुलन क्यों ज़रूरी है?
  2. E-commerce website (जैसे Amazon/Flipkart) का case study लेते हुए 5 functional और 5 non-functional requirements की list बनाइए।
  3. Non-Functional requirements के मुख्य types कौन-से हैं? Metrics table बनाकर समझाइए कि इन्हें कैसे measure किया जाता है।

FAQs

Functional और Non-Functional requirements का Hindi meaning क्या है?

Functional requirements का Hindi meaning "कार्यात्मक आवश्यकताएँ" होता है, यानी system को कौन-से काम पूरे करने हैं। Non-functional requirements का Hindi meaning "गैर-कार्यात्मक आवश्यकताएँ" या "गुणवत्ता आवश्यकताएँ" होता है, यानी system काम करते समय कितना तेज़, सुरक्षित और stable रहेगा।

क्या Non-Functional requirements के बिना software चल सकता है?

हाँ, initial level पर software चल तो सकता है, लेकिन real-world environment में fail हो जाएगा। अगर app का payment button काम करता है (functional OK) पर page load होने में 1 minute लगता है या data leak हो जाता है (non-functional FAIL), तो user तुरंत app uninstall कर देगा।

SRS document में इन requirements को कौन लिखता है?

Software development team का Business Analyst (BA) और System Analyst client से meeting करके SRS document में functional requirements लिखते हैं, जबकि Software Architect technical constraints और non-functional requirements तय करता है।

Non-Functional requirements को verify कैसे किया जाता है?

Non-functional requirements को verify करने के लिए automated tools का use होता है। जैसे speed और concurrency check करने के लिए LoadRunner या JMeter, security check करने के लिए vulnerability scanners, और code maintainability check करने के लिए SonarQube tool use होता है।

अक्सर पूछे जाने वाले प्रश्न (FAQs)

Quick Answer: Software engineering में Functional Requirements बताते हैं कि software को क्या काम करना है (what the system should do), जैसे user login, data save करना या bill generate करना।
Software Engineering Notes in Hindi | सॉफ्टवेयर इंजीनियरिंग के पाठ्यक्रम में Functional and Non-Functional Requirements in Hindi एक महत्वपूर्ण अध्याय है। यह मुख्य सिद्धांतों, परीक्षा प्रश्नों और सूत्रों को समझने के लिए अत्यधिक आवश्यक है।
हाँ, NotesMedia पर आपको Functional and Non-Functional Requirements in Hindi के महत्वपूर्ण प्रश्नोत्तर, हल किए गए उदाहरण और नोट्स बिल्कुल मुफ्त मिलेंगे। अधिक अभ्यास के लिए आप हमारा ऐप भी डाउनलोड कर सकते हैं।
Advertisement