1071 Programming Languages and Translators • Compilers कंपाइलर का मुख्य कार्य क्या है? What is the main function of a compiler? A. स्रोत प्रोग्राम का लक्ष्य कोड में अनुवाद करना To translate a source program into target code B. केवल प्रोग्राम की फाइल का नाम बदलना To rename a program file only C. हर प्रोग्राम का परिणाम सही होने की गारंटी देना To guarantee that every program produces correct results D. कंप्यूटर की RAM बढ़ाना To increase computer RAM उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: A Correct Answer: A कंपाइलर स्रोत कोड को लक्ष्य कोड में बदलता है। लक्ष्य कोड मशीन कोड, बाइटकोड या अन्य रूप हो सकता है; सफल संकलन तार्किक शुद्धता की गारंटी नहीं है। A compiler translates source code into target code, which may be machine code, bytecode or another form. Successful compilation does not guarantee logical correctness.
1072 Programming Languages and Translators • Interpreters प्रोग्राम के निर्देशों की व्याख्या करके उनका निष्पादन कराने वाला सॉफ्टवेयर क्या कहलाता है? What is software that interprets program instructions and carries out their execution called? A. लिंकर Linker B. फाइल आर्काइवर File archiver C. इंटरप्रेटर Interpreter D. डिस्क फॉर्मेटर Disk formatter उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: C Correct Answer: C इंटरप्रेटर प्रोग्राम के निर्देशों का अर्थ समझकर उनका निष्पादन कराता है। वास्तविक प्रणालियों में इंटरप्रिटेशन और संकलन दोनों तकनीकें साथ उपयोग हो सकती हैं। An interpreter executes a program by interpreting its instructions. Real systems may combine interpretation and compilation.
1073 Programming Languages and Translators • Source and Target Code प्रोग्रामर द्वारा किसी प्रोग्रामिंग भाषा में लिखा गया मूल प्रोग्राम क्या कहलाता है? What is the original program written by a programmer in a programming language called? A. मशीन रजिस्टर Machine register B. स्रोत कोड Source code C. कंट्रोल बस Control bus D. मेमोरी पेज Memory page उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: B Correct Answer: B स्रोत कोड प्रोग्राम का वह रूप है जिसे प्रोग्रामर लिखता और संपादित करता है। इसके निष्पादन के लिए उपयुक्त कंपाइलर या इंटरप्रेटर की आवश्यकता हो सकती है। Source code is the form of a program written and edited by a programmer. Execution may require a suitable compiler or interpreter.
1074 Programming Languages and Translators • Linkers and Loaders ऑब्जेक्ट मॉड्यूल और आवश्यक लाइब्रेरी को जोड़ने का कार्य कौन करता है? Which tool combines object modules and required libraries? A. टेक्स्ट एडिटर Text editor B. स्क्रीन रीडर Screen reader C. डिस्क क्लीनर Disk cleaner D. लिंकर Linker उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: D Correct Answer: D लिंकर ऑब्जेक्ट मॉड्यूल और लाइब्रेरी को जोड़ता है तथा उनके बीच संदर्भों का समाधान करता है। इससे निष्पादन योग्य प्रोग्राम तैयार किया जा सकता है। A linker combines object modules and libraries and resolves references between them. This can produce an executable program.
1075 Programming Languages and Translators • Linkers and Loaders निष्पादन योग्य प्रोग्राम को मेमोरी में लाने और चलने के लिए तैयार करने वाला घटक क्या कहलाता है? What is the component that brings an executable program into memory and prepares it to run called? A. लोडर Loader B. असेंबलर Assembler C. फाइल संपीड़क File compressor D. सोर्स एडिटर Source editor उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: A Correct Answer: A लोडर प्रोग्राम को मेमोरी में लोड करके निष्पादन के लिए तैयार करता है। यह स्रोत कोड लिखने या असेंबली का अनुवाद करने का कार्य नहीं है। A loader loads a program into memory and prepares it for execution. This differs from editing source code or translating assembly.
1076 Programming Languages and Translators • Programming Errors किसी प्रोग्रामिंग भाषा के व्याकरण के नियम का उल्लंघन किस प्रकार की त्रुटि है? Violating the grammatical rules of a programming language produces which type of error? A. तार्किक त्रुटि Logical error B. पूर्णांकन त्रुटि Rounding error C. सिंटैक्स त्रुटि Syntax error D. हार्डवेयर त्रुटि Hardware error उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: C Correct Answer: C सिंटैक्स त्रुटि भाषा की संरचना या व्याकरण के नियम टूटने से होती है। आवश्यक ब्रैकेट न लगाना इसका उदाहरण हो सकता है। A syntax error occurs when language structure or grammar rules are violated. Omitting a required bracket can be an example.
1077 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.
1078 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.
1079 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.
1080 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.