(Pages :3)
S-3770
Reg. No. :
Name
Third Semester [Link]./B.C.A. Degree
Examination, February 2024
Career Related First Degree Programme under CBCSS
Group 2(b) Computer Science/Computer Applications
Core Course
CS 1341/CP 1344 :
PROGRAMMING IN JAVA
(2021 Admission onwards)
Time:3 Hours Max. Marks:80
SECTION A [Very Short Answer Type]
[One word to maximum of one sentence. Answer all questions]
1. Expand JVM.
2. Number of bytes taken by char data type is -
3. JDK stands for
4. The built-in function for finding the length of a string is
5. The applet method drawRect() takes parameters.
6. AWT stands for
7. is the built-in exception raised when a number is divided by zero.
P.T.0.
8. JDBC stands for
9. keyword used for invoking the base class constructor.
10. is the first method called for starting a thread.
(10 x 1 = 10Marks)
SECTION -B [Short Answer]
(NOt to exceed one paragraph, answer any eight questions. Each question carries
2 marks]
11. Name the different types of access modifiers in Java.
12. How willyou avoid aclass from inheritance?
13. What is a constructor?
14. How tocreate an object in Java?
15. Which are the different types of literals in Java?
16. What are the rules for naming a variable?
17. Explain any 2 built-in string handling methods.
18. What is an applet?
19. What do you mean by an event?
20. Explain the method drawOval() with its parameters.
21. What do you mean by input stream and output stream in Java?
22. What is a socket?
(8 x 2 = 16 Marks)
2 S-3770
SECTION -C[Short Essayl
Eachquestion carries 4 marks]
(NOt to,exceed 120 words answer any six questions.
23. Explain various data types in Java.
24. Explain different loops used in Java.
25. Explain various operators used inJava.
20. Write a Java program to illustrate runtime polymorphism.
27. What is accept() and close() methods in socket programming?
28. Write an example program to copy a file intoanother.
29. How willyou display images in Java?
30. Explain the concept of multithreading.
31. Explain with example how to create an applet.
(6 x 4 = 24 Marks)
SECTION D [Long Essay]
marks]
[Answer any two questions. Each question carries 15
initialize one dimensional and two
32. Explain with examples to create and
dimensional arrays in Java.
examples.
33. Explain the concept of exception handling with
mouse events.
34. llustrate with example program to handle
Import the package to find
35. Write apackage to check whether a number is prime.
nPr and nCr.
(2 x 15 =30 Marks)
3
S- 3770