3501 Programming Languages and Translators • Programming Errors एक प्रोग्राम बिना त्रुटि संदेश के चलता है, लेकिन गलत सूत्र के कारण गलत उत्तर देता है। यह कौन-सी त्रुटि है? A program runs without an error message but produces an incorrect answer because of a wrong formula. What type of error is this? A. सिंटैक्स त्रुटि Syntax error B. तार्किक त्रुटि Logical error C. लिंकिंग त्रुटि Linking error D. फाइल अनुमति त्रुटि File permission error उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: B Correct Answer: B तार्किक त्रुटि में प्रोग्राम का तर्क या गणना गलत होती है। प्रोग्राम चल सकता है, लेकिन परिणाम अपेक्षित नहीं होता। A logical error involves incorrect program logic or calculation. The program may run but produce an unintended result.
3502 Programming Languages and Translators • Algorithms किसी समस्या को हल करने की सीमित और स्पष्ट चरणबद्ध प्रक्रिया क्या कहलाती है? What is a finite, clearly defined step-by-step procedure for solving a problem called? A. कंपाइलर Compiler B. ऑब्जेक्ट कोड Object code C. डिवाइस ड्राइवर Device driver D. एल्गोरिदम Algorithm उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: D Correct Answer: D एल्गोरिदम समस्या समाधान के स्पष्ट चरण बताता है। इसे किसी एक प्रोग्रामिंग भाषा में लिखना अनिवार्य नहीं है। An algorithm specifies clear steps for solving a problem. It need not be written in any particular programming language.
3503 Programming Languages and Translators • Flowchart Symbols फ्लोचार्ट में निर्णय या शर्त की जाँच के लिए कौन-सा चिह्न प्रयोग होता है? Which symbol represents a decision or condition check in a flowchart? A. हीरे का आकार Diamond B. आयत Rectangle C. समांतर चतुर्भुज Parallelogram D. अंडाकार Oval उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: A Correct Answer: A हीरे के आकार का निर्णय चिह्न किसी शर्त की जाँच दिखाता है। इससे प्रायः हाँ/नहीं या सत्य/असत्य जैसे अलग मार्ग निकलते हैं। A diamond represents a decision or condition check. It commonly branches into paths such as yes/no or true/false.
3504 Programming Languages and Translators • Flowchart Symbols फ्लोचार्ट में इनपुट या आउटपुट के लिए कौन-सा चिह्न प्रयोग होता है? Which symbol is used for input or output in a flowchart? A. आयत Rectangle B. हीरे का आकार Diamond C. समांतर चतुर्भुज Parallelogram D. अंडाकार Oval उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: C Correct Answer: C समांतर चतुर्भुज इनपुट या आउटपुट को दर्शाता है। उदाहरणतः संख्या पढ़ना या परिणाम प्रदर्शित करना। A parallelogram represents input or output, such as reading a number or displaying a result.
3505 Programming Languages and Translators • Flowchart Symbols फ्लोचार्ट में गणना या प्रोसेसिंग चरण को सामान्यतः किस चिह्न से दिखाते हैं? Which symbol generally represents a calculation or processing step in a flowchart? A. अंडाकार Oval B. आयत Rectangle C. हीरे का आकार Diamond D. समांतर चतुर्भुज Parallelogram उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: B Correct Answer: B आयत प्रोसेसिंग चरण दर्शाता है, जैसे दो संख्याओं को जोड़ना या किसी चर को मान देना। A rectangle represents a processing step, such as adding two numbers or assigning a value to a variable.
3506 Programming Languages and Translators • Flowchart Symbols फ्लोचार्ट में प्रारंभ और समाप्ति के लिए सामान्यतः कौन-सा चिह्न प्रयोग होता है? Which symbol is generally used for the start and end of a flowchart? A. हीरे का आकार Diamond B. समांतर चतुर्भुज Parallelogram C. साधारण आयत Plain rectangle D. अंडाकार टर्मिनेटर Oval terminator उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: D Correct Answer: D टर्मिनेटर चिह्न प्रक्रिया का प्रारंभ या अंत दिखाता है। इसे सामान्यतः अंडाकार या गोल सिरों वाले आकार में बनाया जाता है। A terminator marks the start or end of a process. It is commonly drawn as an oval or a shape with rounded ends.
3507 Programming Languages and Translators • Pseudocode एल्गोरिदम को सरल, प्रोग्राम-जैसी लेकिन औपचारिक भाषा के नियमों से मुक्त शैली में लिखना क्या कहलाता है? What is writing an algorithm in a simple, program-like style without strict programming-language syntax called? A. स्यूडोकोड Pseudocode B. मशीन कोड Machine code C. ऑब्जेक्ट कोड Object code D. बाइटकोड Bytecode उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: A Correct Answer: A स्यूडोकोड प्रोग्राम के तर्क को समझाने का अनौपचारिक तरीका है। इसे सामान्यतः सीधे कंप्यूटर पर निष्पादित नहीं किया जाता। Pseudocode is an informal way to describe program logic. It is generally not executed directly by a computer.
3508 Programming Languages and Translators • Control Structures IF–ELSE संरचना किस प्रकार के नियंत्रण का उदाहरण है? An IF–ELSE structure is an example of which type of control? A. केवल पुनरावृत्ति Iteration only B. केवल क्रमिक निष्पादन Sequential execution only C. चयन Selection D. डेटा संपीड़न Data compression उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: C Correct Answer: C IF–ELSE शर्त के आधार पर अलग-अलग मार्गों में से एक चुनता है। इसे चयन या शाखन संरचना कहते हैं। IF–ELSE chooses between alternative paths based on a condition. It is a selection or branching structure.
3509 Programming Languages and Translators • Control Structures निर्देशों के समूह को निर्धारित संख्या में या शर्त के अनुसार बार-बार चलाने के लिए क्या उपयोग होता है? What is used to execute a group of instructions repeatedly for a specified count or according to a condition? A. केवल टिप्पणी A comment only B. लूप A loop C. फाइल एक्सटेंशन A file extension D. लिंकर A linker उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: B Correct Answer: B लूप निर्देशों की पुनरावृत्ति करता है। FOR और WHILE कई भाषाओं में प्रयुक्त लूप संरचनाओं के उदाहरण हैं। A loop repeats instructions. FOR and WHILE are examples of loop structures used in many languages.
3510 Programming Languages and Translators • Functions and Recursion किसी फंक्शन द्वारा स्वयं को कॉल करना क्या कहलाता है? What is it called when a function calls itself? A. संकलन Compilation B. लिंकिंग Linking C. फॉर्मेटिंग Formatting D. रिकर्शन Recursion उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: D Correct Answer: D रिकर्शन में फंक्शन स्वयं को कॉल करता है। सामान्य समाप्त होने वाले रिकर्सिव समाधान में आधार स्थिति होती है, जहाँ आगे की कॉल रुकती है। In recursion, a function calls itself. A normally terminating recursive solution has a base case at which further calls stop.