Advertisement

Udemy WW Udemy WW

Friday, 4 September 2020

Multiple choice question on java - Part 3

PART-1    PART-2   PART-3


1 -Using super keyword we can call


  1. sub class constructor          

  2. super class constructor

  3. child class object    

  4. none of these


2. Data can be passed to the function through


  1. Call by value                      

  2. call by reference

  3. both of above                    

  4. none of these


3. Which of the following loop will be execute at least once even if the condition is false


  1. for loop      

  2. do-while loop

  3. while loop   

  4. none of these


4. Which of the following loop will not execute at least once  if the condition is false


  1. for loop      

  2. do-while loop

  3. while loop   

  4. none of these


5 Inheritance helps in


  1. Reduce redundancy in code        

  2. speed up the program

  3. Easy to read           

  4. none of these


6. the ++ operator  postfix and prefix has the same effect


  1. True                                    

  2. false

  3. Sometime true & sometime false   

  4. none of these


7. x=10,y=5 what would be value of z after executing the following statement

if(x>=9&&y<=8)

z=x+y;

        else

            z=x-y;


  1. 15               

  2. 5

  3. 13               

  4. none of these


8. Member of the structure are accessed by ----------- operator


  1. address operator      

  2. dot operator          

  3. scope resolution op 

  4. none of these


9. constructor can be overloaded


  1. true                        

  2. false

  3. in special cases                   

  4. none of these


10 which of the following is not


 the feature of object oriented programming


  1. Data encapsulation

  2. Inheritance

  3. Operator overloading

  4. data structure

9 comments:

  1. Great Post. Very informative. Keep Sharing!!

    Join Online Java Classes

    For more details about the course fee, duration, classes, certification, and placement call our expert at 70-70-90-50-90

    ReplyDelete
  2. Nice Blog, Thanks for sharing such a informative blog with us. keep sharing!!

    Are you looking for free online java tutorial?


    free java tutorial!


    hello java programing

    ReplyDelete
  3. I have been following your blog since last few days and you have amazing posts. Your post contains informative and valuable content, it will be helpful. The content Java questions and answers were very informative. It helps people prepare for interviews. Thanks for sharing..
    Best Java Course in Kolkata..

    ReplyDelete
  4. Thanks , you are giving very important information.
    Online Classes

    ReplyDelete

Advertisement

Udemy WW