1481 Programming Languages and Translators • Translators and Errors C में जिस statement के अंत में semicolon आवश्यक है, वहाँ उसे छोड़ देना सामान्यतः किस प्रकार की त्रुटि है? In C, omitting a semicolon where one is required at the end of a statement is generally what type of error? A. हार्डवेयर त्रुटि Hardware error B. केवल नेटवर्क त्रुटि Only a network error C. केवल तार्किक त्रुटि Only a logical error D. Syntax error Syntax error उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: D Correct Answer: D आवश्यक semicolon छोड़ने से भाषा के व्याकरण का उल्लंघन होता है। Compiler सामान्यतः ऐसी syntax त्रुटि का निदान देता है। Omitting a required semicolon violates the language grammar. A compiler generally reports a diagnostic for such a syntax error.
1482 Programming Languages and Translators • Translators and Errors Python में 10 / 0 निष्पादित करने पर सामान्यतः क्या होता है? What normally happens when 10 / 0 is executed in Python? A. परिणाम 0 मिलता है The result is 0 B. परिणाम 10 मिलता है The result is 10 C. ZeroDivisionError उत्पन्न होता है A ZeroDivisionError is raised D. यह केवल comment बन जाता है It becomes only a comment उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: C Correct Answer: C Python में शून्य से भाग देने पर ZeroDivisionError उत्पन्न होता है। यह निष्पादन के समय आने वाला exception है। Division by zero in Python raises ZeroDivisionError. This is an exception occurring during execution.
1483 Programming Languages and Translators • Translators and Errors आयत का क्षेत्रफल निकालने वाला प्रोग्राम length × breadth के बजाय length + breadth करता है। यदि वह बिना रुके चलता है, तो मुख्य त्रुटि क्या है? A program calculates rectangle area using length + breadth instead of length × breadth. If it runs without stopping, what is the main error? A. Logical error Logical error B. अनिवार्य syntax error A necessary syntax error C. कीबोर्ड हार्डवेयर त्रुटि A keyboard hardware error D. फ़ाइल एक्सटेंशन त्रुटि A file-extension error उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: A Correct Answer: A प्रोग्राम चल रहा है, लेकिन सूत्र गलत है। यह logical error है, जिसमें निर्देश वैध हो सकते हैं लेकिन परिणाम अपेक्षित नहीं होता। The program runs but uses an incorrect formula. This is a logical error: instructions may be valid while producing an unintended result.
1484 Programming Languages and Translators • Translators and Errors किसी प्रोग्राम का सफलतापूर्वक compile हो जाना क्या सुनिश्चित नहीं करता? What does successful compilation of a program not ensure? A. Compiler ने संबंधित source code को स्वीकार किया The compiler accepted the relevant source code B. उसके परिणाम हर वैध input के लिए सही होंगे Its results will be correct for every valid input C. उस चरण में compilation रोकने वाली त्रुटि रिपोर्ट नहीं हुई No compilation-blocking error was reported at that stage D. Compilation चरण पूरा हुआ The compilation stage completed उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: B Correct Answer: B Successful compilation सही तर्क या हर स्थिति में सफल निष्पादन की गारंटी नहीं है। Logical errors और runtime समस्याएँ फिर भी हो सकती हैं। Successful compilation does not guarantee correct logic or successful execution in every situation. Logical errors and runtime problems can still occur.
1485 Programming Languages and Translators • Programming Basics Flowchart में तीर वाली रेखाएँ मुख्यतः क्या दर्शाती हैं? What do arrowed lines primarily indicate in a flowchart? A. मेमोरी की कुल क्षमता Total memory capacity B. सभी variable के data types The data types of all variables C. प्रोग्राम की फ़ाइल का आकार The program file size D. चरणों के बीच नियंत्रण-प्रवाह की दिशा The direction of control flow between steps उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: D Correct Answer: D Flow lines चरणों को जोड़ती हैं और बताती हैं कि नियंत्रण किस दिशा में आगे बढ़ता है। निर्णय के बाद अलग शाखाएँ भी इन्हीं से दर्शाई जाती हैं। Flow lines connect steps and show the direction in which control proceeds. They also indicate branches following decisions.
1486 Programming Languages and Translators • Programming Basics किसी algorithm का dry run करने का अर्थ क्या है? What does performing a dry run of an algorithm mean? A. बिना बिजली के कंप्यूटर चालू करना Starting a computer without electricity B. सभी comments हटाना Removing all comments C. नमूना input लेकर उसके चरणों और मानों को हाथ से ट्रेस करना Manually tracing its steps and values using sample input D. प्रोग्राम को अनिवार्य रूप से मशीन कोड में बदलना Necessarily converting the program into machine code उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: C Correct Answer: C Dry run में algorithm को कंप्यूटर पर चलाए बिना उसके चरणों का क्रम और variable के बदलते मान जाँचे जाते हैं। इससे तर्क की त्रुटियाँ खोजने में सहायता मिलती है। A dry run checks the sequence of steps and changing variable values without executing the algorithm on a computer. It helps identify logical mistakes.
1487 Microsoft Word • Editing and Formatting MS Word में पैराग्राफ को केंद्र में संरेखित करने का शॉर्टकट कौन-सा है? Which shortcut centers a paragraph in MS Word? A. Ctrl + L Ctrl + L B. Ctrl + E Ctrl + E C. Ctrl + R Ctrl + R D. Ctrl + J Ctrl + J उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: B Correct Answer: B MS Word में Ctrl + E पैराग्राफ को center-align करता है। In MS Word, Ctrl + E applies center alignment to a paragraph.
1488 Microsoft Word • Editing and Formatting MS Word में First Line Indent किस पर प्रभाव डालता है? What does First Line Indent affect in MS Word? A. दस्तावेज़ के केवल पहले पृष्ठ पर Only the first page of the document B. पैराग्राफ की अंतिम पंक्ति पर The last line of a paragraph C. पैराग्राफ की पहली पंक्ति को छोड़कर शेष पंक्तियों पर All lines of a paragraph except the first D. पैराग्राफ की केवल पहली पंक्ति की क्षैतिज स्थिति पर The horizontal position of only the first line of a paragraph उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: D Correct Answer: D First Line Indent पहली पंक्ति की स्थिति बदलता है। Hanging Indent में पहली पंक्ति के बाद की पंक्तियाँ इंडेंट होती हैं। First Line Indent changes the position of the first line. A hanging indent instead indents the lines following the first.
1489 Microsoft Word • Editing and Formatting MS Word में H₂O लिखते समय 2 को आधार रेखा के नीचे छोटा दिखाने के लिए कौन-सी फ़ॉर्मेटिंग उपयुक्त है? Which formatting is suitable for displaying 2 smaller and below the baseline when writing H₂O in MS Word? A. Subscript Subscript B. Superscript Superscript C. Strikethrough Strikethrough D. Small Caps Small Caps उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: A Correct Answer: A Subscript कैरेक्टर को सामान्य आधार रेखा के नीचे छोटा दिखाता है। Superscript उसे आधार रेखा के ऊपर दिखाता है। Subscript displays a smaller character below the normal baseline. Superscript places it above the baseline.
1490 Microsoft Word • Editing and Formatting MS Word में चयनित अंग्रेज़ी पाठ का letter case बदलने वाला शॉर्टकट कौन-सा है? Which shortcut changes the letter case of selected English text in MS Word? A. Ctrl + F3 Ctrl + F3 B. Alt + F3 Alt + F3 C. Shift + F3 Shift + F3 D. Ctrl + Shift + F3 Ctrl + Shift + F3 उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: C Correct Answer: C Shift + F3 चयनित पाठ को lowercase, uppercase और प्रत्येक शब्द के प्रारंभिक बड़े अक्षर वाले रूपों के बीच बदलता है। Shift + F3 cycles selected text through lowercase, uppercase and initial-capital forms.