OOPs In Java 2021 MCQ With Answersheet BCA Third Semester

3880

 

OOP in Java 2021 MCQ Answersheet

BCA 3rd Semester

1. which of the following is a ternary operator?
a) >>    b) >>>     c) ++     d) ?:

2. which keyword is used to make a variable constant in java?
a) super b) constant c) global d) final

3. which of the following is not a keyword in java?
a) Boolean b) default c) this d) implicit

4.which of these operators can skip evaluating right hand operand?
a) ^ b) | c) & d)&&

5. which of these keywords is not a part of exception handling?
a) try b) finally c) threw d) catch

6. the method that returns a string associated with GUI Button is …….
a) getSource()method b) setSource()method c. getActionCommand()method d)setActionCommand()method

7. which of the following is the container that doesnt contain a title bar and menu bar but it can have other GUI components such as buttons and text fields.
a) Window b) Frame c) Panel d) Menu

8. which of the following classes is defined in javax.swing package?
a) Button b) J Button c.Applet d.Frame

9. which method is automatically called after the browser calls the init method?
a) Start b) stop c) destroy d) paint

10. In which of the following ppackage integer class exist?
a) java.util b) java.file c) java.io d. java.lang

 

1.d

2.d

3.a

4.d

5.c

6.a

7.c

8.b

9.a

10.d

 

 

 

Source  bcatribhuwan university Facebook page

LEAVE A REPLY

Please enter your comment!
Please enter your name here