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

Java Qs

Uploaded by

arjunkj500
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Java Qs

Uploaded by

arjunkj500
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

D 13244 181608

Name..
FIRST SEMESTER Reg. No..******************ee
M.C.A. DEGREE **

(REGUILAR/SUPPLEMENTARY)
EXAMINATION, NOVEMBER 2021
M.C.A.
MCA 20 102-PROGRAMMING
IN JAVA
(2020 Syllabus Year)
Time Three Hours
Maximum : 100 Marks
Answer any five full questions.
Each question carries
1.
20 marks
(A) What is inheritance
explain difference form of
(B) Write a java
inheritance in java? (10 marks)
program to sort numbers using arrays.
2. (A) (10 marks)
What are tBe control structures in java program?
(B) (10 marks)
Explain how JAVA achieves multiple inheritance
using interfaces? Explain with
example.
3. (10 marks)
(A) Explain How can we assign priority to a
1 and 10 ? Explain. thread? Does the priority value always lie between
(5 marks)
(B) What do you mean by
'synchronization'? Why do we need it?
(5 marks)
(C) Write a note on exception handlihg in java
(10 marks)
4. (A) Discuss event handling mechanism in Java.
(10 marks)
(B) Describe the terms ActionEvent and
Actionlistener with example. (10 marks)
5. (A) Explain JD.3C architecture.
(10 marks)
(B) Explain anl demonstrate JDBC concepts for searching Student table
using roll no.
(10 marks)
6. (A) Discuss thread
synchronization and inter thread communication. (10 marks)
(B) Discuss any four built-in packages in
java. (10 marks)
7: (A) Write java program to display even no between 0' to 20.
(10 marks)
(B) What is ment by
Command-Line Arguments ? Illustrate with an example. (10 marks)
5x 20 100 marks]

181608
D 941099 (Pages 2) Name.osessn.
Reg. No..
ce*e**********e****.

FIRST SEMESTER M.C.A. (REGULAR) DEGREE


EXAMINATION, NoVEMBER 2020
M.C.A.
MCA 20 102-PRGRAMMING IN JAVA
(2020 Syllabus Year)
Time : Three Hours Maximum : 100 Marks
Answer any five full questions.
Each question carries 20 marks.
1. (a) Explain the features of object oriented programming comparing with procedure
oriented programming.
(8 marks)
(b) Explain the structure of Java programme with various data types available in Java.
(12 marks)
2. (a) Write a Java program to calculate the area of different shapes namely circle, rectangle,
and triangle using the concept of method overloading.
(10 marks)
(b) Explain parameter passing in Java, with suitable examples. (5 marks)
(e) Describe the use of constructor in Java, with suitable examples. (5 marks)
3. (a) What is exception ? List any four exception classes in Java. Explain various exception
handling keywords in Java, with examples.
(10 marks)
(b) Explain life cyele of thread in detail. (10 marks)
4. (a) Explain event handling in Java. 5 marks)
(b) Compare swing and AWT in Java. (5 marks)
(c) Write an applet which displays the character when a key is typed using event handling
mechanism.
(10 marks)
6. (a) Explain the steps in connecting Java program to database, with example. (10 marks)
(b) Explain the methods used for TCP/IP client and server sockets connections.
(10 marks)
6. (a) Write an applet which displays the x-y co-ordinates of mouse, when it is elicked. Use
event handling mechanism.
(6 marks)

Turn over
? D 94109
(b) Explain the use of graphics class
in Java. (4 marks)
(c) What the
are
advantages of using Swing API? List any five containers and
available in Swing API. components

7. (a) Illustrate the usage of (10 marks)


different types of JDBC drivers available in Java with
programme statements. example

(b) Explain the JDBC (10 marks)


architecture with a
diagrammatic representation. (10 marks)
5x 20 100 marks]

You might also like