Trending ▼   ResFinder  

ICSE Class X Question Bank 2024 : Computer Science : Constructor

4 pages, 33 questions, 0 questions with responses, 0 total responses,    0    0
Ayushmaan Chowdhury
Delhi Public School (DPS) Megacity, Kolkata
10 science
+Fave Message
 Home > ayushmaancho >

Formatting page ...

Question Bank (Term 2) Subject Computer Applications Class X CONSTRUCTOR 1. Choose the correct answer. 1) Which unit of a class gets called when the object of the class is created? i) function ii) constructor iii) access specifier iv) instance variable 2) What is constructor in Java? i) It is an object ii) It is a recursive block of code iii) It is a block of code like method iv) An instance variable 3) The default constructor is used for i) Calling default method ii) Initializing default values to instance variables iii) Differencing default objects iv) Calling static method 4) What is true about constructor i) It must have return type. ii) It can take any number of parameters iii) It has name other than class name iv) Constructor cannot accept any parameter 5) If constructors are overloaded, what differentiates it? i) Parameter list ii) Return type iii) Both a and b iv) None of these

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

© 2010 - 2024 ResPaper. Terms of ServiceContact Us Advertise with us

 

ayushmaancho chat