0% found this document useful (0 votes)
5 views2 pages

Java 2

The document is an examination paper for a Computer Engineering course focused on Object Oriented Programming using Java. It includes multiple-choice questions, short answer questions, and long answer questions covering various Java concepts such as syntax, OOP principles, data types, and exception handling. The paper is structured into sections with specific instructions for answering the questions.

Uploaded by

Nancy Rathi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Java 2

The document is an examination paper for a Computer Engineering course focused on Object Oriented Programming using Java. It includes multiple-choice questions, short answer questions, and long answer questions covering various Java concepts such as syntax, OOP principles, data types, and exception handling. The paper is structured into sections with specific instructions for answering the questions.

Uploaded by

Nancy Rathi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Q.6 Every statement in JAVA language should end with a?

No. of Printed Pages : 4 180841/170841


Roll No. .................. a) Dot b) Comma
4th Sem. / Computer Engg. c) Semicolon d) Colon
Sub : Object Oriented Programming using JAVA Q.7 Decrement operator , ---, decrease value of variable by
what number
Time : 3 Hrs. M.M. : 100 a) 1 b) 3
c) 0 d) 2
SECTION-A
Q.8 In Java code, the line that begins with/* and ends with */
Note: Multiple type Questions. All Questions are
is knows as?
compulsory. (10x1=10)
a) Multiline comment b) Single line comment
Q.1 Who Developed Java
c) Both A & B d) None of these
a) Microsoft b) Apple
Q.9 Which of the following is not OOPS concept in Java.
c) Sun Micro system d) IBM
a) Encapsulation b) Message Passing
Q.2 What is the extension of a Java Source File
c) Polymorphism d) Compilation
a) .exe b) .Java
Q.10 What is an exception.
c) .CPP d) .txt
a) Data type b) Unusual event
Q.3 Which of the following is not a valid variable name
c) Loop d) Syntax error
a) 987ab b) myfirst
c) bat d) sum
Q.4 Which statement is used to exit from a loop prematurely Section-B
in Java
Note: Objective type questions. All questions are
a) Continue b) Return compulsory. (10x1=10)
c) Exit d) Break Q.11 What does OOP stands for.
Q.5 Which keyword is used to create an object of the class
Q.12 Define Encapsulation.
a) Create b) Object
Q.13 Define Base class.
c) Class d) New

(1) 180841/170841 (2) 180841/170841


Q.14 Define Object. Q.31 Explain various data types available in Java.
Q.15 What is Garbage Collection. Q.32 Difference between abstract class & interface.
Q.16 Define finally block. Q.33 Explain the use of Scanner class.
Q.17 What is a stream. Q.34 Explain Various features of Java.
Q.18 Define Java. Q.35 Difference between Object & Class.
Q.19 What is the use of break statement.
Q.20 Expand IDE. Section-D
Note: Long answer questions. Attempt any two question
out of three Questions. (2x10=20)
Section-C
Q.36 Explain in detail Java program structure.
Note: Short answer type Question. Attempt any twelve
questions out of fifteen Questions. (12x5=60) Q.37 Explain various operators used in Java.
Q.21 Explain how input is given in Java using scanner class. Q.38 Define inheritance. Explain in types. Write a program to
Q.22 Explain polymorphism. How it is implemented. implement multilevel Inheritance.
Q.23 Difference between While & Do While loop.
Q.24 Explain output statement used in Java.
Q25 Explain the concept of constructor with example.
Q.26 Explain For Loop with example.
Q.27 Define array. How it is created in Java.
Q.28 Explain in brief access specifiers used in Java
Q.29 Explain the use of multiple catch blocks using a
program.
Q.30 How an object it is created in Java. Explain with
example.
(3) 180841/170841 (1620) (4) 180841/170841

You might also like