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 1476 NEW
📜 PYQs EASY
Which of the following is the biggest advantage of Machine Language over High-Level Language?
हाई-लेवल लैंग्वेज की तुलना में मशीन लैंग्वेज का सबसे बड़ा लाभ क्या है?
A
It is very easy to learn
इसे सीखना बहुत आसान है
B
It executes at the fastest possible speed directly on the CPU with zero translation overhead
यह बिना किसी अनुवाद (Translation) के सीधे CPU पर सबसे तेज़ गति से निष्पादित होती है
Correct
C
It is completely portable across all CPUs
यह सभी CPU पर पूरी तरह पोर्टेबल है
D
It is easy to debug
इसे डीबग करना आसान है
Solution Breakdown:
-> Because Machine Language needs no compiler, interpreter, or assembler, it achieves maximum raw hardware execution speed and minimal memory footprint. -> Hence, Option (B) is the correct answer.
-> ट्रांसलेटर की आवश्यकता न होने के कारण मशीन कोड सीधे CPU पर अधिकतम गति से चलता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1477 NEW
📜 PYQs MEDIUM
What is "ISA" in the context of Low-Level Programming?
लो-लेवल प्रोग्रामिंग के संदर्भ में "ISA" का पूर्ण रूप क्या होता है?
A
Instruction Set Architecture
इंस्ट्रक्शन सेट आर्किटेक्चर
Correct
B
Internal Software Application
इंटरनल सॉफ्टवेयर एप्लिकेशन
C
Internet Security Algorithm
इंटरनेट सिक्योरिटी एल्गोरिदम
D
Integrated System Array
इंटीग्रेटेड सिस्टम एरे
Solution Breakdown:
-> The Instruction Set Architecture (such as x86-64 or ARM) defines all valid machine instructions, registers, and addressing modes that a specific CPU understands. -> Hence, Option (A) is the correct answer.
-> ISA किसी प्रोसेसर द्वारा समझे जाने वाले सभी मशीन निर्देशों, रजिस्टरों और एड्रेसिंग मोड्स का मानक सेट होता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1478 NEW
📜 PYQs EASY
Which generation of programming languages is designed to be closer to human English and includes database query languages like SQL?
प्रोग्रामिंग भाषाओं की कौन सी पीढ़ी अंग्रेजी के अधिक करीब है और इसमें SQL जैसी डेटाबेस क्वेरी भाषाएँ शामिल हैं?
A
First Generation (1GL)
पहली पीढ़ी
B
Second Generation (2GL)
दूसरी पीढ़ी
C
Third Generation (3GL)
तीसरी पीढ़ी
D
Fourth Generation (4GL)
चौथी पीढ़ी
Correct
Solution Breakdown:
-> 4GLs (like SQL, MATLAB, SAS) reduce coding effort dramatically by allowing developers to state *what* data they want in concise English-like statements. -> Hence, Option (D) is the correct answer.
-> चौथी पीढ़ी की भाषाएँ (4GL) जैसे SQL बहुत कम कोड में बड़े डेटाबेस और रिपोर्टिंग कार्य करने की सुविधा देती हैं। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 1479 NEW
📜 PYQs EASY
Which generation of programming languages is specifically associated with Artificial Intelligence (AI) and Natural Language Processing (e.g., Prolog, Mercury)?
प्रोग्रामिंग भाषाओं की कौन सी पीढ़ी विशेष रूप से आर्टिफिशियल इंटेलिजेंस (AI) और लॉजिक प्रोग्रामिंग (जैसे Prolog) से जुड़ी है?
A
First Generation (1GL)
पहली पीढ़ी
B
Second Generation (2GL)
दूसरी पीढ़ी
C
Fifth Generation (5GL)
पांचवीं पीढ़ी
Correct
D
Third Generation (3GL)
तीसरी पीढ़ी
Solution Breakdown:
-> 5GLs focus on solving problems using constraints and logic rules rather than step-by-step algorithms, making them ideal for AI expert systems. -> Hence, Option (C) is the correct answer.
-> पांचवीं पीढ़ी की भाषाएँ (5GL) एल्गोरिदम लिखने के बजाय तार्किक नियमों और बाधाओं के आधार पर AI समस्याएँ हल करती हैं। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1480 NEW
📜 PYQs HARD
In Low-Level Architecture, what does "Endianness" (Big-Endian vs. Little-Endian) refer to?
लो-लेवल कंप्यूटर आर्किटेक्चर में "एंडियननेस" (बिग-एंडियन बनाम लिटिल-एंडियन) का क्या अर्थ है?
A
The order in which programs are installed
प्रोग्राम इंस्टॉल करने का क्रम
B
The byte order in which multi-byte data (like a 32-bit integer) is stored in RAM memory
वह बाइट क्रम जिसमें मल्टी-बाइट डेटा (जैसे 32-बिट पूर्णांक) को RAM मेमोरी में स्टोर किया जाता है
Correct
C
The end of a flowchart
फ्लोचार्ट का अंत
D
The speed of a network cable
नेटवर्क केबल की गति
Solution Breakdown:
-> Big-Endian stores the Most Significant Byte (MSB) at the lowest memory address (used in network protocols), while Little-Endian stores the Least Significant Byte (LSB) first (used in Intel/AMD x86 CPUs). -> Hence, Option (B) is the correct answer.
-> बिग-एंडियन में सबसे महत्वपूर्ण बाइट (MSB) पहले और लिटिल-एंडियन (x86 CPU) में सबसे कम महत्वपूर्ण बाइट (LSB) पहले स्टोर होती है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1481 NEW
📜 PYQs MEDIUM
In Assembly programming, how does a "Macro" differ from a "Subroutine" (Function)?
असेंबली प्रोग्रामिंग में "मैक्रो" और "सब-रूटीन" (फंक्शन) में क्या मुख्य अंतर है?
A
A Macro expands (copies) its code inline at every call site (faster execution, larger code size), whereas a Subroutine jumps to one shared copy in memory (smaller code size, slight call overhead)
मैक्रो हर कॉल की जगह पर अपना पूरा कोड कॉपी कर देता है (तेज़ गति, बड़ा आकार), जबकि सब-रूटीन मेमोरी में एक ही जगह स्टोर कोड पर जंप करता है (छोटा आकार)
Correct
B
Macros cannot take parameters
मैक्रो में पैरामीटर नहीं होते
C
Subroutines are deleted before assembly
सब-रूटीन असेंबली से पहले डिलीट हो जाते हैं
D
Both are completely identical
दोनों बिल्कुल एक समान हैं
Solution Breakdown:
-> Macros trade extra memory space for faster execution (no `CALL`/`RET` jump overhead), just like `inline` functions in C++. -> Hence, Option (A) is the correct answer.
-> मैक्रो में फंक्शन कॉल/रिटर्न का समय बचता है, लेकिन कोड बार-बार कॉपी होने से प्रोग्राम का आकार बढ़ जाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1482 NEW
📜 PYQs MEDIUM
In Assembly Language, what is an "Assembler Directive" (Pseudo-instruction, like `ORG`, `DB`, `END`)?
असेंबली लैंग्वेज में "असेंबलर डायरेक्टिव" (जैसे `ORG`, `DB`, `END`) क्या होता है?
A
A CPU arithmetic instruction
एक CPU अंकगणितीय निर्देश
B
A runtime error
एक रन-टाइम एरर
C
A hardware interrupt
एक हार्डवेयर इंटरप्ट
D
A special command given to the Assembler itself (e.g., to reserve memory or mark the end of code) that does NOT generate executable CPU machine instructions
असेंबलर को दिया गया एक विशेष निर्देश (जैसे मेमोरी आरक्षित करना या कोड का अंत बताना) जो स्वयं कोई मशीन कोड उत्पन्न नहीं करता
Correct
Solution Breakdown:
-> Directives guide the assembler during translation (like `DB` to Define Byte or `END` to stop assembly), rather than being executed by the CPU. -> Hence, Option (D) is the correct answer.
-> असेंबलर डायरेक्टिव केवल अनुवाद के समय असेंबलर का मार्गदर्शन करते हैं, CPU इन्हें निष्पादित नहीं करता। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 1483 NEW
📜 PYQs MEDIUM
Why do low-level programmers often read and write Machine Code using "Hexadecimal" (Base 16) instead of pure Binary (Base 2)?
लो-लेवल प्रोग्रामर शुद्ध बाइनरी (आधार 2) के बजाय "हेक्साडेसिमल" (आधार 16) में मशीन कोड क्यों पढ़ते और लिखते हैं?
A
Because CPUs only understand Hexadecimal
क्योंकि CPU केवल हेक्साडेसिमल समझते हैं
B
Because Binary cannot represent numbers above 10
क्योंकि बाइनरी 10 से बड़ी संख्या नहीं दिखा सकता
C
Because every 4 binary bits condense cleanly into 1 Hex digit, making long binary machine instructions much shorter and easier for humans to read without errors
क्योंकि हर 4 बाइनरी बिट्स 1 हेक्स अंक में सिमट जाते हैं, जिससे लंबे बाइनरी निर्देश छोटे और पढ़ने में आसान हो जाते हैं
Correct
D
Because Hexadecimal uses less RAM
क्योंकि हेक्साडेसिमल कम RAM लेता है
Solution Breakdown:
-> For example, a 16-bit binary instruction `1011000001100001` becomes just `B061` in Hexadecimal—far less error-prone for engineers. -> Hence, Option (C) is the correct answer.
-> 16-बिट का लंबा बाइनरी कोड हेक्साडेसिमल में केवल 4 अंकों में लिखा जा सकता है, जिससे गलतियाँ बहुत कम होती हैं। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1484 NEW
📜 PYQs HARD
In Low-Level Computer Architecture, what is "Direct Addressing Mode" vs. "Indirect Addressing Mode"?
लो-लेवल कंप्यूटर आर्किटेक्चर में "डायरेक्ट एड्रेसिंग मोड" और "इनडायरेक्ट एड्रेसिंग मोड" में क्या अंतर है?
A
Both fetch data from the keyboard
दोनों कीबोर्ड से डेटा लाते हैं
B
In Direct mode, the instruction holds the actual memory address of the data; in Indirect mode, the instruction holds the address of a location/register that POINTS to the actual data address
डायरेक्ट मोड में निर्देश में डेटा का वास्तविक मेमोरी एड्रेस होता है; इनडायरेक्ट मोड में निर्देश उस स्थान का पता रखता है जहाँ डेटा का वास्तविक एड्रेस स्टोर है
Correct
C
Indirect mode is faster than Immediate mode
इनडायरेक्ट मोड इमीडिएट मोड से तेज़ होता है
D
Direct mode cannot access RAM
डायरेक्ट मोड RAM एक्सेस नहीं कर सकता
Solution Breakdown:
-> Indirect addressing works just like a Pointer in C/C++, requiring an extra memory lookup to find the final operand. -> Hence, Option (B) is the correct answer.
-> इनडायरेक्ट एड्रेसिंग C/C++ के पॉइंटर की तरह काम करती है, जिसमें वास्तविक डेटा तक पहुँचने के लिए एक अतिरिक्त मेमोरी लुकअप करना पड़ता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1485 NEW
📜 PYQs MEDIUM
In Assembly Language, what is "Immediate Addressing Mode" (e.g., `MOV AX, 10`)?
असेंबली लैंग्वेज में "इमीडिएट एड्रेसिंग मोड" (जैसे `MOV AX, 10`) क्या होता है?
A
The operand value itself is specified directly inside the instruction rather than stored in memory
ऑपरेंड का मान मेमोरी में होने के बजाय सीधे निर्देश के अंदर ही दिया होता है
Correct
B
The operand is fetched from a hard disk
ऑपरेंड हार्ड डिस्क से लाया जाता है
C
The instruction executes without a CPU
निर्देश बिना CPU के चलता है
D
The address is stored in another register
एड्रेस किसी दूसरे रजिस्टर में स्टोर होता है
Solution Breakdown:
-> Immediate addressing is very fast because no extra memory read is needed to fetch the constant value `10`. -> Hence, Option (A) is the correct answer.
-> इमीडिएट एड्रेसिंग बहुत तेज़ होती है क्योंकि डेटा सीधे निर्देश में ही मौजूद होता है और मेमोरी से लाने की ज़रूरत नहीं पड़ती। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1486 NEW
📜 PYQs MEDIUM
In Assembly Language, what does the instruction `MOV AX, 5` perform?
असेंबली लैंग्वेज में `MOV AX, 5` निर्देश क्या कार्य करता है?
A
Copies the immediate value `5` into the `AX` register
`5` मान को सीधे `AX` रजिस्टर में कॉपी (लोड) करता है
Correct
B
Adds `5` to the `AX` register
`AX` रजिस्टर में `5` जोड़ता है
C
Deletes the `AX` register
`AX` रजिस्टर को डिलीट करता है
D
Prints `5` on the printer
प्रिंटर पर `5` प्रिंट करता है
Solution Breakdown:
-> `MOV` (Move) is the most common data-transfer mnemonic in Assembly; the first operand (`AX`) is the destination and the second (`5`) is the source. -> Hence, Option (A) is the correct answer.
-> `MOV` असेंबली में डेटा ट्रांसफर का सबसे सामान्य निमोनिक है, जो स्रोत मान (`5`) को गंतव्य रजिस्टर (`AX`) में कॉपी करता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1487 NEW
📜 PYQs MEDIUM
In Low-Level Assembly Language (like x86), what are "Registers" such as `AX`, `BX`, `CX`, and `DX`?
लो-लेवल असेंबली लैंग्वेज (जैसे x86) में `AX`, `BX`, `CX` और `DX` क्या होते हैं?
A
Hard disk partitions
हार्ड डिस्क पार्टिशन
B
High-level functions
हाई-लेवल फंक्शन
C
Network ports
नेटवर्क पोर्ट
D
General-purpose CPU registers used directly by assembly instructions for fast arithmetic and data movement
सामान्य-उद्देश्य वाले CPU रजिस्टर जिनका उपयोग असेंबली निर्देश तेज़ गणना और डेटा मूवमेंट के लिए सीधे करते हैं
Correct
Solution Breakdown:
-> In classic x86 assembly: `AX` = Accumulator, `BX` = Base, `CX` = Counter (used in loops), and `DX` = Data register. -> Hence, Option (D) is the correct answer.
-> x86 असेंबली में `AX` (एक्यूमुलेटर), `BX` (बेस), `CX` (काउंटर) और `DX` (डेटा) मुख्य जनरल-पर्पस रजिस्टर हैं। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 1488 NEW
📜 PYQs MEDIUM
What is a "Syntax Tree" (Abstract Syntax Tree – AST) in programming languages?
प्रोग्रामिंग भाषाओं में "सिंटैक्स ट्री" क्या होता है?
A
A folder structure on a hard disk
हार्ड डिस्क पर फोल्डर संरचना
B
A flowchart for loops
लूप के लिए फ्लोचार्ट
C
A hierarchical tree representation of the grammatical structure of source code built by the compiler's parser
कंपाइलर के पार्सर द्वारा बनाई गई सोर्स कोड की व्याकरणिक संरचना का पदानुक्रमित ट्री रूप
Correct
D
A network topology
एक नेटवर्क टोपोलॉजी
Solution Breakdown:
-> Compilers build an Abstract Syntax Tree (AST) during Syntax Analysis to validate grammar and generate intermediate code. -> Hence, Option (C) is the correct answer.
-> कंपाइलर सिंटैक्स एनालिसिस के दौरान कोड की संरचना को समझने और इंटरमीडिएट कोड बनाने के लिए सिंटैक्स ट्री तैयार करता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1489 NEW
📜 PYQs EASY
What is the output of the integer expression `10 + 20
5 * 2` in standard programming languages (following standard precedence and left-to-right associativity)? / मानक प्रोग्रामिंग भाषाओं में पूर्णांक व्यंजक `10 + 20 / 5 * 2` का आउटपुट क्या होगा?
A
12
12
B
18
18
Correct
C
14
14
D
6
6
Solution Breakdown:
-> `/` and `*` have equal precedence and evaluate left-to-right: first `20 -> Hence, Option (B) is the correct answer.
-> 5 = 4`, then `4 * 2 = 8`, and finally `10 + 8 = 18`. / `/` और `*` की प्राथमिकता समान होती है और वे बाएं से दाएं हल होते हैं: पहले `20 / 5 = 4`, फिर `4 * 2 = 8`, और अंत में `10 + 8 = 18`। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1490 NEW
📜 PYQs MEDIUM
What is "Operator Precedence" in programming?
प्रोग्रामिंग में "ऑपरेटर प्रीसीडेंस" (प्राथमिकता) क्या होती है?
A
The rule that determines which operator is evaluated FIRST in an expression containing multiple operators (e.g., `*` before `+`)
वह नियम जो तय करता है कि कई ऑपरेटर वाले व्यंजक में किस ऑपरेटर की गणना पहले होगी (जैसे `+` से पहले `*`)
Correct
B
The speed of an operator
किसी ऑपरेटर की गति
C
The number of variables in a program
प्रोग्राम में वेरिएबल्स की संख्या
D
The alphabetical order of keywords
कीवर्ड्स का वर्णमाला क्रम
Solution Breakdown:
-> Just like BODMAS in math, in `5 + 2 * 3`, multiplication has higher precedence than addition, so `2 * 3` is evaluated first, yielding `11` (not `21`). -> Hence, Option (A) is the correct answer.
-> गणित के BODMAS की तरह, `5 + 2 * 3` में गुणा की प्राथमिकता अधिक होने से पहले `2 * 3 = 6` और फिर `5 + 6 = 11` मिलता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1491 NEW
📜 PYQs EASY
What is the main purpose of "Comments" in a computer program?
कंप्यूटर प्रोग्राम में "कमेंट्स" का मुख्य उद्देश्य क्या होता है?
A
To explain code logic to human programmers; they are completely ignored by the compiler/interpreter
मानव प्रोग्रामरों को कोड का तर्क समझाने के लिए; कंपाइलर या इंटरप्रेटर इन्हें पूरी तरह नज़रअंदाज़ कर देते हैं
Correct
B
To make the program run faster
प्रोग्राम को तेज़ चलाने के लिए
C
To print output on the monitor
मॉनिटर पर आउटपुट प्रिंट करने के लिए
D
To store user passwords
यूज़र पासवर्ड स्टोर करने के लिए
Solution Breakdown:
-> Good comments make complex code easy to read and maintain later, without adding any size or overhead to the compiled machine code. -> Hence, Option (A) is the correct answer.
-> कमेंट्स कोड को पढ़ने और समझने में आसान बनाते हैं तथा प्रोग्राम के निष्पादन या गति पर इनका कोई असर नहीं पड़ता। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1492 NEW
📜 PYQs EASY
Which programming paradigm uses a "Top-Down" design approach, breaking a problem down into functions/procedures (e.g., C, Pascal, FORTRAN)?
कौन सी प्रोग्रामिंग शैली "टॉप-डाउन" दृष्टिकोण का उपयोग करती है और समस्या को छोटे फंक्शंस/प्रोसीजर में बांटती है (जैसे C, Pascal, FORTRAN)?
A
Object-Oriented Programming
ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग
B
Logic Programming
लॉजिक प्रोग्रामिंग
C
Markup Programming
मार्कअप प्रोग्रामिंग
D
Procedural (Structured) Programming
प्रोसीजरल (संरचित) प्रोग्रामिंग
Correct
Solution Breakdown:
-> Procedural languages (like C) follow a Top-Down approach focusing on functions, whereas Object-Oriented languages (like C++, Java) follow a Bottom-Up approach focusing on data and objects. -> Hence, Option (D) is the correct answer.
-> प्रोसीजरल भाषाएँ (C) टॉप-डाउन अप्रोच पर और ऑब्जेक्ट-ओरिएंटेड भाषाएँ (C++, Java) बॉटम-अप अप्रोच पर काम करती हैं। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 1493 NEW
📜 PYQs MEDIUM
What is the difference between "Call by Value" and "Call by Reference" when passing arguments to a function?
किसी फंक्शन में आर्ग्युमेंट पास करते समय "कॉल बाय वैल्यू" और "कॉल बाय रेफरेंस" में क्या अंतर है?
A
Call by Value modifies the original variable
कॉल बाय वैल्यू मूल वेरिएबल को बदल देता है
B
Both work identically
दोनों एक समान काम करते हैं
C
Call by Value passes a copy of the variable (original stays unchanged), whereas Call by Reference passes the memory address (changes inside the function modify the original variable)
कॉल बाय वैल्यू में वेरिएबल की कॉपी भेजी जाती है (मूल मान नहीं बदलता), जबकि कॉल बाय रेफरेंस में मेमोरी एड्रेस भेजा जाता है (बदलाव मूल वेरिएबल को भी बदल देते हैं)
Correct
D
Call by Reference is not supported in C++
C++ में कॉल बाय रेफरेंस सपोर्ट नहीं होता
Solution Breakdown:
-> Call by Value protects original data from accidental changes; Call by Reference is useful when a function needs to swap or update original variables (like `swap(&a, &b)`). -> Hence, Option (C) is the correct answer.
-> कॉल बाय वैल्यू मूल डेटा को सुरक्षित रखता है, जबकि कॉल बाय रेफरेंस मूल वेरिएबल को सीधे अपडेट करने में मदद करता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1494 NEW
📜 PYQs MEDIUM
What runtime error occurs if a recursive function does NOT have a proper Base Case (stopping condition)?
यदि किसी रिकर्सिव फंक्शन में सही बेस केस (रुकने की शर्त) न हो, तो कौन सी रन-टाइम त्रुटि होती है?
A
Syntax Error
सिंटैक्स एरर
B
Stack Overflow Error
स्टैक ओवरफ्लो एरर
Correct
C
Linker Error
लिंकर एरर
D
File Not Found Error
फाइल नॉट फाउंड एरर
Solution Breakdown:
-> Every recursive call pushes a new activation frame onto the Call Stack in RAM. Without a base case, the stack fills up completely and crashes with a Stack Overflow error. -> Hence, Option (B) is the correct answer.
-> हर रिकर्सिव कॉल के लिए RAM के कॉल स्टैक में जगह बनती है। रुकने की शर्त न होने पर स्टैक पूरी तरह भर जाता है और 'स्टैक ओवरफ्लो' एरर आ जाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1495 NEW
📜 PYQs EASY
What is "Recursion" in computer programming?
कंप्यूटर प्रोग्रामिंग में "रिकर्शन" क्या होता है?
A
A function calling itself directly or indirectly to solve smaller sub-problems
किसी फंक्शन द्वारा छोटी उप-समस्याओं को हल करने के लिए स्वयं को सीधे या अप्रत्यक्ष रूप से कॉल करना
Correct
B
Deleting a function
किसी फंक्शन को डिलीट करना
C
Writing code without loops
बिना लूप के कोड लिखना
D
Compiling a program twice
प्रोग्राम को दो बार कंपाइल करना
Solution Breakdown:
-> Recursion is widely used to compute factorials, Fibonacci numbers, and traverse tree data structures. Every valid recursive function MUST have a "Base Case" to stop calling itself. -> Hence, Option (A) is the correct answer.
-> रिकर्शन का उपयोग फैक्टोरियल, फिबोनाची और ट्री ट्रैवर्सल में होता है। अनंत लूप से बचने के लिए इसमें एक 'बेस केस' होना अनिवार्य है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1496 NEW
📜 PYQs EASY
What is the difference between the `break` statement and the `continue` statement inside a loop?
लूप के अंदर `break` स्टेटमेंट और `continue` स्टेटमेंट में क्या अंतर है?
A
Both terminate the entire program
दोनों पूरे प्रोग्राम को बंद कर देते हैं
B
`continue` exits the loop permanently
`continue` लूप से स्थायी रूप से बाहर निकल जाता है
C
`break` restarts the computer
`break` कंप्यूटर को रीस्टार्ट करता है
D
`break` immediately terminates the entire loop, whereas `continue` skips only the current iteration and jumps to the next iteration
`break` पूरे लूप को तुरंत समाप्त कर देता है, जबकि `continue` केवल वर्तमान चरण को छोड़कर अगले चरण पर चला जाता है
Correct
Solution Breakdown:
-> Use `break` when you have found what you were searching for and want to exit early; use `continue` when you want to ignore one specific item and keep looping. -> Hence, Option (D) is the correct answer.
-> लूप को पूरी तरह रोकने के लिए `break` और केवल एक राउंड को स्किप करके आगे बढ़ने के लिए `continue` का उपयोग होता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 1497 NEW
📜 PYQs EASY
Which of the following is an "Exit-Controlled Loop" (meaning the loop body is guaranteed to execute AT LEAST ONCE even if the condition is false)?
निम्नलिखित में से कौन सा एक "एग्जिट-कंट्रोल्ड लूप" है (अर्थात् शर्त गलत होने पर भी लूप बॉडी कम से कम एक बार ज़रूर चलती है)?
A
`for` loop
फॉर लूप
B
`while` loop
व्हाइल लूप
C
`do-while` loop
डू-व्हाइल लूप
Correct
D
`if-else` statement
इफ-एल्स स्टेटमेंट
Solution Breakdown:
-> `for` and `while` are Entry-Controlled loops (condition is checked before entering), whereas `do-while` checks the condition at the bottom (exit), guaranteeing at least one execution. -> Hence, Option (C) is the correct answer.
-> `for` और `while` में शर्त पहले जांची जाती है, जबकि `do-while` में शर्त अंत में जांची जाती है, इसलिए यह कम से कम एक बार अवश्य चलता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1498 NEW
📜 PYQs MEDIUM
What is the difference between the `=` operator and the `==` operator in C, C++, Java, and Python?
C, C++, Java और Python में `=` ऑपरेटर और `==` ऑपरेटर में क्या अंतर है?
A
Both are used for addition
दोनों जोड़ने के लिए उपयोग होते हैं
B
`=` is the Assignment operator (assigns a value), whereas `==` is the Equality comparison operator (checks if two values are equal)
`=` असाइनमेंट ऑपरेटर है (मान सौंपता है), जबकि `==` तुलनात्मक ऑपरेटर है (जांचता है कि दो मान बराबर हैं या नहीं)
Correct
C
`==` assigns a value, `=` compares values
`==` मान सौंपता है और `=` तुलना करता है
D
Both are identical
दोनों बिल्कुल एक जैसे हैं
Solution Breakdown:
-> Writing `x = 5` stores 5 into `x`, whereas `x == 5` checks whether `x` currently equals 5 and returns `True` or `False`. -> Hence, Option (B) is the correct answer.
-> `x = 5` वेरिएबल `x` में 5 स्टोर करता है, जबकि `x == 5` यह जांचता है कि `x` का मान 5 के बराबर है या नहीं। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1499 NEW
📜 PYQs EASY
Which Logical Operator returns `True` ONLY when BOTH conditions are `True`?
कौन सा लॉजिकल ऑपरेटर केवल तभी `True` देता है जब दोनों शर्तें `True` हों?
A
Logical AND (`&&` or `and`)
लॉजिकल AND
Correct
B
Logical OR (`||` or `or`)
लॉजिकल OR
C
Logical NOT (`!` or `not`)
लॉजिकल NOT
D
Logical XOR
लॉजिकल XOR
Solution Breakdown:
-> Logical AND requires all combined conditions to be true; Logical OR returns true if at least one condition is true; Logical NOT reverses true to false and vice versa. -> Hence, Option (A) is the correct answer.
-> लॉजिकल AND में दोनों शर्तों का सत्य होना आवश्यक है, जबकि OR में किसी एक शर्त के सत्य होने पर ही परिणाम `True` आ जाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1500 NEW
📜 PYQs EASY
What does the Modulus operator (`%`) return in programming languages like C, Java, and Python?
C, Java और Python जैसी प्रोग्रामिंग भाषाओं में मॉड्यूलस ऑपरेटर (`%`) क्या परिणाम देता है?
A
The percentage of a number
किसी संख्या का प्रतिशत
B
The quotient of division
भाग का भागफल
C
The square root of a number
किसी संख्या का वर्गमूल
D
The remainder after integer division
पूर्णांक भाग के बाद बचा हुआ शेषफल
Correct
Solution Breakdown:
-> For example, `17 % 5` evaluates to `2` because 17 divided by 5 leaves a remainder of 2. It is widely used to check whether a number is even or odd (`n % 2 == 0`). -> Hence, Option (D) is the correct answer.
-> उदाहरण के लिए, `17 % 5` का परिणाम `2` आता है क्योंकि 17 को 5 से भाग देने पर 2 शेष बचता है। इसका उपयोग सम-विषम संख्या जांचने में बहुत होता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Prev 58 59 60 61 62 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!