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

Govt Exam 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 2151 NEW
Most Important MEDIUM
Which algorithmic approach makes the locally optimal (best immediate) choice at each step with the hope of finding a global optimum (e.g., Dijkstra's shortest path, Huffman coding)?
कौन सी एल्गोरिदम तकनीक हर चरण में सबसे बेहतर तात्कालिक विकल्प चुनती है ताकि समग्र रूप से सर्वोत्तम परिणाम मिल सके?
A
Brute Force
ब्रूट फोर्स
B
Greedy Algorithm
ग्रीडी एल्गोरिदम
Correct
C
Backtracking
बैकट्रैकिंग
D
Linear Search
लीनियर सर्च
Solution Breakdown:
-> Greedy algorithms are fast and simple, making the best choice available at the current moment without reconsidering previous choices. -> Hence, Option (B) is the correct answer.
-> ग्रीडी एल्गोरिदम हर कदम पर सबसे लाभदायक तात्कालिक विकल्प चुनता है, जैसे हफमैन कोडिंग और डिज्क्स्ट्रा एल्गोरिदम। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 2152 NEW
Most Important MEDIUM
Which algorithmic technique solves a large problem by breaking it into smaller independent sub-problems, solving them recursively, and combining their results (e.g., Merge Sort, Quick Sort, Binary Search)?
कौन सी एल्गोरिदम तकनीक एक बड़ी समस्या को छोटी उप-समस्याओं में बांटकर उन्हें हल करती है और फिर परिणामों को जोड़ती है?
A
Divide and Conquer
डिवाइड एंड कॉनकर
Correct
B
Brute Force
ब्रूट फोर्स
C
Linear Scanning
लीनियर स्कैनिंग
D
Random Guessing
रैंडम गेसिंग
Solution Breakdown:
-> Divide and Conquer splits problems in half repeatedly, achieving fast $O(n \log n)$ sorting (Merge Sort) or $O(\log n)$ searching (Binary Search). -> Hence, Option (A) is the correct answer.
-> डिवाइड एंड कॉनकर बड़ी समस्या को छोटे भागों में तोड़कर तेज़ी से हल करता है, जैसे मर्ज सॉर्ट और बाइनरी सर्च। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 2153 NEW
Most Important MEDIUM
Which of the following Time Complexities represents the FASTEST (most efficient) algorithm for very large inputs?
बहुत बड़े इनपुट के लिए निम्नलिखित में से कौन सी टाइम कॉम्प्लेक्सिटी सबसे तेज़ (सर्वाधिक कुशल) एल्गोरिदम को दर्शाती है?
A
$O(n^2)$
$O(n^2)$
B
$O(n)$
$O(n)$
C
$O(2^n)$
$O(2^n)$
D
$O(1)$
$O(1)$
Correct
Solution Breakdown:
-> $O(1)$ (Constant Time) means the algorithm takes the exact same tiny amount of time whether the input has 10 items or 10 million items (e.g., accessing an array element by index). -> Hence, Option (D) is the correct answer.
-> $O(1)$ (कांस्टेंट टाइम) सबसे तेज़ होता है क्योंकि इनपुट कितना भी बड़ा हो, समय हमेशा स्थिर रहता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 2154 NEW
Most Important MEDIUM
What is "Big-O Notation" (e.g., $O(1)$, $O(n)$, $O(n^2)$) used for in Algorithm Analysis?
एल्गोरिदम विश्लेषण में "बिग-ओ नोटेशन" का उपयोग किसके लिए किया जाता है?
A
To measure the physical size of a monitor
मॉनिटर का भौतिक आकार मापने के लिए
B
To count the number of comments in code
कोड में कमेंट्स की संख्या गिनने के लिए
C
To express the upper bound (Worst-Case) Time or Space Complexity of an algorithm as input size grows
इनपुट आकार बढ़ने पर किसी एल्गोरिदम की अधिकतम (वर्स्ट-केस) टाइम या स्पेस कॉम्प्लेक्सिटी को दर्शाने के लिए
Correct
D
To name variables
वेरिएबल्स का नाम रखने के लिए
Solution Breakdown:
-> Big-O notation helps programmers compare algorithm efficiency independent of hardware speed. For example, $O(1)$ is constant time (fastest), $O(\log n)$ is logarithmic, and $O(n^2)$ is quadratic. -> Hence, Option (C) is the correct answer.
-> बिग-ओ नोटेशन यह बताता है कि डेटा बढ़ने पर एल्गोरिदम को चलने में अधिकतम कितना समय या मेमोरी लगेगी। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 2155 NEW
Most Important MEDIUM
What is the difference between a "Static" variable/method and an "Instance" variable/method in OOP?
OOP में "स्टैटिक" सदस्य और "इंस्टेंस" सदस्य के बीच क्या अंतर है?
A
Instance members are shared by all objects
इंस्टेंस सदस्य सभी ऑब्जेक्ट्स द्वारा साझा किए जाते हैं
B
Static members belong to the Class itself and are shared by all objects, whereas Instance members belong individually to each separate Object
स्टैटिक सदस्य सीधे क्लास से जुड़े होते हैं और सभी ऑब्जेक्ट्स द्वारा साझा होते हैं, जबकि इंस्टेंस सदस्य हर अलग ऑब्जेक्ट के अपने निजी होते हैं
Correct
C
Static members cannot store numbers
स्टैटिक सदस्य संख्याएँ स्टोर नहीं कर सकते
D
Both are deleted before execution
दोनों निष्पादन से पहले डिलीट हो जाते हैं
Solution Breakdown:
-> Only one single copy of a `static` variable exists in memory regardless of how many objects are created, whereas each object gets its own separate copy of instance variables. -> Hence, Option (B) is the correct answer.
-> मेमोरी में स्टैटिक वेरिएबल की केवल एक ही कॉपी बनती है जिसे सभी ऑब्जेक्ट्स साझा करते हैं, जबकि हर ऑब्जेक्ट के लिए इंस्टेंस वेरिएबल की अलग कॉपी बनती है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 2156 NEW
Most Important MEDIUM
In OOP, which Access Modifier restricts a class member (variable or method) so it can ONLY be accessed from inside the SAME class?
OOP में कौन सा एक्सेस मॉडिफायर किसी क्लास के सदस्य को केवल उसी क्लास के अंदर से एक्सेस करने तक सीमित रखता है?
A
`private`
प्राइवेट
Correct
B
`public`
पब्लिक
C
`protected`
प्रोटेक्टेड
D
`global`
ग्लोबल
Solution Breakdown:
-> `private` enforces strict data hiding (accessible only inside the same class); `protected` allows access in the same class and its subclasses; `public` allows access from anywhere. -> Hence, Option (A) is the correct answer.
-> `private` सदस्य केवल उसी क्लास में, `protected` उसी क्लास व चाइल्ड क्लास में, और `public` पूरे प्रोग्राम में कहीं से भी एक्सेस हो सकते हैं। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 2157 NEW
Most Important EASY
In OOP (like C++), what is a "Destructor" used for?
OOP (जैसे C++) में "डिस्ट्रक्टर" का उपयोग किसके लिए किया जाता है?
A
To create a new object
नया ऑब्जेक्ट बनाने के लिए
B
To compile the program
प्रोग्राम को कंपाइल करने के लिए
C
To print output on screen
स्क्रीन पर आउटपुट प्रिंट करने के लिए
D
To automatically clean up resources and release memory when an object is destroyed or goes out of scope
जब कोई ऑब्जेक्ट नष्ट होता है या स्कोप से बाहर जाता है, तो उसके संसाधनों को साफ करने और मेमोरी मुक्त करने के लिए
Correct
Solution Breakdown:
-> A Destructor has the same name as the class prefixed with a tilde (`~`) in C++ and is automatically invoked when an object's lifetime ends, preventing memory leaks. -> Hence, Option (D) is the correct answer.
-> डिस्ट्रक्टर का नाम क्लास के नाम के आगे `~` लगाकर बनता है और यह ऑब्जेक्ट का जीवनकाल समाप्त होने पर मेमोरी खाली करने के लिए स्वतः चलता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 2158 NEW
Most Important MEDIUM
In Object-Oriented Programming, what is "Method Overriding"?
ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग में "मेथड ओवरराइडिंग" क्या होती है?
A
Deleting a method from a class
किसी क्लास से मेथड को डिलीट करना
B
Writing two methods with different names
अलग-अलग नामों वाले दो मेथड लिखना
C
A subclass (child class) providing its own specific implementation of a method that is already defined in its parent (base) class
चाइल्ड क्लास द्वारा पैरेंट क्लास में पहले से परिभाषित किसी मेथड का अपना नया और विशिष्ट रूप प्रदान करना
Correct
D
Calling a constructor twice
कंस्ट्रक्टर को दो बार कॉल करना
Solution Breakdown:
-> Method Overriding enables Runtime Polymorphism—allowing a child class to customize or replace inherited behavior while keeping the exact same method signature. -> Hence, Option (C) is the correct answer.
-> मेथड ओवरराइडिंग रन-टाइम पॉलीमॉर्फिज़्म का उदाहरण है, जहाँ चाइल्ड क्लास समान नाम और पैरामीटर वाले पैरेंट मेथड के कार्य को अपनी ज़रूरत के अनुसार बदल देती है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 2159 NEW
Most Important EASY
Which programming paradigm is driven by user actions such as mouse clicks, key presses, or sensor outputs (commonly used in GUI and web apps)?
कौन सी प्रोग्रामिंग शैली उपयोगकर्ता की क्रियाओं जैसे माउस क्लिक, की-प्रेस या सेंसर आउटपुट द्वारा संचालित होती है?
A
Batch Programming
बैच प्रोग्रामिंग
B
Event-Driven Programming
इवेंट-ड्रिवेन प्रोग्रामिंग
Correct
C
Assembly Programming
असेंबली प्रोग्रामिंग
D
Linear Programming
लीनियर प्रोग्रामिंग
Solution Breakdown:
-> In Event-Driven Programming (like JavaScript, Visual Basic, or Android UI), the program waits in an event loop and executes specific handler functions whenever an event (like a button click) occurs. -> Hence, Option (B) is the correct answer.
-> इवेंट-ड्रिवेन प्रोग्रामिंग में प्रोग्राम किसी घटना (जैसे बटन क्लिक या कीबोर्ड प्रेस) के होने का इंतज़ार करता है और घटना होते ही उससे जुड़ा फंक्शन चलाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 2160 NEW
Most Important MEDIUM
What is the difference between "Imperative Programming" and "Declarative Programming"?
"इम्पेरेटिव प्रोग्रामिंग" और "डिक्लेरेटिव प्रोग्रामिंग" के बीच क्या अंतर है?
A
Imperative programming specifies step-by-step HOW to achieve a result, whereas Declarative programming specifies WHAT result is desired
इम्पेरेटिव प्रोग्रामिंग चरण-दर-चरण बताती है कि परिणाम कैसे प्राप्त करना है, जबकि डिक्लेरेटिव प्रोग्रामिंग केवल यह बताती है कि क्या परिणाम चाहिए
Correct
B
Declarative programming only uses binary 0 and 1
डिक्लेरेटिव प्रोग्रामिंग केवल बाइनरी 0 और 1 का उपयोग करती है
C
Imperative programming cannot use loops
इम्पेरेटिव प्रोग्रामिंग में लूप का उपयोग नहीं हो सकता
D
Both are hardware languages
दोनों हार्डवेयर भाषाएँ हैं
Solution Breakdown:
-> Imperative languages (like C, Java) give explicit commands changing program state step by step, while Declarative languages (like SQL, HTML) describe the target outcome and let the engine handle the steps. -> Hence, Option (A) is the correct answer.
-> इम्पेरेटिव भाषाएँ (जैसे C, Java) कंप्यूटर को हर एक चरण का स्पष्ट आदेश देती हैं, जबकि डिक्लेरेटिव भाषाएँ (जैसे SQL, HTML) केवल वांछित परिणाम बताती हैं। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 2161 NEW
📜 PYQs EASY
Which statement best summarizes the evolution from 1GL to 3GL programming languages?
कौन सा कथन 1GL से 3GL प्रोग्रामिंग भाषाओं के विकास का सबसे अच्छा सारांश है?
A
Languages moved from hardware-dependent binary (1GL) to symbolic mnemonics (2GL) to human-readable, portable English-like languages (3GL)
भाषाएँ हार्डवेयर-निर्भर बाइनरी (1GL) से प्रतीकात्मक निमोनिक्स (2GL) और फिर मानव-पठनीय, पोर्टेबल अंग्रेजी जैसी भाषाओं (3GL) की ओर विकसित हुईं
Correct
B
Languages became harder for humans to read over time
समय के साथ भाषाएँ मनुष्यों के लिए पढ़ना कठिन होती गईं
C
Computers stopped using binary internally
कंप्यूटर ने अंदर से बाइनरी का उपयोग बंद कर दिया
D
Translators were completely removed
ट्रांसलेटर्स को पूरी तरह हटा दिया गया
Solution Breakdown:
-> While CPUs still execute only binary machine code internally, higher-level generations hide hardware complexity so programmers can build complex software much faster. -> Hence, Option (A) is the correct answer.
-> यद्यपि CPU आज भी अंदर से केवल बाइनरी ही समझता है, लेकिन हाई-लेवल भाषाओं ने प्रोग्रामिंग को अत्यंत सरल और पोर्टेबल बना दिया है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 2162 NEW
📜 PYQs MEDIUM
Match the Control Statement with its Role: 1. `if-else` — (a) Skips current loop iteration and moves to the next 2. `do-while` — (b) Exits the loop immediately 3. `break` — (c) Executes loop body at least once 4. `continue` — (d) Executes code based on a True/False condition
कंट्रोल स्टेटमेंट को उसकी भूमिका से सुमेलित करें: 1. `if-else` — (a) वर्तमान लूप चरण को छोड़कर अगले पर जाता है 2. `do-while` — (b) लूप से तुरंत बाहर निकलता है 3. `break` — (c) लूप बॉडी को कम से कम एक बार चलाता है 4. `continue` — (d) True/False शर्त के आधार पर कोड चलाता है
A
1-a, 2-b, 3-c, 4-d
1-a, 2-b, 3-c, 4-d
B
1-d, 2-b, 3-c, 4-a
1-d, 2-b, 3-c, 4-a
C
1-d, 2-c, 3-b, 4-a
1-d, 2-c, 3-b, 4-a
Correct
D
1-c, 2-d, 3-b, 4-a
1-c, 2-d, 3-b, 4-a
Solution Breakdown:
-> Correct matches: `if-else` (Conditional), `do-while` (Runs at least once), `break` (Exits loop), `continue` (Skips current iteration). -> Hence, Option (C) is the correct answer.
-> सही मिलान: 1-d, 2-c, 3-b, 4-a। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 2163 NEW
📜 PYQs MEDIUM
Match the Programming Language Generation with its Example: 1. 1GL — (a) Assembly Language 2. 2GL — (b) Machine Language (0s & 1s) 3. 3GL — (c) SQL (Database Query) 4. 4GL — (d) C, Java, Python
प्रोग्रामिंग भाषा की पीढ़ी को उसके उदाहरण से सुमेलित करें: 1. 1GL — (a) असेंबली लैंग्वेज 2. 2GL — (b) मशीन लैंग्वेज (0 और 1) 3. 3GL — (c) SQL (डेटाबेस क्वेरी) 4. 4GL — (d) C, Java, Python
A
1-a, 2-b, 3-c, 4-d
1-a, 2-b, 3-c, 4-d
B
1-b, 2-a, 3-d, 4-c
1-b, 2-a, 3-d, 4-c
Correct
C
1-b, 2-d, 3-a, 4-c
1-b, 2-d, 3-a, 4-c
D
1-d, 2-a, 3-b, 4-c
1-d, 2-a, 3-b, 4-c
Solution Breakdown:
-> Correct matches: 1GL (Machine Language), 2GL (Assembly Language), 3GL (C/Java/Python), 4GL (SQL). -> Hence, Option (B) is the correct answer.
-> सही मिलान: 1-b, 2-a, 3-d, 4-c। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 2164 NEW
📜 PYQs EASY
What is a "Boolean" data type capable of storing?
"बूलियन" डेटा टाइप क्या स्टोर करने में सक्षम होता है?
A
Only decimal numbers
केवल दशमलव संख्याएँ
B
Only two logical values: `True` or `False`
केवल दो तार्किक मान: `True` या `False`
Correct
C
Long paragraphs of text
टेक्स्ट के लंबे पैराग्राफ
D
Image files
इमेज फाइलें
Solution Breakdown:
-> Named after mathematician George Boole, Boolean values (`True`/`False` or `1`/`0`) are the foundation of all conditional logic and digital circuits. -> Hence, Option (B) is the correct answer.
-> गणितज्ञ जॉर्ज बूल के नाम पर बना बूलियन डेटा टाइप केवल `True` या `False` मान स्टोर करता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 2165 NEW
📜 PYQs MEDIUM
What is "Short-Circuit Evaluation" in Logical Operators (`&&` and `||`)?
लॉजिकल ऑपरेटर्स (`&&` और `||`) में "शॉर्ट-सर्किट इवैल्यूएशन" क्या होता है?
A
Stopping the evaluation of a logical expression as soon as the final truth value is already known (e.g., if the left side of `&&` is `False`, the right side is skipped)
अंतिम सत्य मान पता चलते ही लॉजिकल व्यंजक का मूल्यांकन रोक देना (जैसे `&&` का बायां भाग `False` होने पर दाएं भाग को छोड़ देना)
Correct
B
An electrical short circuit in RAM
RAM में बिजली का शॉर्ट सर्किट
C
Skipping all `if` statements
सभी `if` स्टेटमेंट छोड़ देना
D
Running a loop backwards
लूप को उल्टा चलाना
Solution Breakdown:
-> Short-circuiting saves CPU time and prevents runtime errors (like checking `ptr != NULL && ptr->val == 5` safely). -> Hence, Option (A) is the correct answer.
-> शॉर्ट-सर्किट इवैल्यूएशन अनावश्यक जांच से बचाता है और समय व रन-टाइम एरर दोनों को रोकता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 2166 NEW
📜 PYQs EASY
Which of the following is the ODD one out?
निम्नलिखित में से कौन सा विषम है?
A
`for`
`for`
B
`while`
`while`
C
`do-while`
`do-while`
D
`switch`
`switch`
Correct
Solution Breakdown:
-> `for`, `while`, and `do-while` are Looping (Iteration) constructs, whereas `switch` is a Conditional Selection (branching) construct. -> Hence, Option (D) is the correct answer.
-> `for`, `while` और `do-while` लूपिंग स्टेटमेंट हैं, जबकि `switch` एक कंडीशनल सेलेक्शन स्टेटमेंट है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 2167 NEW
📜 PYQs MEDIUM
Evaluate the following statements: (I) Assembly language uses binary 0s and 1s exclusively without any symbolic names. (II) Machine language requires an Assembler to run on the CPU.
निम्नलिखित कथनों का मूल्यांकन करें: (I) असेंबली लैंग्वेज बिना किसी प्रतीकात्मक नाम के केवल बाइनरी 0 और 1 का उपयोग करती है। (II) मशीन लैंग्वेज को CPU पर चलने के लिए असेंबलर की आवश्यकता होती है।
A
Both (I) and (II) are true
(I) और (II) दोनों सत्य हैं
B
Only (I) is true
केवल (I) सत्य है
C
Only (II) is true
केवल (II) सत्य है
D
Neither (I) nor (II) is true
न तो (I) और न ही (II) सत्य है
Correct
Solution Breakdown:
-> Both statements are swapped/false: Assembly language uses symbolic Mnemonics (and needs an Assembler), whereas Machine language uses pure 0s and 1s (and needs NO translator). -> Hence, Option (D) is the correct answer.
-> दोनों कथन असत्य हैं: असेंबली भाषा निमोनिक्स का उपयोग करती है और मशीन भाषा को किसी असेंबलर की ज़रूरत नहीं होती। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 2168 NEW
📜 PYQs MEDIUM
Evaluate the following statements: (I) A `do-while` loop executes at least once even if its condition is initially false. (II) A `while` loop is an Entry-Controlled loop.
निम्नलिखित कथनों का मूल्यांकन करें: (I) `do-while` लूप शुरू में शर्त गलत होने पर भी कम से कम एक बार चलता है। (II) `while` लूप एक एंट्री-कंट्रोल्ड लूप है।
A
Only (I) is true
केवल (I) सत्य है
B
Both (I) and (II) are true
(I) और (II) दोनों सत्य हैं
Correct
C
Only (II) is true
केवल (II) सत्य है
D
Neither (I) nor (II) is true
न तो (I) और न ही (II) सत्य है
Solution Breakdown:
-> Both statements are completely accurate: `while` checks its condition before entering (Entry-Controlled), whereas `do-while` checks after the first run (Exit-Controlled). -> Hence, Option (B) is the correct answer.
-> दोनों कथन बिल्कुल सही हैं: `while` पहले शर्त जांचता है और `do-while` अंत में। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 2169 NEW
📜 PYQs MEDIUM
What is "Function Prototyping" (Function Declaration) in languages like C/C++?
C/C++ जैसी भाषाओं में "फंक्शन प्रोटोटाइपिंग" (फंक्शन डिक्लेरेशन) क्या होता है?
A
Informing the compiler in advance about a function's name, return type, and parameter types before its actual definition
कंपाइलर को फंक्शन की वास्तविक परिभाषा से पहले ही उसके नाम, रिटर्न टाइप और पैरामीटर के प्रकारों की जानकारी देना
Correct
B
Deleting a function after use
उपयोग के बाद फंक्शन डिलीट करना
C
Running a function infinitely
फंक्शन को अनंत बार चलाना
D
Converting a function into a flowchart
फंक्शन को फ्लोचार्ट में बदलना
Solution Breakdown:
-> A prototype (e.g., `int sum(int, int);`) lets the compiler verify that every call to `sum()` passes the correct number and types of arguments. -> Hence, Option (A) is the correct answer.
-> फंक्शन प्रोटोटाइप कंपाइलर को यह जांचने में मदद करता है कि फंक्शन को सही संख्या और प्रकार के आर्ग्युमेंट्स के साथ कॉल किया गया है या नहीं। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 2170 NEW
📜 PYQs EASY
What is the difference between a "Parameter" and an "Argument" in functions?
फंक्शंस में "पैरामीटर" और "आर्ग्युमेंट" के बीच क्या अंतर है?
A
Both are syntax errors
दोनों सिंटैक्स एरर हैं
B
Parameters are passed during a function call
पैरामीटर फंक्शन कॉल के समय भेजे जाते हैं
C
Arguments are only used in loops
आर्ग्युमेंट केवल लूप में उपयोग होते हैं
D
A Parameter is the placeholder variable listed in the function definition, whereas an Argument is the actual value passed when calling the function
पैरामीटर फंक्शन की परिभाषा में लिखा जाने वाला वेरिएबल है, जबकि आर्ग्युमेंट फंक्शन को कॉल करते समय भेजा जाने वाला वास्तविक मान है
Correct
Solution Breakdown:
-> In `void add(int x)`, `x` is a Parameter (formal parameter); in `add(10)`, `10` is an Argument (actual parameter). -> Hence, Option (D) is the correct answer.
-> फंक्शन परिभाषा में लिखा वेरिएबल 'पैरामीटर' और कॉल करते समय भेजा गया वास्तविक मान 'आर्ग्युमेंट' कहलाता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 2171 NEW
📜 PYQs MEDIUM
In programming, what does the Left Shift operation `5 << 1` evaluate to?
प्रोग्रामिंग में लेफ्ट शिफ्ट ऑपरेशन `5 << 1` का मान क्या होता है?
A
2
2
B
6
6
C
10
10
Correct
D
25
25
Solution Breakdown:
-> Left shifting an integer by `k` bits multiplies it by $2^k$. Here, `5 << 1` $= 5 \times 2^1 = 10$ (binary `0101` becomes `1010`). -> Hence, Option (C) is the correct answer.
-> किसी संख्या को `1` बिट लेफ्ट शिफ्ट करने से वह `2` से गुणा हो जाती है, इसलिए `5 << 1 = 10` होता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 2172 NEW
📜 PYQs MEDIUM
What is the "Bitwise XOR" (`^`) result of binary `1010` and `1100`?
बाइनरी `1010` और `1100` पर "बिटवाइज़ XOR" (`^`) ऑपरेशन का परिणाम क्या होगा?
A
`1000`
`1000`
B
`0110`
`0110`
Correct
C
`1110`
`1110`
D
`1111`
`1111`
Solution Breakdown:
-> Bitwise XOR returns `1` when the two bits are DIFFERENT, and `0` when they are the SAME: `1^1=0`, `0^1=1`, `1^0=1`, `0^0=0`, giving `0110`. -> Hence, Option (B) is the correct answer.
-> बिटवाइज़ XOR में अलग-अलग बिट्स होने पर `1` और समान बिट्स होने पर `0` आता है, अतः परिणाम `0110` होगा। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 2173 NEW
📜 PYQs MEDIUM
What is the "Bitwise OR" (`|`) result of binary `1010` and `1100`?
बाइनरी `1010` और `1100` पर "बिटवाइज़ OR" (`|`) ऑपरेशन का परिणाम क्या होगा?
A
`1110`
`1110`
Correct
B
`1000`
`1000`
C
`0110`
`0110`
D
`0000`
`0000`
Solution Breakdown:
-> Bitwise OR returns `1` if AT LEAST ONE of the corresponding bits is `1`: `1|1=1`, `0|1=1`, `1|0=1`, `0|0=0`, giving `1110`. -> Hence, Option (A) is the correct answer.
-> बिटवाइज़ OR में यदि कोई एक भी बिट `1` हो तो परिणाम `1` आता है, अतः `1010 | 1100 = 1110` होगा। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 2174 NEW
📜 PYQs MEDIUM
What is "Bitwise AND" (`&`) result of binary `1010` and `1100`?
बाइनरी `1010` और `1100` पर "बिटवाइज़ AND" (`&`) ऑपरेशन का परिणाम क्या होगा?
A
`1110`
`1110`
B
`0110`
`0110`
C
`0000`
`0000`
D
`1000`
`1000`
Correct
Solution Breakdown:
-> Bitwise AND returns `1` only where BOTH corresponding bits are `1`: `1&1=1`, `0&1=0`, `1&0=0`, `0&0=0`, giving `1000`. -> Hence, Option (D) is the correct answer.
-> बिटवाइज़ AND में केवल वहीं `1` आता है जहाँ दोनों बिट्स `1` हों, इसलिए `1010 & 1100 = 1000` होगा। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 2175 NEW
📜 PYQs EASY
Where is Assembly Language still widely used today despite modern High-Level Languages?
आधुनिक हाई-लेवल भाषाओं के बावजूद आज भी असेंबली लैंग्वेज का व्यापक उपयोग कहाँ किया जाता है?
A
Creating PowerPoint presentations
पावरपॉइंट प्रेजेंटेशन बनाने में
B
Writing blog articles
ब्लॉग लेख लिखने में
C
Writing BIOS/UEFI bootloaders, hardware device drivers, and time-critical embedded microcontroller firmware
BIOS/UEFI बूटलोडर, हार्डवेयर डिवाइस ड्राइवर और एम्बेडेड माइक्रोकंट्रोलर फर्मवेयर लिखने में
Correct
D
Designing website CSS
वेबसाइट की CSS डिज़ाइन करने में
Solution Breakdown:
-> Whenever direct hardware register access, tiny code size, or exact microsecond timing is required, engineers still rely on Assembly language. -> Hence, Option (C) is the correct answer.
-> जहाँ सीधे हार्डवेयर रजिस्टर पर नियंत्रण और अत्यधिक तेज़ प्रतिक्रिया चाहिए (जैसे बूटलोडर और ड्राइवर), वहाँ आज भी असेंबली भाषा उपयोग होती है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Prev 85 86 87 88 89 Next
ESSENTIAL STUDY KIT

Master Govt Exam 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!