Connection restored!
Notification Center
Loading notifications...
Loading announcements...
INCOMING 1v1 DUEL! 10:00
@friend challenged you!
Topic · Room #HQ-0000
Accept & Join
Mention Scholar ↑↓ Enter / Click
Last time you were studying on Page 2.
STUDY & LEARNING DECK

Computer PYQs

Showing 25 of 4040 total questions (Latest Added First).

Timed Quiz
Newest Classic 25 Qs
No Questions Match Your Filter

Try clearing filters or unchecking "Saved" / "Hide".

Question 2101 NEW
📜 PYQs EASY
Which of the following correctly creates a "List" in Python?
निम्नलिखित में से कौन सा पायथन में सही ढंग से "लिस्ट" बनाता है?
A
`fruits = ("apple", "banana")`
`fruits = ("apple", "banana")`
B
`fruits = {"apple", "banana"}`
`fruits = {"apple", "banana"}`
C
`fruits = <"apple", "banana">`
`fruits = <"apple", "banana">`
D
`fruits = ["apple", "banana"]`
`fruits = ["apple", "banana"]`
Correct
Solution Breakdown:
-> In Python: Square brackets `[ ]` create a List (ordered, mutable), parentheses `( )` create a Tuple (ordered, immutable), and curly braces `{ }` create a Set or Dictionary. -> Hence, Option (D) is the correct answer.
-> पायथन में लिस्ट बनाने के लिए स्क्वायर ब्रैकेट `[ ]`, टपल के लिए `( )` और सेट/डिक्शनरी के लिए `{ }` का उपयोग होता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 2102 NEW
📜 PYQs EASY
How does Python define code blocks (such as the body of an `if` statement, loop, or function)?
पायथन में कोड ब्लॉक्स (जैसे `if` स्टेटमेंट, लूप या फंक्शन की बॉडी) को कैसे परिभाषित किया जाता है?
A
Using curly braces `{ }`
कर्ली ब्रेसेज़ `{ }` का उपयोग करके
B
Using `BEGIN` and `END` keywords
`BEGIN` और `END` कीवर्ड्स का उपयोग करके
C
Using Indentation (leading whitespace)
इंडेंटेशन (शुरुआती खाली स्थान) का उपयोग करके
Correct
D
Using square brackets `[ ]`
स्क्वायर ब्रैकेट्स `[ ]` का उपयोग करके
Solution Breakdown:
-> Unlike C, C++, or Java which use `{ }`, Python enforces consistent indentation (typically 4 spaces) to group statements into blocks and nested blocks. -> Hence, Option (C) is the correct answer.
-> C या Java के विपरीत, पायथन में कोड ब्लॉक बनाने के लिए इंडेंटेशन (स्पेस) का उपयोग किया जाता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 2103 NEW
📜 PYQs EASY
Which of the following is NOT a valid rule for naming variables in Python?
पायथन में वेरिएबल का नाम रखने के लिए निम्नलिखित में से कौन सा नियम गलत है?
A
A variable name must start with a letter or an underscore (`_`)
वेरिएबल का नाम किसी अक्षर या अंडरस्कोर (`_`) से शुरू होना चाहिए
B
Variable names are case-insensitive (`age` and `AGE` are the same)
वेरिएबल के नाम केस-इनसेंसिटिव होते हैं (`age` और `AGE` एक ही हैं)
Correct
C
A variable name cannot start with a number
वेरिएबल का नाम किसी संख्या से शुरू नहीं हो सकता
D
A variable name can only contain alphanumeric characters and underscores
वेरिएबल के नाम में केवल अक्षर, अंक और अंडरस्कोर ही हो सकते हैं
Solution Breakdown:
-> Python is strictly case-sensitive, meaning `age`, `Age`, and `AGE` are treated as three completely different variables. -> Hence, Option (B) is the correct answer.
-> पायथन एक केस-सेंसिटिव भाषा है, इसलिए `age`, `Age` और `AGE` तीन अलग-अलग वेरिएबल माने जाते हैं। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 2104 NEW
📜 PYQs EASY
Which keyword is used to define a user-defined function in Python?
पायथन में यूज़र-डिफाइंड फंक्शन को परिभाषित करने के लिए किस कीवर्ड का उपयोग किया जाता है?
A
`def`
`def`
Correct
B
`function`
`function`
C
`func`
`func`
D
`define`
`define`
Solution Breakdown:
-> In Python, a function block always begins with the `def` keyword followed by the function name, parentheses `()`, and a colon `:` (e.g., `def greet():`). -> Hence, Option (A) is the correct answer.
-> पायथन में किसी भी फंक्शन की शुरुआत `def` कीवर्ड से होती है, जिसके बाद फंक्शन का नाम, कोष्ठक और कोलन (`:`) लगाया जाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 2105 NEW
📜 PYQs EASY
Which symbol is used to write a single-line comment in Python?
पायथन में सिंगल-लाइन कमेंट लिखने के लिए किस प्रतीक का उपयोग किया जाता है?
A
`//`
`//`
B
`/*`
`/*`
C
`<!--`
`<!--`
D
`#`
`#`
Correct
Solution Breakdown:
-> In Python, any text following the hash symbol (`#`) on a line is treated as a comment and ignored by the interpreter. -> Note: `//` is used for comments in C++/Java/JS, whereas in Python `//` is the Floor Division operator. -> Hence, Option (D) is the correct answer.
-> पायथन में `#` (हैश) चिह्न के बाद लिखी गई लाइन को कमेंट माना जाता है जिसे इंटरप्रेटर नज़रअंदाज़ कर देता है। -> नोट: पायथन में `//` का उपयोग फ्लोर डिवीज़न के लिए होता है, कमेंट के लिए नहीं। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 2106 NEW
📜 PYQs EASY
How many `>` symbols make up the standard interactive prompt in the Python interpreter (REPL)?
पायथन इंटरप्रेटर के मानक इंटरैक्टिव प्रॉम्प्ट में कितने `>` चिह्न होते हैं?
A
1
1
B
2
2
C
3
3
Correct
D
4
4
Solution Breakdown:
-> The Python interactive shell (REPL – Read-Eval-Print Loop) displays three greater-than signs (`>>>`) to indicate it is ready to accept the next command. -> Hence, Option (C) is the correct answer.
-> पायथन के इंटरैक्टिव प्रॉम्प्ट में तीन `>` चिह्न (`>>>`) होते हैं जो दर्शाते हैं कि इंटरप्रेटर नया कमांड लेने के लिए तैयार है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 2107 NEW
📜 PYQs EASY
What is the default Integrated Development Environment (IDE) that comes bundled with a standard Python installation?
मानक पायथन इंस्टॉलेशन के साथ डिफ़ॉल्ट रूप से आने वाला इंटीग्रेटेड डेवलपमेंट एनवायरनमेंट कौन सा है?
A
NetBeans
नेटबीन्स
B
IDLE
आईडीएलई
Correct
C
Eclipse
एक्लिप्स
D
DataGrip
डेटाग्रिप
Solution Breakdown:
-> IDLE stands for Integrated Development and Learning Environment. It comes pre-installed with Python and provides both an interactive shell and a script editor. -> Hence, Option (B) is the correct answer.
-> IDLE (इंटीग्रेटेड डेवलपमेंट एंड लर्निंग एनवायरनमेंट) पायथन के साथ आने वाला डिफ़ॉल्ट एडिटर है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 2108 NEW
📜 PYQs EASY
What is the standard file extension of a Python source code or module file?
पायथन सोर्स कोड या मॉड्यूल फाइल का मानक फाइल एक्सटेंशन क्या होता है?
A
`.py`
`.py`
Correct
B
`.pt`
`.pt`
C
`.python`
`.python`
D
`.txt`
`.txt`
Solution Breakdown:
-> Python scripts and modules are saved with the `.py` extension so the Python interpreter can execute or import them into other programs. -> Hence, Option (A) is the correct answer.
-> पायथन प्रोग्राम और मॉड्यूल फाइलों को `.py` एक्सटेंशन के साथ सेव किया जाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 2109 NEW
📜 PYQs EASY
Which of the following statements is INCORRECT regarding the Python programming language?
पायथन प्रोग्रामिंग भाषा के संबंध में निम्नलिखित में से कौन सा कथन गलत है?
A
It is an interpreted language
यह एक इंटरप्रेटेड भाषा है
B
It supports Object-Oriented Programming
यह ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग को सपोर्ट करती है
C
It is a machine-dependent low-level language
यह एक मशीन-डिपेंडेंट लो-लेवल भाषा है
Correct
D
It is a high-level programming language
यह एक हाई-लेवल प्रोग्रामिंग भाषा है
Solution Breakdown:
-> Python is a platform-independent (machine-independent) high-level language; the same Python script can run on Windows, Linux, and macOS wherever a Python interpreter is installed. -> Hence, Option (C) is the correct answer.
-> पायथन एक प्लेटफॉर्म-इंडिपेंडेंट हाई-लेवल भाषा है जो विंडोज़, लिनक्स और मैक सभी पर समान रूप से चल सकती है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 2110 NEW
📜 PYQs EASY
Who created the Python programming language, which was first released in 1991?
पायथन प्रोग्रामिंग भाषा का विकास किसने किया था, जिसे पहली बार 1991 में रिलीज़ किया गया था?
A
James Gosling
जेम्स गोसलिंग
B
Dennis Ritchie
डेनिस रिची
C
Guido van Rossum
गुइडो वैन रोसुम
Correct
D
Bjarne Stroustrup
ब्योर्न स्ट्राउस्ट्रप
Solution Breakdown:
-> Python was created by Guido van Rossum and first released in 1991. It is a high-level, interpreted, dynamically typed language known for its clean, readable syntax. -> Note: Dennis Ritchie created C, Bjarne Stroustrup created C++, and James Gosling created Java. -> Hence, Option (C) is the correct answer.
-> पायथन का विकास गुइडो वैन रोसुम ने किया था और इसे 1991 में लॉन्च किया गया था। यह अपनी सरल और पढ़ने में आसान सिंटैक्स के लिए प्रसिद्ध है। -> नोट: डेनिस रिची ने C, स्ट्राउस्ट्रप ने C++ और जेम्स गोसलिंग ने Java बनाया था। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 2111 NEW
Most Important EASY
Which statement best summarizes the difference between Low-Level Languages and High-Level Languages?
कौन सा कथन लो-लेवल लैंग्वेज और हाई-लेवल लैंग्वेज के बीच के अंतर का सबसे अच्छा सारांश है?
A
Low-Level Languages are hardware-specific and fast but hard to write, whereas High-Level Languages are human-friendly, portable, and require a compiler/interpreter
लो-लेवल भाषाएँ हार्डवेयर-विशिष्ट और तेज़ लेकिन लिखने में कठिन होती हैं, जबकि हाई-लेवल भाषाएँ मानव-अनुकूल व पोर्टेबल होती हैं और उन्हें कंपाइलर/इंटरप्रेटर की आवश्यकता होती है
Correct
B
Low-Level Languages are written in English sentences
लो-लेवल भाषाएँ अंग्रेजी वाक्यों में लिखी जाती हैं
C
High-Level Languages run directly on the CPU without translation
हाई-लेवल भाषाएँ बिना अनुवाद के सीधे CPU पर चलती हैं
D
Both are completely identical
दोनों बिल्कुल एक समान हैं
Solution Breakdown:
-> Low-level languages prioritize direct hardware control and raw speed, while high-level languages prioritize developer speed, readability, and cross-platform portability. -> Hence, Option (A) is the correct answer.
-> लो-लेवल भाषाएँ सीधे हार्डवेयर नियंत्रण व गति देती हैं, जबकि हाई-लेवल भाषाएँ आसान कोडिंग और पोर्टेबिलिटी प्रदान करती हैं। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 2112 NEW
Most Important MEDIUM
Match the Algorithmic Technique with its Core Idea: 1. Divide and Conquer — (a) Stores sub-problem answers to avoid recalculating 2. Greedy Algorithm — (b) Tries all possible solutions exhaustively 3. Dynamic Programming — (c) Picks the best immediate local choice at each step 4. Brute Force — (d) Splits problem into smaller sub-problems and merges results
एल्गोरिदम तकनीक को उसके मुख्य विचार से सुमेलित करें: 1. डिवाइड एंड कॉनकर — (a) दोबारा गणना से बचने के लिए उप-समस्याओं के उत्तर स्टोर करना 2. ग्रीडी एल्गोरिदम — (b) सभी संभावित समाधानों को आज़माना 3. डायनामिक प्रोग्रामिंग — (c) हर चरण में सबसे बेहतर तात्कालिक विकल्प चुनना 4. ब्रूट फोर्स — (d) समस्या को छोटे भागों में बांटकर परिणामों को जोड़ना
A
1-a, 2-b, 3-c, 4-d
1-a, 2-b, 3-c, 4-d
B
1-d, 2-b, 3-a, 4-c
1-d, 2-b, 3-a, 4-c
C
1-d, 2-c, 3-a, 4-b
1-d, 2-c, 3-a, 4-b
Correct
D
1-c, 2-d, 3-a, 4-b
1-c, 2-d, 3-a, 4-b
Solution Breakdown:
-> Correct matches: Divide & Conquer (Split & merge), Greedy (Best local choice), Dynamic Programming (Store sub-problem results), Brute Force (Try all). -> Hence, Option (C) is the correct answer.
-> सही मिलान: 1-d, 2-c, 3-a, 4-b। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 2113 NEW
Most Important MEDIUM
Match the Assembly Mnemonic with its Operation: 1. `MOV` — (a) Unconditional jump to another address 2. `CMP` — (b) Copies data from source to destination 3. `JMP` — (c) Does nothing for one clock cycle 4. `NOP` — (d) Compares two operands and sets CPU flags
असेंबली निमोनिक को उसके कार्य से सुमेलित करें: 1. `MOV` — (a) किसी अन्य एड्रेस पर बिना शर्त जंप करना 2. `CMP` — (b) स्रोत से गंतव्य में डेटा कॉपी करना 3. `JMP` — (c) एक क्लॉक साइकिल तक कुछ न करना 4. `NOP` — (d) दो ऑपरेंड की तुलना करके CPU फ्लैग्स सेट करना
A
1-a, 2-b, 3-c, 4-d
1-a, 2-b, 3-c, 4-d
B
1-b, 2-d, 3-a, 4-c
1-b, 2-d, 3-a, 4-c
Correct
C
1-b, 2-a, 3-d, 4-c
1-b, 2-a, 3-d, 4-c
D
1-d, 2-b, 3-a, 4-c
1-d, 2-b, 3-a, 4-c
Solution Breakdown:
-> Correct matches: `MOV` (Copy data), `CMP` (Compare & set flags), `JMP` (Jump), `NOP` (No operation). -> Hence, Option (B) is the correct answer.
-> सही मिलान: 1-b, 2-d, 3-a, 4-c। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 2114 NEW
Most Important MEDIUM
What is an "Infinite Recursion"?
"इनफाइनाइट रिकर्शन" क्या होता है?
A
A loop that stops after 10 steps
10 चरणों के बाद रुकने वाला लूप
B
A recursive function that keeps calling itself endlessly because its base case is missing or never reached, eventually causing a Stack Overflow
एक रिकर्सिव फंक्शन जो बेस केस न होने के कारण अनंत काल तक खुद को कॉल करता रहता है और अंततः स्टैक ओवरफ्लो कर देता है
Correct
C
A fast sorting algorithm
एक तेज़ सॉर्टिंग एल्गोरिदम
D
A type of compiler
एक प्रकार का कंपाइलर
Solution Breakdown:
-> Unlike an infinite loop (which just hangs forever), infinite recursion rapidly exhausts the Call Stack memory and crashes the program. -> Hence, Option (B) is the correct answer.
-> इनफाइनाइट रिकर्शन कॉल स्टैक मेमोरी को तुरंत भरकर प्रोग्राम को क्रैश कर देता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 2115 NEW
Most Important MEDIUM
What is "Operator Associativity"?
"ऑपरेटर एसोसिएटिविटी" (साहचर्यता) क्या होती है?
A
The rule that decides the evaluation direction (Left-to-Right or Right-to-Left) when two operators of the SAME precedence appear in an expression
वह नियम जो यह तय करता है कि समान प्राथमिकता वाले दो ऑपरेटर एक साथ आने पर गणना किस दिशा में (बाएं से दाएं या दाएं से बाएं) होगी
Correct
B
Combining two programs
दो प्रोग्रामों को जोड़ना
C
Connecting a keyboard
कीबोर्ड जोड़ना
D
Naming a class
किसी क्लास का नाम रखना
Solution Breakdown:
-> For example, `*` and `/` have Left-to-Right associativity, while the assignment operator `=` has Right-to-Left associativity (`a = b = 5`). -> Hence, Option (A) is the correct answer.
-> `*` और `/` बाएं से दाएं हल होते हैं, जबकि असाइनमेंट ऑपरेटर `=` दाएं से बाएं हल होता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 2116 NEW
Most Important EASY
Which of the following is the ODD one out?
निम्नलिखित में से कौन सा विषम है?
A
Encapsulation
एनकैप्सुलेशन
B
Inheritance
इनहेरिटेंस
C
Polymorphism
पॉलीमॉर्फिज़्म
D
Defragmentation
डीफ्रैग्मेंटेशन
Correct
Solution Breakdown:
-> Encapsulation, Inheritance, and Polymorphism are pillars of Object-Oriented Programming (OOP), whereas Defragmentation is a Hard Disk utility process. -> Hence, Option (D) is the correct answer.
-> डीफ्रैग्मेंटेशन हार्ड डिस्क की प्रक्रिया है, जबकि बाकी तीनों OOP के मुख्य स्तंभ हैं। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 2117 NEW
Most Important EASY
Which of the following is the ODD one out?
निम्नलिखित में से कौन सा विषम है?
A
`MOV`
`MOV`
B
`ADD`
`ADD`
C
`JMP`
`JMP`
D
`<html>`
`<html>`
Correct
Solution Breakdown:
-> `MOV`, `ADD`, and `JMP` are Low-Level Assembly Language mnemonics, whereas `<html>` is a web Markup Language tag. -> Hence, Option (D) is the correct answer.
-> `MOV`, `ADD` और `JMP` असेंबली भाषा के निमोनिक्स हैं, जबकि `<html>` एक वेब मार्कअप टैग है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 2118 NEW
Most Important MEDIUM
Evaluate the following statements: (I) Recursion requires a Base Case to prevent Stack Overflow. (II) In Call by Reference, modifying the parameter inside the function changes the original variable.
निम्नलिखित कथनों का मूल्यांकन करें: (I) स्टैक ओवरफ्लो से बचने के लिए रिकर्शन में बेस केस होना आवश्यक है। (II) कॉल बाय रेफरेंस में, फंक्शन के अंदर पैरामीटर बदलने से मूल वेरिएबल का मान भी बदल जाता है।
A
Only (I) is true
केवल (I) सत्य है
B
Only (II) is true
केवल (II) सत्य है
C
Both (I) and (II) are true
(I) और (II) दोनों सत्य हैं
Correct
D
Neither (I) nor (II) is true
न तो (I) और न ही (II) सत्य है
Solution Breakdown:
-> Both statements are core programming fundamentals and completely accurate. -> Hence, Option (C) is the correct answer.
-> दोनों कथन प्रोग्रामिंग के मूलभूत और बिल्कुल सही नियम हैं। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 2119 NEW
Most Important MEDIUM
Evaluate the following statements: (I) Pseudocode follows strict compiler syntax rules and can be executed directly by the CPU. (II) Flowcharts use a Parallelogram symbol for Input/Output operations.
निम्नलिखित कथनों का मूल्यांकन करें: (I) स्यूडोकोड सख्त कंपाइलर सिंटैक्स नियमों का पालन करता है और इसे CPU द्वारा सीधे चलाया जा सकता है। (II) फ्लोचार्ट में इनपुट/आउटपुट ऑपरेशंस के लिए समांतर चतुर्भुज प्रतीक का उपयोग होता है।
A
Both (I) and (II) are true
(I) और (II) दोनों सत्य हैं
B
Only (II) is true
केवल (II) सत्य है
Correct
C
Only (I) is true
केवल (I) सत्य है
D
Neither (I) nor (II) is true
न तो (I) और न ही (II) सत्य है
Solution Breakdown:
-> Statement (I) is false because Pseudocode is informal and cannot be executed by a CPU. Statement (II) is true. -> Hence, Option (B) is the correct answer.
-> कथन (I) असत्य है क्योंकि स्यूडोकोड को सीधे चलाया नहीं जा सकता; कथन (II) सत्य है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 2120 NEW
Most Important MEDIUM
Evaluate the following statements: (I) A Compiler translates High-Level Language into Machine Language. (II) Machine Language is portable (machine-independent) across all CPU architectures.
निम्नलिखित कथनों का मूल्यांकन करें: (I) कंपाइलर हाई-लेवल लैंग्वेज को मशीन लैंग्वेज में बदलता है। (II) मशीन लैंग्वेज सभी CPU आर्किटेक्चर पर पोर्टेबल (मशीन-इंडिपेंडेंट) होती है।
A
Only (I) is true
केवल (I) सत्य है
Correct
B
Only (II) is true
केवल (II) सत्य है
C
Both (I) and (II) are true
(I) और (II) दोनों सत्य हैं
D
Neither (I) nor (II) is true
न तो (I) और न ही (II) सत्य है
Solution Breakdown:
-> Statement (I) is true. Statement (II) is false because Machine Language is strictly machine-dependent (tied to a specific CPU's ISA). -> Hence, Option (A) is the correct answer.
-> कथन (I) सत्य है, जबकि मशीन लैंग्वेज मशीन-डिपेंडेंट होती है, पोर्टेबल नहीं। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 2121 NEW
Most Important MEDIUM
What is a "Boolean Expression"?
"बूलियन व्यंजक" क्या होता है?
A
An expression that always prints a name
एक व्यंजक जो हमेशा नाम प्रिंट करता है
B
An expression that only adds decimal numbers
एक व्यंजक जो केवल दशमलव संख्याएँ जोड़ता है
C
A hardware circuit only
केवल एक हार्डवेयर सर्किट
D
Any logical expression (like `age >= 18 && hasID`) that evaluates strictly to either `True` or `False`
कोई भी तार्किक व्यंजक जिसका अंतिम मान केवल `True` या `False` आता है
Correct
Solution Breakdown:
-> Boolean expressions control every `if`, `while`, and `for` decision in a computer program. -> Hence, Option (D) is the correct answer.
-> बूलियन व्यंजक प्रोग्राम में सभी शर्तों (`if`, `while`, `for`) के निर्णय को नियंत्रित करते हैं। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 2122 NEW
Most Important MEDIUM
What is "Dead Code" in a computer program?
कंप्यूटर प्रोग्राम में "डेड कोड" किसे कहा जाता है?
A
Code that crashes the PC
पीसी को क्रैश करने वाला कोड
B
Code written in Assembly
असेंबली में लिखा गया कोड
C
Sections of source code that can NEVER be reached or executed (e.g., statements written right after a `return` statement)
सोर्स कोड के वे हिस्से जो कभी भी निष्पादित नहीं हो सकते (जैसे `return` स्टेटमेंट के ठीक बाद लिखी गई लाइनें)
Correct
D
Encrypted code
एन्क्रिप्टेड कोड
Solution Breakdown:
-> Optimizing compilers automatically detect and remove Dead Code to shrink the final executable file size. -> Hence, Option (C) is the correct answer.
-> ऑप्टिमाइज़िंग कंपाइलर फाइनल फाइल का आकार छोटा करने के लिए डेड कोड को अपने आप हटा देते हैं। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 2123 NEW
Most Important MEDIUM
What is "Code Refactoring"?
"कोड रीफैक्टरिंग" क्या होती है?
A
Deleting the entire project
पूरे प्रोजेक्ट को डिलीट करना
B
Restructuring and cleaning up existing source code to make it simpler and easier to maintain WITHOUT changing its external behavior or output
बाहरी व्यवहार या आउटपुट को बदले बिना मौजूदा सोर्स कोड की संरचना को साफ और सरल बनाना ताकि उसका रखरखाव आसान हो सके
Correct
C
Adding new bugs
नए बग्स जोड़ना
D
Translating code to machine language
कोड को मशीन भाषा में बदलना
Solution Breakdown:
-> Refactoring removes duplicate code, improves variable names, and keeps long-term software projects healthy. -> Hence, Option (B) is the correct answer.
-> रीफैक्टरिंग से कोड साफ-सुथरा और व्यवस्थित बनता है जबकि प्रोग्राम का परिणाम बिल्कुल वही रहता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 2124 NEW
Most Important EASY
What is "ASCII" vs. "Unicode" in programming?
प्रोग्रामिंग में "ASCII" और "Unicode" में क्या मुख्य अंतर है?
A
ASCII supports only basic English characters (128/256 codes), whereas Unicode provides a unique code for almost every character and script in the world (including Hindi and emojis)
ASCII केवल मूल अंग्रेजी अक्षरों (128/256 कोड) को सपोर्ट करता है, जबकि Unicode दुनिया की लगभग सभी भाषाओं (हिंदी और इमोजी सहित) के प्रत्येक अक्षर को यूनिक कोड देता है
Correct
B
Unicode supports only numbers
Unicode केवल संख्याओं को सपोर्ट करता है
C
ASCII supports Hindi and Chinese
ASCII हिंदी और चीनी भाषा को सपोर्ट करता है
D
Both are programming languages
दोनों प्रोग्रामिंग भाषाएँ हैं
Solution Breakdown:
-> Modern programming languages (Python 3, Java, JavaScript) use Unicode by default so apps can easily support multilingual text globally. -> Hence, Option (A) is the correct answer.
-> आधुनिक भाषाएँ डिफ़ॉल्ट रूप से Unicode का उपयोग करती हैं ताकि दुनिया की किसी भी भाषा में सॉफ्टवेयर बनाया जा सके। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 2125 NEW
Most Important MEDIUM
In Assembly Language, what is the difference between a "One-Pass Assembler" and a "Two-Pass Assembler"?
असेंबली लैंग्वेज में "वन-पास असेंबलर" और "टू-पास असेंबलर" में क्या अंतर है?
A
One-Pass Assembler translates High-Level Languages
वन-पास असेंबलर हाई-लेवल भाषाओं का अनुवाद करता है
B
Two-Pass Assembler requires two CPUs
टू-पास असेंबलर को दो CPU चाहिए
C
Both work identically
दोनों एक समान काम करते हैं
D
A One-Pass Assembler scans source code once (struggling with forward references), whereas a Two-Pass Assembler scans twice to cleanly resolve all forward label addresses
वन-पास असेंबलर कोड को एक बार स्कैन करता है (फॉरवर्ड रेफरेंस में कठिनाई होती है), जबकि टू-पास असेंबलर दो बार स्कैन करके सभी लेबल एड्रेस को सटीक रूप से हल करता है
Correct
Solution Breakdown:
-> Two-Pass Assemblers are the industry standard because they build a complete Symbol Table in Pass 1 and generate exact machine code in Pass 2. -> Hence, Option (D) is the correct answer.
-> टू-पास असेंबलर पहले पास में सिंबल टेबल बनाता है और दूसरे पास में सटीक मशीन कोड तैयार करता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Prev 83 84 85 86 87 Next
ESSENTIAL STUDY KIT

Master Computer PYQs Faster with Recommended Resources

Pair your daily MCQ practice with these educator-picked books, practice sets, and typing gear tailored for this syllabus.

Visit Exam Store
Dell KB216 Wired Multimedia USB Keyboard (Black)
Typing Keyboards Best for Mangal Typing Amazon
Dell KB216 Wired Multimedia USB Keyboard (Black)

Soft chiclet keys and zero lag — the best keyboard for UPP Computer Operator and DSSSB 40+ WPM Hindi/English typing tests.

₹299 ₹999 70% OFF
Affiliate Disclosure: HappyQuiz may earn a small commission on qualifying purchases at no extra cost to you.
Saved to your dashboard!