53 OOP (Computer Science) questions asked in Bihar STET previous year papers, each with the correct answer and explanation. Read them free on UTpaper, or attempt the full papers as timed online tests.
What is the main purpose of inheritance in OOP?OOP में इनहेरिटेंस का मुख्य उद्देश्य क्या है?
ATo create instances of classesक्लास के इंस्टैंस बनाना
BTo prevent data abstractionडेटा एब्सट्रैक्शन को रोकना
CTo establish a parent-child relationship between classesक्लास के बीच पैरेंट-चाइल्ड रिलेशनशीप स्थापित करना
DTo define exceptionsएक्सेप्शन को परिभाषित करना
Show answerHide answer
Correct answer: (C)To establish a parent-child relationship between classesक्लास के बीच पैरेंट-चाइल्ड रिलेशनशीप स्थापित करना
Explanation
Inheritance creates a parent-child (is-a) relationship, so a subclass reuses and extends the members of its parent class.Inheritance पैरेंट-चाइल्ड (is-a) संबंध बनाती है, जिससे सबक्लास अपने पैरेंट क्लास के सदस्यों को दोबारा उपयोग और विस्तारित करती है।
What are abstract methods?एब्सट्रैक्ट मेथड्स क्या हैं?
AMethods that are inaccessible to the outside worldवे मेथड्स जो बाहरी दुनिया के लिए अप्राप्य हैं।
BMethods that have implementation detailsवे मेथड्स जिनमें कार्यान्वयन विवरण हैं।
CMethods without a body, defined in an abstract classकिसी एब्सट्रैक्ट क्लास में परिभाषित बिना किसी बॉडी के मेथड्स
DMethods that cannot be inheritedवे मेथड्स जो इनहेरिटेड में नहीं मिल सकतीं हैं।
Show answerHide answer
Correct answer: (C)Methods without a body, defined in an abstract classकिसी एब्सट्रैक्ट क्लास में परिभाषित बिना किसी बॉडी के मेथड्स
Explanation
An abstract method is declared without a body, inside an abstract class (or interface). Concrete subclasses must provide its implementation.Abstract मेथड बिना बॉडी के, किसी abstract क्लास (या इंटरफेस) के अंदर घोषित होता है। Concrete सबक्लास को उसका कार्यान्वयन देना होता है।
What does a first order predicate logic contain?प्रथम क्रम विधेय तर्क में क्या होता है?
APredicate and a subjectविधेय और एक कर्ता
BPredicate and a Prepositionविधेय और एक पूर्वसर्ग
CSubject and an objectकरता और एक वस्तु
DNone of the aboveइनमें से कोई नहीं
Show answerHide answer
Correct answer: (A)Predicate and a subjectविधेय और एक कर्ता
Explanation
First-order predicate logic statements are built from predicates applied to subjects (terms or objects), for example Man(Socrates), together with quantifiers and connectives.First-order predicate logic के कथन विषयों (terms या objects) पर लागू predicate से बनते हैं, जैसे Man(Socrates), साथ में quantifier और connective।
How to use these Bihar STET Computer Science questions
Every question here was asked in a real Bihar STET paper; the paper and shift are shown on the card, and the number opens the question on its own page. Try each one before tapping Show answer, then attempt the full Bihar STET papers as timed tests to check your speed under exam conditions.