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

Java Exam Paper 2011

This document contains a past examination paper for the BCA (Part III) exam on Java programming. It covers 5 units: operators and statements, arrays, classes, threads, and databases. The exam consists of 10 questions, with students required to answer 5 questions total, selecting at least one from each unit. Questions can be short answer or involve writing example code. Topics include operators, loops, arrays, classes, inheritance, threads, database connectivity using JDBC, and Java applets. Students have 3 hours to complete the exam and all questions are worth equal marks.

Uploaded by

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

Java Exam Paper 2011

This document contains a past examination paper for the BCA (Part III) exam on Java programming. It covers 5 units: operators and statements, arrays, classes, threads, and databases. The exam consists of 10 questions, with students required to answer 5 questions total, selecting at least one from each unit. Questions can be short answer or involve writing example code. Topics include operators, loops, arrays, classes, inheritance, threads, database connectivity using JDBC, and Java applets. Students have 3 hours to complete the exam and all questions are worth equal marks.

Uploaded by

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

CAB-302

B.C.A (Part III) EXAMINATION, 2011


Paper- BCA-302

JAVA PROGRAMMING
Time allowed: Three hours
Maximum marks: 50
Attempt five questions in all, selecting at least one
question from each unit. All questions carry equal marks.
Unit - I
1. (a) Briefly define the operators used in JAVA.

(5)

(b) Describe various conditional and looping statements with


example.
2. (a) Write a program to print the following output:
1
2
3
4
3
2
1
1
2
3
3
2
1
1
2
2
1
1
1

(5)
(5)

(b) Write a program to Convert decimal values in Binary number. (5)


Unit - II
3. Explain the following (with example):
(i)
Static members and Static class.
(ii)
Abstract method and Abstract class.

(10)

4. Briefly define the concept of method overriding and also define the
solution to eliminate method overriding. Also give an example. (10)
Unit - III
5. (a) Define the memory representation of a 2-D array in JAVA. How
could you differentiate with the memory-representation of a 2-D
array in C++? Give an appropriate example.
(5)
Page 1 of 1

www.magix.in

Java2011

(b) Explain the following (with example):


(i) JAVA Vector
(ii) String Class.

(5)

6. Briefly define all the concepts of JAVA packages and JAVA


interface.
(10)

Unit - IV
7. What do you mean by thread in JAVA? How can you create a thread
in JAVA? Also give an example.
(10)
8. (a) Describe the uses of synchronized keyword with proper
example.
(b) Explain the following:
(i) isAlive( )
(ii) join( )
(iii) wait( )
(iv) notify( )
(v) notifyAll( )

(5)
(5)

Unit - V
9. (a) How can you connect a Data Base with JAVA? Also define its
connectivity process.
(5)
(b) What do you mean by JDBC? Define various types of JDBC
drivers and its components that are required for connecting a
Database.
(5)
10. (a) What is an Applet? Also define its life cycle.

(5)

(b) Develop an applet that receives three numeric values as input


from the user and display the largest of the three on the
screen.
(5)

Page 2 of 2

www.magix.in

Java2011

You might also like