0% found this document useful (0 votes)
31 views

Java Programming

Uploaded by

Urmi Chauhan
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)
31 views

Java Programming

Uploaded by

Urmi Chauhan
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/ 3

Centre for Distance and Online Education

Model Question Paper (MQP)

Name of Programme: Master of Computer Applications

Semester: I

Course Code: OMCA102

Course Name: Java Programming

Instructions
This paper consists of three sections: A, B, and C. Answer all questions from Section A, any four questions from
Section B, and any three questions from Section C. Marks are indicated against each question.

• Section A: Multiple choice questions (MCQs)


Each question carries two marks
No. of questions: 10 (all to be answered)
Maximum marks: 10 x 2 = 20 marks

• Section B: Short answer questions (200-250 words)


Each question carries five marks
No. of questions: Six (answer any four)
Maximum marks: 4 x 5 = 20 marks

• Section C: Long answer questions (400-450 words)


Each question carries ten marks
No. of questions: Four (answer any three)
Maximum marks: 3 x 10 = 30 marks

Maximum marks: 70 marks


Exam duration: 3 hours
SECTION A: MCQ
Answer options
Sl. Question
A B C D
Which of the following is used to
develop Java software and is an
1 JDK JRE JVM Project
extended subset of a Java
software development kit (SDK)?
If there exists a Java file named
Hello.java and When this file is
2 Hello.byte Hello.jar Hello.class Hello.exe
compiled we get a file called as
__________________.
A switch statement can be used
within another switch statement.
3 default nested inner outer
This procedure is called
___________ switch statement.
To extract a single character from
a String, you can refer directly to None of the
4 equals() charAt() Substring()
an individual character through above
_________ method.
Inheritance means that a class
derives a set of ----------- and
5 JVM class object attributes
related behaviors from another
class.
A try block must have at least one
6 ________________ block that catch trap part purge
follow it immediately.
Which of the following class allows
None of the
7 you to read input from a file in the FileInputStream FileOutputStream Default class
above
form of a stream?
Which of the following efficiently
allows more than one thread to
8 communicate by reducing CPU Intermonitor Inter-Thread Inter-class Inter-object
idle time when CPU cycles are not
wasted.?
Java annotations are used to
9 provide ____________ data for meta object class method
Java code.
Every event has a corresponding
listener ________________ that
10 interface awt swing javafx
specifies the methods that are
required to handle the event.
SECTION B: Short answer questions* (200-250 words)

Sl. No. Question Marks

1.25 x
1 Write down the rules for naming variables in Java
4

2 Write a Java program to demonstrate the use of equals() method in Java. 5

3 Why do you use a for loop in java? Write its syntax. 3 +2

4 How do you create a thread in Java? Explain in brief. 5

5 Write a Java Program to print the message – Hello SMU-CDOE using Java Static Import. 5

6 Write any three uses of Annotations in Java? 5

*Answer any four questions

SECTION C: Long answer questions* (400-450 words)

Sl. No. Question Marks

1 Write down any five methods available in InputStream class and explain about it in brief. 2x5

2 Write short notes on throw and throws for exception handling in Java. 5+5

3 Write down any 5 reasons that justifies the need of collections classes in java. 2x5

4 What are the two types of threads in Java? Explain it in brief. 2x5

*Answer any three questions

****************************************************** END OF SHEET ******************************************************

You might also like