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: Most Important

Programming Basics & Low-Level Languages

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

Timed Quiz
Newest Classic 25 Qs
No Questions Match Your Filter

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

Question 26 NEW
Most Important EASY
What is the "Machine Cycle" (Instruction Cycle) performed continuously by the CPU for every machine language instruction?
प्रत्येक मशीन लैंग्वेज निर्देश के लिए CPU द्वारा लगातार किया जाने वाला "मशीन साइकिल" क्या होता है?
A
Fetch -> Decode -> Execute -> Store
फेच -> डिकोड -> एग्जीक्यूट -> स्टोर
Correct
B
Print -> Scan -> Copy -> Paste
प्रिंट -> स्कैन -> कॉपी -> पेस्ट
C
Compile -> Link -> Load -> Delete
कंपाइल -> लिंक -> लोड -> डिलीट
D
Boot -> Sleep -> Hibernate -> Shutdown
बूट -> स्लीप -> हाइबरनेट -> शटडाउन
Solution Breakdown:
-> The CPU fetches the binary instruction from RAM, decodes its opcode in the Control Unit, executes it in the ALU, and stores the result. -> Hence, Option (A) is the correct answer.
-> CPU मेमोरी से निर्देश लाता (Fetch) है, उसे समझता (Decode) है, ALU में चलाता (Execute) है और परिणाम सेव (Store) करता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 27 NEW
Most Important MEDIUM
In Assembly Language, what is "Register Addressing Mode" (e.g., `ADD AX, BX`)?
असेंबली लैंग्वेज में "रजिस्टर एड्रेसिंग मोड" (जैसे `ADD AX, BX`) क्या होता है?
A
Operands are stored on the hard disk
ऑपरेंड हार्ड डिस्क पर स्टोर होते हैं
B
Operands are typed by the user
ऑपरेंड यूज़र द्वारा टाइप किए जाते हैं
C
Operands are fetched over the internet
ऑपरेंड इंटरनेट से लाए जाते हैं
D
Both operands reside directly inside CPU registers, making execution extremely fast without accessing RAM
दोनों ऑपरेंड सीधे CPU रजिस्टरों के अंदर मौजूद होते हैं, जिससे RAM एक्सेस किए बिना निष्पादन अत्यंत तेज़ होता है
Correct
Solution Breakdown:
-> Register addressing requires zero main-memory reads, making it one of the fastest addressing modes in any CPU. -> Hence, Option (D) is the correct answer.
-> रजिस्टर एड्रेसिंग में RAM से डेटा लाने की ज़रूरत नहीं पड़ती, इसलिए यह सबसे तेज़ एड्रेसिंग मोड्स में से एक है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 28 NEW
Most Important MEDIUM
What is the role of the "Stack Pointer" (`SP`) register in low-level programming?
लो-लेवल प्रोग्रामिंग में "स्टैक पॉइंटर" (`SP`) रजिस्टर की क्या भूमिका होती है?
A
It counts total files on disk
यह डिस्क पर कुल फाइलें गिनता है
B
It stores the BIOS password
यह BIOS पासवर्ड स्टोर करता है
C
It always holds the memory address of the TOP element currently on the CPU Stack
यह हमेशा CPU स्टैक के वर्तमान शीर्ष (Top) तत्व का मेमोरी एड्रेस स्टोर रखता है
Correct
D
It controls the mouse pointer
यह माउस पॉइंटर को नियंत्रित करता है
Solution Breakdown:
-> Whenever `PUSH`, `POP`, `CALL`, or `RET` executes, the CPU automatically updates the Stack Pointer (`SP`) to track the top of the stack. -> Hence, Option (C) is the correct answer.
-> स्टैक में डेटा डालने या निकालने पर `SP` स्वतः अपडेट होकर हमेशा शीर्ष पते की ओर संकेत करता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 29 NEW
Most Important MEDIUM
In Assembly Language, which two instructions are used to place data onto the CPU Stack and retrieve it back?
असेंबली लैंग्वेज में CPU स्टैक पर डेटा रखने और वापस निकालने के लिए किन दो निर्देशों का उपयोग किया जाता है?
A
`ADD` and `SUB`
`ADD` and `SUB`
B
`PUSH` and `POP`
`PUSH` and `POP`
Correct
C
`MOV` and `JMP`
`MOV` and `JMP`
D
`INC` and `DEC`
`INC` and `DEC`
Solution Breakdown:
-> `PUSH` places a register value onto the top of the Stack (decrementing the Stack Pointer), and `POP` removes the top value back into a register. -> Hence, Option (B) is the correct answer.
-> `PUSH` स्टैक के शीर्ष पर डेटा डालता है और `POP` शीर्ष से डेटा निकालता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 30 NEW
Most Important MEDIUM
In Assembly Language, what is the purpose of the `NOP` (No Operation) instruction?
असेंबली लैंग्वेज में `NOP` (नो ऑपरेशन) निर्देश का क्या उद्देश्य होता है?
A
Tells the CPU to do nothing for one clock cycle and move to the next instruction (used for timing delays or memory alignment)
CPU को एक क्लॉक साइकिल तक कुछ न करने और अगले निर्देश पर जाने का आदेश देता है (टाइमिंग देरी या मेमोरी एलाइनमेंट के लिए)
Correct
B
Shuts down the operating system
ऑपरेटिंग सिस्टम बंद करता है
C
Deletes the accumulator
एक्यूमुलेटर को डिलीट करता है
D
Performs a logical NOT operation
लॉजिकल NOT ऑपरेशन करता है
Solution Breakdown:
-> `NOP` consumes a tiny, predictable amount of CPU time without changing any registers or flags. -> Hence, Option (A) is the correct answer.
-> `NOP` बिना किसी रजिस्टर या फ्लैग को बदले केवल एक क्लॉक साइकिल का समय लेता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 31 NEW
Most Important MEDIUM
In Assembly Language, what does the `JMP` instruction perform?
असेंबली लैंग्वेज में `JMP` निर्देश क्या कार्य करता है?
A
Joins two strings
दो स्ट्रिंग्स को जोड़ता है
B
Multiplies two numbers
दो संख्याओं को गुणा करता है
C
Stops the CPU permanently
CPU को स्थायी रूप से रोकता है
D
Unconditionally transfers program execution control to a specified memory address or label
बिना किसी शर्त के प्रोग्राम के निष्पादन नियंत्रण को किसी निर्दिष्ट मेमोरी एड्रेस या लेबल पर स्थानांतरित करता है
Correct
Solution Breakdown:
-> `JMP` (Unconditional Jump) works like `goto` in high-level languages by directly loading a new address into the Program Counter (Instruction Pointer). -> Hence, Option (D) is the correct answer.
-> `JMP` सीधे प्रोग्राम काउंटर का एड्रेस बदलकर प्रोग्राम के प्रवाह को नए स्थान पर भेज देता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 32 NEW
Most Important MEDIUM
In Assembly Language, what does the `CMP` (Compare) instruction do?
असेंबली लैंग्वेज में `CMP` (कम्पेयर) निर्देश क्या करता है?
A
Compresses a file
फाइल को कंप्रेस करता है
B
Copies one register to another
एक रजिस्टर को दूसरे में कॉपी करता है
C
Subtracts the second operand from the first internally to update the CPU Flags Register WITHOUT modifying either operand
दोनों ऑपरेंड को बदले बिना, आंतरिक रूप से घटाव करके CPU फ्लैग्स रजिस्टर को अपडेट करता है
Correct
D
Compiles the code
कोड को कंपाइल करता है
Solution Breakdown:
-> `CMP AX, BX` checks if `AX` is equal to, greater than, or less than `BX` by setting the Zero and Sign flags, usually followed immediately by a conditional jump (`JE`, `JG`, `JL`). -> Hence, Option (C) is the correct answer.
-> `CMP` दो मानों की तुलना करके फ्लैग्स सेट करता है ताकि उसके बाद जंप निर्देश सही दिशा में जा सके। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 33 NEW
Most Important MEDIUM
In Assembly Language, what is the "Flags Register" (Status Register) inside the CPU used for?
असेंबली लैंग्वेज में CPU के अंदर स्थित "फ्लैग्स रजिस्टर" (स्टेटस रजिस्टर) का उपयोग किसके लिए किया जाता है?
A
Storing user files
यूज़र फाइलें स्टोर करने के लिए
B
Storing single-bit status indicators (like Zero Flag, Carry Flag, Overflow Flag, Sign Flag) reflecting the outcome of the last ALU operation
अंतिम ALU ऑपरेशन के परिणाम को दर्शाने वाले सिंगल-बिट स्टेटस इंडिकेटर्स (जैसे ज़ीरो फ्लैग, कैरी फ्लैग, ओवरफ्लो फ्लैग) को स्टोर करने के लिए
Correct
C
Controlling the monitor brightness
मॉनिटर की चमक नियंत्रित करने के लिए
D
Connecting to Wi-Fi
वाई-फाई से जुड़ने के लिए
Solution Breakdown:
-> Conditional jump instructions in Assembly (like `JZ` – Jump if Zero) check the Flags Register to decide whether to branch. -> Hence, Option (B) is the correct answer.
-> असेंबली के कंडीशनल जंप निर्देश (जैसे `JZ`) निर्णय लेने के लिए फ्लैग्स रजिस्टर की स्थिति की जांच करते हैं। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 34 NEW
Most Important MEDIUM
In Low-Level CPU Architecture, what is the full form of "RISC" and "CISC"?
लो-लेवल CPU आर्किटेक्चर में "RISC" और "CISC" का पूर्ण रूप क्या है?
A
Reduced Instruction Set Computer and Complex Instruction Set Computer
रिड्यूस्ड इंस्ट्रक्शन सेट कंप्यूटर और कॉम्प्लेक्स इंस्ट्रक्शन सेट कंप्यूटर
Correct
B
Random Instruction System Code and Central Instruction System Code
रैंडम इंस्ट्रक्शन सिस्टम कोड और सेंट्रल इंस्ट्रक्शन सिस्टम कोड
C
Rapid Internal Storage Chip and Core Internal Storage Chip
रैपिड इंटरनल स्टोरेज चिप और कोर इंटरनल स्टोरेज चिप
D
Real-time Input Set Control and Complex Input Set Control
रियल-टाइम इनपुट सेट कंट्रोल और कॉम्प्लेक्स इनपुट सेट कंट्रोल
Solution Breakdown:
-> RISC (e.g., ARM processors in smartphones) uses a small set of simple, fast, fixed-length instructions; CISC (e.g., Intel/AMD x86) uses a large set of complex variable-length instructions. -> Hence, Option (A) is the correct answer.
-> RISC (जैसे स्मार्टफोन के ARM प्रोसेसर) सरल और कम निर्देशों का उपयोग करता है, जबकि CISC (जैसे x86) जटिल निर्देशों के बड़े सेट का उपयोग करता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 35 NEW
Most Important EASY
What is an "Escape Sequence" in programming languages (such as `\n`, `\t`, `\\`)?
प्रोग्रामिंग भाषाओं में "एस्केप सीक्वेंस" (जैसे `\n`, `\t`, `\\`) क्या होता है?
A
Pressing the `Esc` key to exit an editor
एडिटर से बाहर निकलने के लिए `Esc` कुंजी दबाना
B
A virus escaping antivirus
एंटीवायरस से बचने वाला वायरस
C
A loop termination command
लूप समाप्त करने का कमांड
D
A combination starting with a backslash (`\`) used inside strings to represent special non-printable characters like a new line or tab
बैकस्लैश (`\`) से शुरू होने वाला विशेष संयोजन जिसका उपयोग स्ट्रिंग के अंदर नई लाइन या टैब जैसे विशेष अक्षरों को दर्शाने के लिए होता है
Correct
Solution Breakdown:
-> Common escape sequences: ` -> ` = New Line, `\t` = Horizontal Tab, `\"` = Double Quote, and `\\` = Literal Backslash. -> Hence, Option (D) is the correct answer.
-> ` -> ` नई लाइन के लिए, `\t` टैब स्पेस के लिए और `\\` बैकस्लैश प्रिंट करने के लिए उपयोग किया जाता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 36 NEW
Most Important MEDIUM
Why do compilers and calculators prefer converting Infix expressions into "Postfix" (Reverse Polish Notation) before evaluating them?
कंपाइलर और कैलकुलेटर किसी इनफिक्स व्यंजक की गणना करने से पहले उसे "पोस्टफिक्स" रूप में क्यों बदलते हैं?
A
Because Postfix is longer to write
क्योंकि पोस्टफिक्स लिखने में लंबा होता है
B
Because CPUs cannot read `+` symbols
क्योंकि CPU `+` चिह्न नहीं पढ़ सकते
C
Because Postfix eliminates the need for parentheses and operator precedence rules, allowing fast single-pass evaluation using a Stack
क्योंकि पोस्टफिक्स में कोष्ठक (Parentheses) और प्राथमिकता नियमों की ज़रूरत नहीं रहती और स्टैक की मदद से एक ही बार में तेज़ गणना हो जाती है
Correct
D
Because Postfix uses no memory
क्योंकि पोस्टफिक्स में मेमोरी नहीं लगती
Solution Breakdown:
-> Postfix expressions are unambiguous and evaluate cleanly from left to right with a simple Stack data structure. -> Hence, Option (C) is the correct answer.
-> पोस्टफिक्स में कोष्ठकों की आवश्यकता समाप्त हो जाती है, जिससे स्टैक द्वारा एक ही पास में सटीक गणना संभव होती है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 37 NEW
Most Important EASY
In mathematical and computer expressions, what are the three standard notations for writing arithmetic expressions?
गणितीय और कंप्यूटर व्यंजकों को लिखने के तीन मानक रूप (Notations) कौन से हैं?
A
Linear, Circular, and Tree
लीनियर, सर्कुलर और ट्री
B
Infix, Prefix (Polish), and Postfix (Reverse Polish)
इनफिक्स, प्रीफिक्स और पोस्टफिक्स
Correct
C
Static, Dynamic, and Virtual
स्टैटिक, डायनामिक और वर्चुअल
D
Serial, Parallel, and Hybrid
सीरियल, पैरेलल और हाइब्रिड
Solution Breakdown:
-> Infix places the operator between operands (`A + B`), Prefix places it before (`+ A B`), and Postfix places it after (`A B +`). -> Hence, Option (B) is the correct answer.
-> इनफिक्स में ऑपरेटर बीच में, प्रीफिक्स में पहले और पोस्टफिक्स में बाद में लिखा जाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 38 NEW
Most Important EASY
What is a "Unary Operator" vs. a "Binary Operator" vs. a "Ternary Operator"?
"यूनरी ऑपरेटर", "बाइनरी ऑपरेटर" और "टर्नरी ऑपरेटर" में क्या अंतर है?
A
Unary works on 1 operand (e.g., `++x`), Binary works on 2 operands (e.g., `a + b`), and Ternary works on 3 operands (e.g., `a ? b : c`)
यूनरी 1 ऑपरेंड पर, बाइनरी 2 ऑपरेंड पर और टर्नरी 3 ऑपरेंड पर काम करता है
Correct
B
Unary works on 3 operands
यूनरी 3 ऑपरेंड पर काम करता है
C
Binary works only on 0 and 1
बाइनरी केवल 0 और 1 पर काम करता है
D
Ternary works on 1 operand
टर्नरी 1 ऑपरेंड पर काम करता है
Solution Breakdown:
-> Operators are classified by the number of operands they take: Unary (1), Binary (2), and Ternary (3). -> Hence, Option (A) is the correct answer.
-> ऑपरेंड की संख्या के आधार पर ऑपरेटर्स को यूनरी (1), बाइनरी (2) और टर्नरी (3) में बांटा जाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 39 NEW
Most Important EASY
What is the difference between "Static Typing" (e.g., C, Java) and "Dynamic Typing" (e.g., Python, JavaScript)?
"स्टैटिक टाइपिंग" (जैसे C, Java) और "डायनामिक टाइपिंग" (जैसे Python, JavaScript) में क्या अंतर है?
A
Dynamic typing cannot use numbers
डायनामिक टाइपिंग में संख्याओं का उपयोग नहीं हो सकता
B
Both require declaring data types explicitly
दोनों में डेटा टाइप पहले से घोषित करना अनिवार्य है
C
Static typing only works on Linux
स्टैटिक टाइपिंग केवल लिनक्स पर काम करती है
D
In Static Typing, variable data types are checked at compile-time and must be declared; in Dynamic Typing, types are determined automatically at runtime
स्टैटिक टाइपिंग में डेटा टाइप कंपाइल-टाइम पर जांचे जाते हैं और पहले से घोषित करने होते हैं; डायनामिक टाइपिंग में डेटा टाइप रन-टाइम पर स्वतः तय होते हैं
Correct
Solution Breakdown:
-> Static typing catches type errors early before running the program; dynamic typing lets you write shorter, more flexible code quickly. -> Hence, Option (D) is the correct answer.
-> स्टैटिक टाइपिंग कंपाइलेशन के समय ही टाइप एरर पकड़ लेती है, जबकि डायनामिक टाइपिंग कोडिंग को तेज़ और लचीला बनाती है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 40 NEW
Most Important MEDIUM
What is "Dynamic Programming" in algorithm design?
एल्गोरिदम डिज़ाइन में "डायनामिक प्रोग्रामिंग" क्या होती है?
A
Writing code while moving
चलते-फिरते कोड लिखना
B
Trying every possible combination without saving anything
बिना कुछ सेव किए हर संभावित संयोजन को आज़माना
C
Solving complex problems by breaking them into overlapping sub-problems and storing (memoizing) their results to avoid redundant recalculations
जटिल समस्याओं को ओवरलैपिंग उप-समस्याओं में बांटना और दोबारा गणना से बचने के लिए उनके परिणामों को स्टोर करके रखना
Correct
D
Deleting variables dynamically
वेरिएबल्स को डायनामिक रूप से डिलीट करना
Solution Breakdown:
-> Dynamic Programming dramatically speeds up recursive problems (like Fibonacci or Knapsack) by caching sub-problem answers in a table (Memoization or Tabulation). -> Hence, Option (C) is the correct answer.
-> डायनामिक प्रोग्रामिंग बार-बार आने वाली उप-समस्याओं के उत्तर को मेमोरी में स्टोर कर लेती है ताकि उन्हें दोबारा न निकालना पड़े। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 41 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 42 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 43 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 44 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 45 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 46 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 47 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 48 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 49 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 50 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) बिल्कुल सही है।
Prev 1 2 Next
ESSENTIAL STUDY KIT

Master Programming Basics & Low-Level Languages 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!