COPA programming in java Page-1 Question Bank

1.  Which keyword prevents inheritance of a class?
कौन सा कीवर्ड किसी क्लास की इनहेरिटेंस को रोकता है?  [NCVT Exam 24]

(A) Final
 फाइनल
(B) Class
 क्लास
(C) Super
 सुपर
(D) Constant
 कॉन्स्टन्ट

2.  What will be the return type of a method that not returns any value?
उस विधि का रिटर्न प्रकार क्या होगा जो कोई मान नहीं लौटाता है?  [NCVT Exam 24]

(A) float
(B) Int
(C) double
(D) void

3.  Which class inherits the properties of the other?
कौन सी क्लास दूसरे के गुण इनहेरिटेंस में प्राप्त करता है?  [NCVT Exam 24]

(A) Superclass
(B) Subclass
(C) Class
(D) Parent class

4.  Which loop causes the break statement to exit from the loop ?
कौन सा लूप ब्रेक स्टेटमेंट को लूप से बाहर निकलने का कारण बनता है?  [NCVT Exam 24]

(A) Outermost
 outermost
(B) Depends on program
 depends on program
(C) Switch
(D) Innermost
 innermost

5.  Which loop declaration is valid?
कौन सा लूप डिक्लेरेशन मान्य है?  [NCVT Exam 24]

(A) For ( int i = 7; i < = 77; i += 7 )
(B) For ( int i + = 20; i > = 2; - -i )
 For ( int i += 20; i >= 2; - -i )
(C) For ( int i = 99; i > = 0; i / 9 )
 For ( int i = 99; i >= 0; i / 9 )
(D) For (String s : stringArray)