7/10/20

JAVA 2019 question

JAVA 2019

Sub Code: - 1618505

2019(Odd)

Time : 3Hrs

Sem. V(New)

JAVA(CSE)  

Full Marks : 70

Pass marks : 28

                                                                                                                                            

Group A

 

Choose the most suitable answer from the following options: -   (1*20=20)


(i) The process that focuses on only important characteristics is known as:

(a) Encapsulation

(b) Polymorphism

(c)  Abstraction

(d) Inheritance


(ii) Which statement is true regarding an object: -

(a) An object is of a class

(b) An object is an instance of a class

(c) An object is a variable

(d) An object is not an instance of class


(iii) An object-oriented programming composition relates to

(a) The use of consistent coding convection

(b) In refers to coherent, common, behavior

(c) It refers to procedural behavior

(d) None 0f these


(iv)  In object-oriented programming a new classes can be defined by extending existing classes

(a)Encapsulation           

(b)Interface

(c) Composition

(d) Inheritance


(v) Give a class name Book, which one of these is a valid constructor declaration for the class:

(a) Book (Book b) {}

(b) Book Book ()

(c) Final Book ()

(d) Abstract Book ()


(vi) The wrapping of data and functions into a sigh unit is called

(a) Encapsulation

(b) Abstraction

(c) Date hiding

(d) Polymorphism


(vii) Polymorphism is a characteristic of:

(a) JAVA language

(b) C language

(c) Cobol language

(d)  None of the above


(viii) The numerical range of a char data type in Java:

(a)  -128 to 127

(b) 0 to 256

(c) 0 to 32767

(d) 0 to 65535


(ix) Which of the following events will cause a thread to die? i.e. called

(a) The method sleep () is called

(b) The method wait () is called

(c) The execution of the start () is called

(d) Execution of run () method is called

 
(x)  Which of the following method is true regarding finalize ()

(a) It must be only declared with protected accessibility

(b) Finalize () method can be overloaded

(c) Finalize () method cannot be overloaded

(d) All of the above are true


(xi) Which of the following is valid method for declaration in Java:

(a) void method 2

(b) int 1 method 1

(c) int method 3 () void

(d) void method ()


(xii) The concept of multiple interface implementations in Java by:

(a) Extending two or more classes

(b) Extending one classes and implementing

(c) Implementing inheritance

(d) Implementing thread


(xiii) File class is included in which package.

(a) java.io.package

(b) java.lng.package

(c) java.awt.package

(d) java.util.package


(xiv) What is the sequence of major events in the life cycle of an applet:

(a) init, start, stop destroy

(b) start, init, stop destroy

(c) init, start, destroy

(d) init, destroy, stop


(xv) Threading provides execution of:

(a)  Only one module of the program at a time

(b) Only two modules of the program at a time

(c)  All related program sub blocks executes simultaneous

(d) None of the above

(xvi) Which of these operations is used to allocate memory to array variable in Java?

(a)  Malloc

(b) Alloc

(c)  New

(d) New malloc


(xvii) Which one of the following class is a valid definition that can not be extended?

(a)  Final class link()

(b) Static class link ()

(c)  Abstract class link ()

(d) Class link ()


(xviii) Which statement is true about accessibility of members?

(a)  The private members are always accessible in same package.

(b) The private members are accessible in the class

(c)  The private member is accessible outside class

(d) None of these


(xix) The default value of a static integer variable of a class in Java is

(a)  0

(b) 1

(c)  Garbage value

(d) Null value


(xx) The field in an interface is implicitly specified as

(a)  Static only

(b) Protected

(c)  Private

(d) Both static and final

 

 View Answer>>

Group:-"B"

 

Answer all Five Questions: -                         (5*4=20) 

 

2.  What do you mean by identifier in Java? Explain it

OR

What do you mean by primitive and non primitive data types? Define it with examples

 

3.  What do you mean by Bitwise logical operator and Boolean logical operator? Define it.

OR

Write any program to check leap year in Java.

 

4. Write a program in Java to find roots of quadratic equation.

OR

What do you mean by class modifier? Explain it with example.

 

5.  What do you mean by constructor and destructor?

OR

What do you mean by interface? Define it with example.

 

6. In Java, what do you mean by passing argument by Value? Defined it

OR

What do you mean by recursive method? Explain it with example.

 

Group:- "C"

 

Answer all Five Questions: -                         (5*6=30) 

 

7.  What do you mean by multi-level inheritance? Explain it with example.

OR

Write any program using multiple inheritance.

 

8.  What do you mean by polymorphism? Explain it with example.

OR

Write a program in Java to implement polymorphism.

 

9.  What do you mean by un-checked exceptions? Explain it.

OR

Write any program using throwable class.

 

10. What do you mean by resuming and stopping of threads? Explain it

OR

Write any program of tread including suspend() and stop().

 

11. What do you mean by life cycle of Applet? Explain it with suitable diagram.

OR

What do you mean by abstract class? Explain it with example



For more information whats_app:- 8873466244

For more information contact us: - Click me

Or follow our FACEBOOK page @diploma.1234



SITE LINK: -https://www.diplomaincs.in/


(Note:- Update available soon, comment for any type of help)

{link for

JAVA (2018): -

https://www.diplomaincs.in/2019/08/previous-year-question-for-cse-branch.html

IWT(2018) -https://diplomaforcse.blogspot.com/2019/08/previous-year-question-for-computer.html

SE(2018) : -https://diplomaforcse.blogspot.com/2019/08/previous-year-question-for-computer_86.html

System maintenance
(2018): -
https://diplomaforcse.blogspot.com/2019/08/previous-year-question-for-computer_27.html

DCN
(2018): -
https://diplomaforcse.blogspot.com/2019/08/previous-year-question-for-computer_99.html

}





4 comments:

Please do not enter any spam link in the comment box and use English and Hindi language for comment.

Latest Update

Key Components of XML

Popular Posts