Professional Documents
Culture Documents
BCA 5th Sem Dec 2018
BCA 5th Sem Dec 2018
BCA 5th Sem Dec 2018
0947/EPY-10670 2 4500
.
A
(i) Printed Pages: 4 Roll No.
(ii) Questions :9 Sub. Code : 0 8
Exam. Code : 0 0
Bachelor of Computer Applications 5lh Semester
1128
DISCRETE MATHEMATICAL STRUCTURE
Paper: BCA-16-502
ao = ' ai ^
0948/EPY-12356
(ii) Write the sequence whose generating function is
3-5z 6,7
7. (i) Find the shortest path between a and z in the graph shown
in figure using Dijkstra's Algorithm.
d 4 f
(ii) A connected graph has 9 vertices having degrees 2, 2, 2,
3, 3, 3,4,4 and 5. How many edges are there ? How many
faces are there ? 7,6
UNIT—IV
8. (i) Let A = {a, b}. Construct an automation M which will
accept the language L(M) = {arbs; r > 0, s > 0}.
(ii) Construct the state transition table of the finite state machine
whose diagraph is given in figure. 7,6
a,b
(ii) Prove that f(x) = 8x3 + 5x2 + 7 is H(g(x)) where g(x) = x\6
0948/EPY-12356 4500
7. (i) Find the shortest path between a and z in the graph shown
in figure using Dijkstra's Algorithm.
d 4 f
(ii) A connected graph has 9 vertices having degrees 2, 2, 2,
3, 3, 3,4,4 and 5. How many edges are there ? How many
faces are there ? 7,6
UNIT—IV
8. (i) Let A = {a, b}. Construct an automation M which will
accept the language L(M) = {arbs; r > 0, s > 0}.
(ii) Construct the state transition table of the finite state machine
whose diagraph is given in figure. 7,6
(ii) Prove that f(x) = 8x3 + 5x2 + 7 is Q(g(x)) where g(x) = x3<
7,6
0948/EPY-12356 4500
Printed Pages: 2 Roll No.
Note :- Attempt any one question each from Unit I-IV. Unit V is
: ' <
compulsory.
• •
UNIT-I
1. (a) Write notes on the following: Byte code, Java Virtual Machine
and Java development Kit. 6
(b) Discuss the structure of Java Program and the steps to
execute it. 7
2. What is inheritance ? What are various type of inheritance methods
supported in Java ? How do you implement inheritance in Java
Program ? How can you initialise base class data members via
derived class constructors ? Discuss with help of Java code.
13
.
UNIT-II
3. (a) Write a Java Program to get the values of 3><3 matrix and
find its transpose. 7
(b) What are packages ? What are their types ? How do you
use them in Java Program ? 6
0949/EPY-12357 1 [Turn over
4. (a) Differentiate among String and StringBuffer class. 5 -v
(b) What are the various pre-defined streams in Java ? Discuss
t
each one of them briefly. 4
(c) What are interfaces ? How are they implemented in Java?
,™TT^TTT
UNIT-III
5. (a) Discuss the Java Thread model. 7
(b) What are the various ways to create a thread in Java ?
Explain. 6
..
6. Write a Java Applet to draw various shapes like lines, rectangles,
circles and ellipses. Write the steps to execute this applet. 13
UNIT-IV
7. What are Layout managers ? What is the benefit of using them?
Discuss the various Layout managers supported by Java.
13
8. Discuss the JDBC architecture in detail. Write a Java program to
create a connection with the database. Explain the various classes
used in this program. 13
UNIT-V
(Compulsory Question)
9. (a) Why Java is considered a secure language ? 2
(b) What is the use of Final Keyword ? 2
(c) What is difference between interface and abstract class ?
2
-
(d) How do you create user defined exception ? 2
(e) Give some applications of Applet. 2
(f) What is delegation event model ? 3
0949/EPY-12357 2 4500
(i) Printed Pages: 2 Roll No.
0950/EPY-12635 2 4500