Question 55Asked in Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 1

Which keyword is used to create an instance of a class in most programming languages?अधिकांश प्रोग्रामिंग लैंग्वेज में क्लास का इंस्टेंस बनाने के लिए किस कीवर्ड का उपयोग किया जाता है?

अधिकांश प्रोग्रामिंग लैंग्वेज में क्लास का इंस्टेंस बनाने के लिए किस कीवर्ड का उपयोग किया जाता है?
  1. Aallocalloc
  2. Bnewnew
  3. Ccreatecreate
  4. Dinstanceinstance
Show answerHide answer

Correct answer: (B) newnew

Explanation

The "new" keyword creates (instantiates) an object of a class in Java, C++, C# and similar languages."new" कीवर्ड Java, C++, C# और ऐसी भाषाओं में किसी क्लास का ऑब्जेक्ट बनाता (instantiate करता) है।

From Bihar STET Paper 2 Computer Science (Class 11-12) PYQ, 12 Sep 2023, Shift 1

This is question 55 of Bihar STET Paper 2 Computer Science (Class 11-12) PYQ, 12 Sep 2023, Shift 1. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.