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

Programming Languages

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

Timed Quiz
Newest Classic 25 Qs
No Questions Match Your Filter

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

Question 226 NEW
📜 PYQs MEDIUM
What is a measure of the amount of RAM memory needed by an algorithm to execute called?
किसी एल्गोरिदम को निष्पादित करने के लिए आवश्यक मेमोरी की मात्रा का माप क्या कहलाता है?
A
Space Complexity (Space Efficiency)
स्पेस कॉम्प्लेक्सिटी (Space Complexity)
Correct
B
Time Complexity
टाइम कॉम्प्लेक्सिटी
C
Syntax Complexity
सिंटैक्स कॉम्प्लेक्सिटी
D
Clock Speed
क्लॉक स्पीड
Solution Breakdown:
-> Algorithm performance is evaluated by Time Complexity (execution time) and Space Complexity (memory consumed). -> Hence, Option (A) is the correct answer.
-> एल्गोरिदम द्वारा उपयोग की जाने वाली मेमोरी का माप 'स्पेस कॉम्प्लेक्सिटी' कहलाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 227 NEW
📜 PYQs EASY
What is an unexpected event or error condition that occurs during program execution and disrupts the normal flow of instructions called?
प्रोग्राम के निष्पादन के दौरान होने वाली वह अनपेक्षित घटना क्या कहलाती है जो निर्देशों के सामान्य प्रवाह को बाधित कर देती है?
A
Abstraction
एब्स्ट्रैक्शन
B
Inheritance
इनहेरिटेंस
C
Polymorphism
पॉलीमॉर्फिज़्म
D
Exception
एक्सेप्शन (Exception)
Correct
Solution Breakdown:
-> Exceptions (like `DivideByZero` or `FileNotFound`) are caught and handled cleanly using `try-catch` blocks so the program does not crash abruptly. -> Hence, Option (D) is the correct answer.
-> प्रोग्राम चलते समय सामान्य प्रवाह को रोकने वाली त्रुटि को 'एक्सेप्शन' (Exception) कहते हैं। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 228 NEW
📜 PYQs MEDIUM
What is the primary purpose of an "Interface" in Object-Oriented Programming (such as Java/C#)?
ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग (जैसे Java/C#) में "इंटरफेस" (Interface) का मुख्य उद्देश्य क्या होता है?
A
To store private variables
प्राइवेट वेरिएबल स्टोर करना
B
To create constructors
कंस्ट्रक्टर बनाना
C
To achieve total abstraction by defining a contract of methods that implementing classes must define
पूर्ण एब्स्ट्रैक्शन प्रदान करना और ऐसे मेथड्स का समूह परिभाषित करना जिन्हें लागू करने वाली क्लासेस को परिभाषित करना अनिवार्य है
Correct
D
To replace the compiler
कंपाइलर की जगह लेना
Solution Breakdown:
-> An Interface defines *what* a class must do without specifying *how*, enabling multiple inheritance of types and loose coupling. -> Hence, Option (C) is the correct answer.
-> इंटरफेस पूर्ण एब्स्ट्रैक्शन देता है और लागू करने वाली क्लास के लिए आवश्यक मेथड्स तय करता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 229 NEW
📜 PYQs EASY
In OOP, what is a special member function that has the EXACT SAME NAME as its class and is automatically invoked when an object is created?
OOP में, वह विशेष फंक्शन क्या कहलाता है जिसका नाम ठीक अपनी क्लास के नाम जैसा होता है और जो ऑब्जेक्ट बनते ही अपने आप कॉल हो जाता है?
A
Destructor
डिस्ट्रक्टर
B
Constructor
कंस्ट्रक्टर (Constructor)
Correct
C
Pointer
पॉइंटर
D
Namespace
नेमस्पेस
Solution Breakdown:
-> A Constructor initializes an object's data members when the object is instantiated and has no return type. -> Hence, Option (B) is the correct answer.
-> कंस्ट्रक्टर का नाम क्लास के नाम के समान होता है और यह ऑब्जेक्ट बनने पर स्वतः चलता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 230 NEW
📜 PYQs MEDIUM
In OOP, defining multiple methods in the SAME class with the same name but DIFFERENT parameters (number or type of arguments) is called:
OOP में, एक ही क्लास में समान नाम लेकिन अलग-अलग पैरामीटर वाले कई मेथड्स बनाना क्या कहलाता है?
A
Method Overloading
मेथड ओवरलोडिंग (Method Overloading)
Correct
B
Method Overriding
मेथड ओवरराइडिंग
C
Inheritance
इनहेरिटेंस
D
Encapsulation
एनकैप्सुलेशन
Solution Breakdown:
-> Method Overloading is compile-time polymorphism—allowing the same function name (e.g., `add(int, int)` and `add(double, double)`) to handle different inputs. -> Hence, Option (A) is the correct answer.
-> समान नाम और अलग पैरामीटर वाले फंक्शंस बनाना 'मेथड ओवरलोडिंग' कहलाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 231 NEW
📜 PYQs EASY
In OOP, what is the mechanism of creating a new (derived) class that acquires the properties and behaviors of an existing (base) class called?
OOP में, किसी मौजूदा (बेस) क्लास के गुणों और व्यवहार को प्राप्त करके एक नई (डिराइव्ड) क्लास बनाने की प्रक्रिया क्या कहलाती है?
A
Encapsulation
एनकैप्सुलेशन
B
Abstraction
एब्स्ट्रैक्शन
C
Overloading
ओवरलोडिंग
D
Inheritance (Derivation)
इनहेरिटेंस (Inheritance)
Correct
Solution Breakdown:
-> Inheritance promotes code reusability by letting subclasses inherit fields and methods from parent (base) classes. -> Hence, Option (D) is the correct answer.
-> इनहेरिटेंस से नई क्लास पुरानी क्लास के गुणों को पुनः उपयोग (Reuse) कर सकती है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 232 NEW
📜 PYQs EASY
In OOP, what is a variable that represents a specific instance created from a Class blueprint called?
OOP में, किसी क्लास (Class) के ब्लूप्रिंट से बनाए गए विशिष्ट इंस्टेंस को क्या कहा जाता है?
A
Method
मेथड
B
Constructor
कंस्ट्रक्टर
C
Object
ऑब्जेक्ट (Object)
Correct
D
Header
हेडर
Solution Breakdown:
-> A Class is a logical blueprint/template, whereas an Object is a real runtime instance of that class occupying memory. -> Hence, Option (C) is the correct answer.
-> क्लास एक ब्लूप्रिंट है और ऑब्जेक्ट उस क्लास का वास्तविक इंस्टेंस होता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 233 NEW
📜 PYQs EASY
In Object-Oriented Programming (OOP), what is the concept of wrapping data (attributes) and methods together into a single unit while hiding internal details from outside access?
ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग (OOP) में, डेटा और मेथड्स को एक इकाई में बांधना और आंतरिक डेटा को बाहरी एक्सेस से छिपाना क्या कहलाता है?
A
Polymorphism
पॉलीमॉर्फिज़्म
B
Encapsulation
एनकैप्सुलेशन (Encapsulation)
Correct
C
Inheritance
इनहेरिटेंस
D
Compilation
कंपाइलेशन
Solution Breakdown:
-> Encapsulation bundles data and functions inside a class and restricts direct external access (Data Hiding) using access modifiers like `private`. -> Hence, Option (B) is the correct answer.
-> एनकैप्सुलेशन डेटा और फंक्शन को एक यूनिट में बांधता है और डेटा हाइडिंग प्रदान करता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 234 NEW
📜 PYQs MEDIUM
In programming languages (like C++ or C#), what is the primary purpose of using "Namespaces"?
प्रोग्रामिंग भाषाओं (जैसे C++ या C#) में "नेमस्पेस" (Namespaces) का मुख्य उद्देश्य क्या होता है?
A
To organize code into logical groups and prevent naming conflicts (collisions) between identical identifiers from different libraries
कोड को तार्किक समूहों में व्यवस्थित करना और विभिन्न लाइब्रेरी के समान नामों के बीच टकराव (Name collision) को रोकना
Correct
B
To increase CPU clock speed
CPU की गति बढ़ाना
C
To delete unused variables
अनुपयोगी वेरिएबल डिलीट करना
D
To handle hardware interrupts
हार्डवेयर इंटरप्ट संभालना
Solution Breakdown:
-> Namespaces keep one set of names separate from another, allowing two libraries to have functions with the same name without clashing. -> Hence, Option (A) is the correct answer.
-> नेमस्पेस समान नाम वाले फंक्शन या क्लास के बीच नाम के टकराव को रोकता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 235 NEW
📜 PYQs EASY
What is the name given by a programmer to entities such as variables, functions, classes, or arrays called?
प्रोग्रामर द्वारा वेरिएबल्स, फंक्शंस, क्लासेस या एरे को दिए गए नाम को क्या कहा जाता है?
A
Operator
ऑपरेटर
B
Compiler
कंपाइलर
C
Keyword
कीवर्ड
D
Identifier
आइडेंटिफायर (Identifier)
Correct
Solution Breakdown:
-> An Identifier is a user-defined name (starting with a letter or underscore) that uniquely identifies a variable, function, or class. -> Hence, Option (D) is the correct answer.
-> वेरिएबल, क्लास या फंक्शन के नाम को 'आइडेंटिफायर' कहा जाता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 236 NEW
📜 PYQs MEDIUM
Which data type is specifically used in databases and programming to store Date and Time along with milliseconds and time zone?
मिलीसेकंड और टाइम ज़ोन के साथ तारीख और समय स्टोर करने के लिए किस डेटा टाइप का उपयोग किया जाता है?
A
`int`
`int`
B
`float`
`float`
C
`timestamp`
टाइमस्टैम्प (timestamp)
Correct
D
`char`
`char`
Solution Breakdown:
-> `timestamp` records an exact point in time (date + hours/minutes/seconds/milliseconds + time zone). -> Hence, Option (C) is the correct answer.
-> टाइमस्टैम्प (`timestamp`) तारीख, समय, मिलीसेकंड और टाइम ज़ोन को सटीक रूप से स्टोर करता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 237 NEW
📜 PYQs EASY
Which basic data type is used in programming languages to store numbers with decimal (fractional) values?
प्रोग्रामिंग भाषाओं में दशमलव (Decimal) मान वाली संख्याओं को स्टोर करने के लिए किस डेटा टाइप का उपयोग किया जाता है?
A
`int` (Integer)
`int` (Integer)
B
`float` (Floating-point)
फ्लोट (Float)
Correct
C
`char` (Character)
`char` (Character)
D
`bool` (Boolean)
`bool` (Boolean)
Solution Breakdown:
-> `float` (and `double` for higher precision) stores real numbers containing decimal points, such as `3.14` or `98.6`. -> Hence, Option (B) is the correct answer.
-> दशमलव संख्याओं को स्टोर करने के लिए `float` डेटा टाइप का उपयोग होता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 238 NEW
📜 PYQs EASY
Which control statement is best used to select one block of code out of MORE THAN TWO discrete choices?
दो से अधिक निश्चित विकल्पों में से किसी एक कोड ब्लॉक को चुनने के लिए किस कंट्रोल स्टेटमेंट का उपयोग सबसे उपयुक्त है?
A
`switch` statement
स्विच स्टेटमेंट (switch)
Correct
B
`goto` statement
गो-टू स्टेटमेंट
C
`break` statement
ब्रेक स्टेटमेंट
D
`return` statement
रिटर्न स्टेटमेंट
Solution Breakdown:
-> A `switch` statement cleanly replaces long chains of `if-else-if` statements when matching a variable against multiple constant cases. -> Hence, Option (A) is the correct answer.
-> दो से अधिक विकल्पों में से चयन करने के लिए `switch` स्टेटमेंट का उपयोग किया जाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 239 NEW
📜 PYQs EASY
Apart from the default Sequential flow, what are the other two fundamental types of control flow in programming?
डिफ़ॉल्ट सीक्वेंशियल (क्रमिक) प्रवाह के अलावा, प्रोग्रामिंग में निष्पादन प्रवाह के अन्य दो मूलभूत प्रकार कौन से हैं?
A
Static and Dynamic
स्टैटिक और डायनामिक
B
Input and Output
इनपुट और आउटपुट
C
Hardware and Software
हार्डवेयर और सॉफ्टवेयर
D
Conditional (Selection) and Looping (Iteration)
कंडीशनल (शर्त आधारित) और लूपिंग (दोहराव)
Correct
Solution Breakdown:
-> Every structured program is built using three control structures: Sequence, Selection (Conditional `if/switch`), and Iteration (Looping `for/while`). -> Hence, Option (D) is the correct answer.
-> प्रोग्राम का प्रवाह तीन प्रकार का होता है: सीक्वेंशियल, कंडीशनल और लूपिंग। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 240 NEW
📜 PYQs EASY
Which of the following is NOT true about an Algorithm?
एल्गोरिदम (Algorithm) के बारे में निम्नलिखित में से क्या सत्य नहीं है?
A
It is a step-by-step procedure to solve a problem
यह समस्या हल करने की चरण-दर-चरण प्रक्रिया है
B
It is easy to understand and debug
इसे समझना और डीबग करना आसान है
C
It is a graphical diagram made of geometric shapes
यह ज्यामितीय आकृतियों से बना एक ग्राफिकल आरेख है
Correct
D
It is independent of any specific programming language
यह किसी विशेष प्रोग्रामिंग भाषा से स्वतंत्र होता है
Solution Breakdown:
-> A graphical diagram of program logic is a Flowchart, NOT an Algorithm. -> Hence, Option (C) is the correct answer.
-> ग्राफिकल आरेख फ्लोचार्ट होता है, एल्गोरिदम नहीं। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 241 NEW
📜 PYQs MEDIUM
In a Flowchart, what does a small "Circle" symbol represent?
फ्लोचार्ट में एक छोटा "वृत्त" (Circle) क्या दर्शाता है?
A
Terminator
टर्मिनेटर
B
On-Page Connector
ऑन-पेज कनेक्टर (Connector)
Correct
C
Process
प्रोसेस
D
Decision
निर्णय
Solution Breakdown:
-> A small Circle acts as an On-Page Connector to link separated parts of a complex flowchart on the same page, whereas a Pentagon (home-plate shape) is used as an Off-Page Connector. -> Hence, Option (B) is the correct answer.
-> छोटा वृत्त एक ही पेज पर फ्लोचार्ट के दो हिस्सों को जोड़ने (On-page connector) के काम आता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 242 NEW
📜 PYQs EASY
Which symbol is used in a Flowchart to show the direction and sequence of the flow of control?
फ्लोचार्ट में नियंत्रण के प्रवाह (Flow of control) की दिशा दर्शाने के लिए किस प्रतीक का उपयोग किया जाता है?
A
Arrow (Flow Line)
तीर का निशान (Arrow)
Correct
B
Dotted Line
डॉटेड लाइन
C
Triangle
त्रिभुज
D
Square
वर्ग
Solution Breakdown:
-> Flow lines (arrows) connect flowchart symbols and clearly indicate the execution direction. -> Hence, Option (A) is the correct answer.
-> तीर के निशान (Arrow) फ्लोचार्ट में कार्य के क्रम और दिशा को दर्शाते हैं। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 243 NEW
📜 PYQs EASY
Which Flowchart symbol is used to represent "Input" (reading values) or "Output" (displaying results)?
फ्लोचार्ट में "इनपुट" लेने या "आउटपुट" दिखाने के लिए किस प्रतीक का उपयोग किया जाता है?
A
Rectangle
आयत
B
Diamond
डायमंड
C
Circle
वृत्त
D
Parallelogram
समांतर चतुर्भुज (Parallelogram)
Correct
Solution Breakdown:
-> A Parallelogram indicates data entering the system (Read/Input) or leaving the system (Print/Output). -> Hence, Option (D) is the correct answer.
-> समांतर चतुर्भुज (Parallelogram) इनपुट और आउटपुट ऑपरेशंस को दर्शाता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 244 NEW
📜 PYQs EASY
To represent a decision or conditional `if...else` branching in a Flowchart, which symbol is used?
फ्लोचार्ट में निर्णय लेने या `if...else` शर्त को दर्शाने के लिए किस प्रतीक का उपयोग किया जाता है?
A
Oval
अंडाकार
B
Parallelogram
समांतर चतुर्भुज
C
Diamond
डायमंड (Diamond)
Correct
D
Circle
वृत्त
Solution Breakdown:
-> A Diamond symbol represents a Yes/No or True/False decision point where the flow branches into different paths. -> Hence, Option (C) is the correct answer.
-> डायमंड चिह्न निर्णय (Decision) या `if...else` शर्त को दर्शाता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 245 NEW
📜 PYQs EASY
In a Flowchart, what does a "Rectangle" symbol represent?
फ्लोचार्ट में "आयत" (Rectangle) का प्रतीक क्या दर्शाता है?
A
Decision
निर्णय
B
Process (Calculation or Action)
प्रोसेस (गणना या कार्य)
Correct
C
Input
Output / इनपुट / आउटपुट
D
Connector
कनेक्टर
Solution Breakdown:
-> A Rectangle represents any processing step, arithmetic calculation, or variable assignment (e.g., `sum = a + b`). -> Hence, Option (B) is the correct answer.
-> आयत (Rectangle) किसी प्रोसेस या गणना के चरण को दर्शाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 246 NEW
📜 PYQs EASY
In a Flowchart, which symbol is used to represent the "Start" or "End" (Terminator) of a program?
फ्लोचार्ट में किसी प्रोग्राम के "शुरू" (Start) या "अंत" (End) को दर्शाने के लिए किस प्रतीक का उपयोग किया जाता है?
A
Oval (Rounded Rectangle)
अंडाकार (Oval)
Correct
B
Rectangle
आयत (Rectangle)
C
Diamond
हीरा (Diamond)
D
Parallelogram
समांतर चतुर्भुज (Parallelogram)
Solution Breakdown:
-> The Oval (Terminal) symbol marks the beginning and termination points of any flowchart. -> Hence, Option (A) is the correct answer.
-> फ्लोचार्ट में शुरुआत और समाप्ति को दर्शाने के लिए अंडाकार (Oval) चिह्न का उपयोग होता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 247 NEW
📜 PYQs EASY
What is the graphical (pictorial) representation of an algorithm or program workflow called?
किसी एल्गोरिदम या प्रोग्राम के कार्यप्रवाह के ग्राफिकल (चित्रमय) प्रदर्शन को क्या कहा जाता है?
A
Pseudocode
स्यूडोकोड
B
Source Code
सोर्स कोड
C
Syntax
सिंटैक्स
D
Flowchart
फ्लोचार्ट (Flowchart)
Correct
Solution Breakdown:
-> A Flowchart uses standardized geometric shapes connected by arrows to visually map out program logic. -> Hence, Option (D) is the correct answer.
-> फ्लोचार्ट विभिन्न ज्यामितीय प्रतीकों के माध्यम से एल्गोरिदम के तर्क को चित्र रूप में दर्शाता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 248 NEW
📜 PYQs MEDIUM
Which property of an Algorithm ensures that every single step is precisely defined and leaves no ambiguity?
एल्गोरिदम का कौन सा गुण यह सुनिश्चित करता है कि प्रत्येक चरण स्पष्ट रूप से परिभाषित हो और कोई अस्पष्टता न रहे?
A
Finiteness
फाइनाइटनेस
B
Input
इनपुट
C
Definiteness
डेफिनिटनेस (Definiteness)
Correct
D
Complexity
कॉम्प्लेक्सिटी
Solution Breakdown:
-> Definiteness means each instruction in an algorithm must be clear and unambiguous; Finiteness means it must terminate after a finite number of steps. -> Hence, Option (C) is the correct answer.
-> डेफिनिटनेस का अर्थ है कि एल्गोरिदम का हर चरण बिल्कुल स्पष्ट और सटीक होना चाहिए। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 249 NEW
📜 PYQs EASY
A finite, step-by-step logical procedure written in plain language to solve a specific problem is called an:
किसी विशेष समस्या को हल करने के लिए सरल भाषा में लिखी गई सीमित, चरण-दर-चरण (Step-by-step) प्रक्रिया क्या कहलाती है?
A
Compiler
कंपाइलर
B
Algorithm
एल्गोरिदम (Algorithm)
Correct
C
Operating System
ऑपरेटिंग सिस्टम
D
Protocol
प्रोटोकॉल
Solution Breakdown:
-> An Algorithm defines the exact sequence of unambiguous steps required to solve a problem independent of any specific programming language. -> Hence, Option (B) is the correct answer.
-> एल्गोरिदम किसी समस्या को हल करने के लिए स्पष्ट और क्रमबद्ध निर्देशों का समूह है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 250 NEW
📜 PYQs EASY
An ordered set of coded instructions written in a programming language to perform a specific task on a computer is called a:
किसी विशेष कार्य को करने के लिए प्रोग्रामिंग भाषा में लिखे गए निर्देशों के क्रमबद्ध समूह को क्या कहा जाता है?
A
Program
प्रोग्राम (Program)
Correct
B
Hardware
हार्डवेयर
C
Flowchart
फ्लोचार्ट
D
Compiler
कंपाइलर
Solution Breakdown:
-> A Computer Program is a sequence of instructions that tells the CPU exactly how to process data and produce output. -> Hence, Option (A) is the correct answer.
-> कंप्यूटर प्रोग्राम निर्देशों का एक क्रमबद्ध समूह है जिसे कंप्यूटर निष्पादित करता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Prev 8 9 10 Next
ESSENTIAL STUDY KIT

Master Programming 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!