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 Filtered: 📜 PYQs

Govt Exam PYQs

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

Timed Quiz
Newest Classic 25 Qs
No Questions Match Your Filter

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

Question 1451 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 1452 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 1453 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 1454 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 1455 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 1456 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 1457 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 1458 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 1459 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 1460 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 1461 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 1462 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 1463 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 1464 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 1465 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 1466 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 1467 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 1468 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 1469 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 1470 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 1471 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 1472 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 1473 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 1474 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 1475 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 57 58 59 60 61 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!