Exam Details
Subject | java programming | |
Paper | ||
Exam / Course | b.sc.computer science | |
Department | ||
Organization | alagappa university | |
Position | ||
Exam Date | November, 2017 | |
City, State | tamil nadu, karaikudi |
Question Paper
B.Sc. DEGREE EXAMINATION, NOVEMBER 2017
Fourth Semester
Computer Science
JAVA PROGRAMMING
(CBCS 2011 onwards)
Time 3 Hours Maximum 75 Marks
Part A (10 x 2 20)
Answer all questions.
1. What is JVM?
2. What are the data types of Java?
3. What are the bitwise operators of Java?
4. Find the value of if 123.56% 10.
5. Define Constructor.
6. What are the advantages of Vectors over arrays?
7. What are the advantages of Multithread?
8. How will you hide a class in a package?
9. How Applets differs from and Applications?
10. Write the syntax and an example of the method which is
used to draw a rectangle.
Sub. Code
1BCE4C1
AFC-10385
2
ws1
Part B x 5 25)
Answer all questions, choosing either or
11. Explain the features of Java.
Or
Explain the Java support systems.
12. Explain any ten mathematical functions in Java
with example.
Or
Explain the switch statement in Java with an
example.
13. Write a java program to define an interface Area.
Implement the interface to calculate the area of a
rectangle.
Or
Explain method overloading with an example.
14. Explain the Thread Life cycle.
Or
Explain the run time error in Java with a program.
15. Explain the Applet life cycle.
Or
How will you add an Applet to a HTML file?
Explain with an example.
AFC-10385
3
ws1
Part C x 10 30)
Answer any three questions.
16. Explain Command Line Arguments with a program.
17. Write Java programs to print the first 20 prime numbers.
18. Write a Java program to multiply two matrices.
19. Write a Java program to create a package called student.
Import the package to calculate the total mark obtained
by the student.
20. Write a Java program to draw a polygon with five sides.
————————
Fourth Semester
Computer Science
JAVA PROGRAMMING
(CBCS 2011 onwards)
Time 3 Hours Maximum 75 Marks
Part A (10 x 2 20)
Answer all questions.
1. What is JVM?
2. What are the data types of Java?
3. What are the bitwise operators of Java?
4. Find the value of if 123.56% 10.
5. Define Constructor.
6. What are the advantages of Vectors over arrays?
7. What are the advantages of Multithread?
8. How will you hide a class in a package?
9. How Applets differs from and Applications?
10. Write the syntax and an example of the method which is
used to draw a rectangle.
Sub. Code
1BCE4C1
AFC-10385
2
ws1
Part B x 5 25)
Answer all questions, choosing either or
11. Explain the features of Java.
Or
Explain the Java support systems.
12. Explain any ten mathematical functions in Java
with example.
Or
Explain the switch statement in Java with an
example.
13. Write a java program to define an interface Area.
Implement the interface to calculate the area of a
rectangle.
Or
Explain method overloading with an example.
14. Explain the Thread Life cycle.
Or
Explain the run time error in Java with a program.
15. Explain the Applet life cycle.
Or
How will you add an Applet to a HTML file?
Explain with an example.
AFC-10385
3
ws1
Part C x 10 30)
Answer any three questions.
16. Explain Command Line Arguments with a program.
17. Write Java programs to print the first 20 prime numbers.
18. Write a Java program to multiply two matrices.
19. Write a Java program to create a package called student.
Import the package to calculate the total mark obtained
by the student.
20. Write a Java program to draw a polygon with five sides.
————————
Other Question Papers
Subjects
- applied physics – ii
- computer graphics
- computer networks
- computer organization and architecture
- database management system
- database management systems
- elective : digital image processing
- elective – web design technology
- elective –– data mining and data warehousing
- elective — c# .net programming
- elective — data mining and data warehousing
- elective — database managementsystem
- elective — mobile communication
- elective — multimedia technology
- elective — visual basic
- employability skills
- java programming
- object oriented programming with c++
- operating system
- operating systems
- programming in c
- programming in c and data structures
- programming in c++ and algorithms
- software engineering
- visual basic
- web design technology