0% found this document useful (0 votes)
121 views6 pages

Csit751-Core Java - Mca.

This document contains questions for a Core Java exam divided into three sections: Section A contains short answer questions, Section B contains two compulsory short answer questions, and Section C contains multiple choice questions. The document provides the framework and questions for an exam on fundamental Java concepts including applets, exceptions, inheritance, interfaces, multithreading, JDBC, and more.

Uploaded by

sharma2005nidhi
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)
121 views6 pages

Csit751-Core Java - Mca.

This document contains questions for a Core Java exam divided into three sections: Section A contains short answer questions, Section B contains two compulsory short answer questions, and Section C contains multiple choice questions. The document provides the framework and questions for an exam on fundamental Java concepts including applets, exceptions, inheritance, interfaces, multithreading, JDBC, and more.

Uploaded by

sharma2005nidhi
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
You are on page 1/ 6

Sample Paper

Core Java (CSIT 751)


MBA 1st Sem.
[Max Marks: 70]

Note: Attempt Questions from all sections as directed.

Section A - Attempt any Two questions out of Four. Each question carries 7.50 marks. [15
Marks]

Question No: 1

What is applet? How is it different from application. Explain with example

Question No: 2

Explain the following terms with respect to exception handling.

i) try ii) catch iii) throw iv) finally v)throws

Question No: 3

Explain the concept of Inheritance? Also, explain its


various types. What type of Inheritance is not possible in
Java.
Question No: 4

Explain the steps to create a JDBC connection.

Section B - Compulsory Questions. Each question carries 7.50 marks. [15 Marks]

Question No: 1

Explain the difference between method overloading and method overriding. Also, explain the
concept of polymorphism and how it is implemented in each of the above concept of method
overloading and overriding.

Question No: 2

Explain the concept of Multithreading with suitable example. Describe life cycle of thread with suitable
diagram.

Section C - Compulsory Questions. Each question carries 2.00 marks. [40 Marks]

Question No: 1

a) Which component is used to compile, debug and execute java program?


a) JVM
b) JDK
c) JIT
d) JRE

Question No: 2
Which component is responsible for converting bytecode into machine specific code?
a) JVM
b) JDK
c) JIT
d) JRE

Question No: 3
Which of these data types is used to store command line arguments?
a) Array
b) Stack
c) String
d) Integer

Question No: 4
How many arguments can be passed to main()?
a) Infinite
b) Only 1
c) System Dependent
d) None of the mentioned

Question No: 5
What do you call the languages that support classes but not polymorphism?
a) Class based language
b) Procedure Oriented language
c) Object-based language
d) If classes are supported, polymorphism will always be supported

Question No: 6
Which of these can be overloaded?
a) Methods
b) Constructors
c) All of the mentioned
d) None of the mentioned

Question No: 7
To successfully overload a method in java, the return types must be
a) Same
B) Different
C) Same but using superclass or subclass types also work
D) None
Question No: 8
Java Method overloading implements the concept of _____

a) Inheritance
b) Polymorphism
c) Encapsulation
d) None

Question No: 9
Which of these keywords are used to define an abstract class?

a) abst
b) abstract
c) Abstract
d) abstract class

Question No: 10
If a class inheriting an abstract class does not define all of its function then it will be known as?
a) Abstract
b) A simple class
c) Static class
d) None of the mentioned

Question No: 11
Super keyword in java is used to

1. Refer immediate parent class instance variables.


2. Invoke immediate parent class methods.
3. Invoke immediate parent class constructor.
4. All

Question No: 12
False statement about final method in java

1. Value of final variable cannot be changed once initialized.


2. Final method is inherited but we cannot override it
3. If you make a class final then you cannot extend the class
4. Constructor can be declared as final.

Question No: 13
Correct statement about a class and interface is/are

1. An interface can extend multiple interfaces


2. A class can implement multiple interfaces.
3. Java support multiple inheritance using interfaces.
4. All of the above.
Question No: 14

What are the type of exceptions in Java?

a) Checked exceptions
b) UnChecked exceptions
c) Both a and b
d) Errors

Question No: 15
Which is the super class of all java exceptions classes?

1. Exception
2. RuntimeException
3. Throwable
4. IOException

Question No: 16
What is multithreaded programming?

a) It’s a process in which two different processes run simultaneously


b) It’s a process in which two or more parts of same process run simultaneously
c) It’s a process in which many different process are able to access same information
d) It’s a process in which a single process can access information from many sources

Question No: 17
Which of these are types of multitasking?

a) Process based
b) Thread based
c) Process and Thread based
d) None of the mentioned

Question No: 18
Which method is called only once during the run time of your applet?

a. stop()
b. paint()
c. init()
d. destroy()

Question No: 19
An applet is a Java class that extends the?

A. java.Applet class
B. java class
C. Applet class
D. java.applet.Applet class

Question No: 20
What are the major components of the JDBC?
a. DriverManager, Driver, Connection, Statement, and ResultSe
b. DriverManager, Driver, Connection, and Statement
c. DriverManager, Statement, and ResultSet
d. DriverManager, Connection, Statement, and ResultSet

You might also like