3491 Programming Languages and Translators • Machine Language CPU किस भाषा के निर्देश सीधे निष्पादित करता है? Instructions in which language are directly executed by a CPU? A. मशीन भाषा Machine language B. असेंबली भाषा Assembly language C. उच्च-स्तरीय भाषा High-level language D. प्राकृतिक भाषा Natural language उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: A Correct Answer: A CPU अपनी निर्देश-समुच्चय संरचना के अनुरूप मशीन निर्देश सीधे निष्पादित करता है। अन्य भाषाओं के प्रोग्रामों को उपयुक्त अनुवाद या निष्पादन व्यवस्था की आवश्यकता होती है। A CPU directly executes machine instructions compatible with its instruction-set architecture. Programs in other languages require suitable translation or execution mechanisms.
3492 Programming Languages and Translators • Assembly Language ADD, SUB और MOV जैसे स्मृति-सहायक संकेत सामान्यतः किस भाषा में प्रयुक्त होते हैं? Mnemonics such as ADD, SUB and MOV are commonly used in which language? A. HTML HTML B. मशीन भाषा Machine language C. असेंबली भाषा Assembly language D. SQL SQL उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: C Correct Answer: C असेंबली भाषा में मशीन निर्देशों को स्मृति-सहायक संकेतों द्वारा लिखा जाता है। असेंबलर इन्हें मशीन कोड में बदलता है। Assembly language expresses machine instructions through mnemonics. An assembler translates them into machine code.
3493 Programming Languages and Translators • Language Translators असेंबली भाषा के प्रोग्राम को मशीन कोड में बदलने वाला अनुवादक कौन-सा है? Which translator converts an assembly-language program into machine code? A. लिंकर Linker B. असेंबलर Assembler C. लोडर Loader D. टेक्स्ट एडिटर Text editor उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: B Correct Answer: B असेंबलर असेंबली निर्देशों का मशीन कोड में अनुवाद करता है। यह लिंकर और लोडर से अलग कार्य करता है। An assembler translates assembly instructions into machine code. Its function differs from those of a linker and a loader.
3494 Programming Languages and Translators • Levels of Programming Languages उच्च-स्तरीय भाषा की प्रमुख विशेषता क्या है? What is a major characteristic of a high-level language? A. निर्देश केवल बाइनरी अंकों में लिखे जाते हैं Instructions are written only as binary digits B. यह हमेशा एक ही CPU मॉडल पर चल सकती है It can always run on only one CPU model C. इसमें प्रोग्राम लिखना असंभव होता है It is impossible to write programs in it D. यह हार्डवेयर के अनेक निम्न-स्तरीय विवरणों को छिपाती है It abstracts many low-level hardware details उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: D Correct Answer: D उच्च-स्तरीय भाषाएँ प्रोग्रामर को हार्डवेयर के कई विवरणों से अलग रखती हैं। इससे प्रोग्राम लिखना और समझना अपेक्षाकृत आसान होता है। High-level languages abstract many hardware details, making programs relatively easier to write and understand.
3495 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.
3496 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.
3497 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.
3498 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.
3499 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.
3500 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.