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

Java Questions

MCA Java qustion papper calicut university

Uploaded by

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

Java Questions

MCA Java qustion papper calicut university

Uploaded by

Manesh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 7
D 43409 (Pages : 2) ‘Time: THIRD SEMESTER M.C.A. DEGREE. EXAMINATION, APRIL 2018 MCA 10 304—CORE JAVA (2010 Admissions) Three Hours Maximum : 100 Marks Answer any five questions, Each full question carries equal marks, (a) Explain Java Virtual Machine with noat diagram, (6 marks) (b) Explain the declaration of array variable in Java, What is dynamic initialization ? Give examples, (6 marks) (c) Explain object orientated concepts briefly, (10 marks) (a) Which are the different types of Constructors in java? Explain with examples, (6 marks) (b) Describe the looping control statements in Java, with examples, (6 marks) (©) Describe the use of abstract classes and methods in Java. (6 marks) (a) Explain parameter passing in Java, with suitable examples, (6 matks) (a) What are the methods used for thread synchronization ? Explain with examples, (10 marks) (b) Explain exception handling mechaniom in java, with suitable examples, (10 marks) (a) Write a note on stroam related classos, (10 marks) (b) Explain the use of graphics class in Java. . (6 marks) (©) How parameters are passed to an applot ? (6 marks) (a) Explain Event Delegation model in java, with suitable oxamplos. (10 marks) (b) Write an applet that simulates a desk calculator, using AWT controls and ovont handling, 1 (10 marks) Turn over 6. (a) () () 7. (@) (b) 6 2 4 a) 2 D 43409 A tabie named Student exists with fields name, roll-no and marks for 3 subjects (mark 1, mark 2, mark 3). Write a Java program to prepare a rank list (name, roll-no) of the students based on total marks and displays the same. . (10 marks) Explain types of statements in Java database connectivity. Give examples. (6 marks) Explain types of Sockets used in java. (6 marks) Explain the steps in connecting a java program to database, with example. (10 marks) Write a complete program in Java for client and server communication using TCP and explain it. (10 marks) [6 x 20 = 100 marks} 14388 i (Pages : 2) Name. Reg. No. THIRD SEMESTER M.C.A. DEGREE EXAMINATION, APRIL 2017 MCA 10 304—CORE JAVA (2010 Admissions) ‘Time : Three Hours Maximum : 100 Marks 8 Answer any five questions. All questions carry equal marks. 1. (a) Explain the basic building blocks of object oriented programming. (10 marks) (b) Write a java program to store the details of students in a class. State the assumptions you have made. (10 marks) 2. (a) Explain with examples any four string manipulation functions in JAVA. N (10 marks) (b) Write a java program to store 10 numbers and output them in sorted order, using an array. (10 marks) 3. (a) Distinguish between method overloading and method overriding in JAVA with the help of examples. (15 marks) (b) Isit possible to derive two subclasses from a given class ? Justify your answer by either giving an example or giving the reason if it is not possible. (6 marks) 4. (a) What is an abstract class ? Explain its use by giving an example. (10 marks) (b) Explain how an interface js defined and implemented with an example. (10 marks) 5. (a) Why are the keywords try, catch and finally used . Ilustrate with an example. . (10 marks) (b) What are threads ? Explain with an example, creation of a thread in java. (10 marks) 2 D 14388 6. (a) Explain how a frame is created and information placed in it with the help of an example, (10 marks) (b) What are applets ? How do we create an applet in java ? Give an example. (10 marks) 7 (a) Write a note on sockets in java. (10 marks) (b) Explain the steps in connecting to a database from java. Hlustrate with an example, how SQL ‘queries can be executed from-a Java program, (10 marks) C 2371 ‘Time: I. Ml. Vil. Three Hours THIRD SEMESTER M.C.A. DEGREE EXAMINATION, APRIL 2016 MCA 10 304—CORE JAVA (2010 Admissions) Maximum : 100 Marks Answer any five questions. (a) List and explain features of java. (10 marks) (>) Write a complete java program to define a class student with details such as name, roll number, marks for three subjects, method for reading the details and method to print roll no, name and total marks. (10 marks) (a) With suitable example, explain constructors. (10 marks) (b) Mlustrate method overloading with suitable example. (10 marks) (a) Write notes on packages. (8 marks) (b) With suitable example, explain exception handling. (12:marks) (a) What is a thread ? Explain with suitable example, thread creation and running. (10 marks) (b) Write note on random access files. (10 marks) (a) Write note on Applet life cycle. (20 marks) (b) Explain with suitable example event handling in AWT programming. (20 marks) (a) Explain JDBC architecture. (10 marks) (b) Describe aspects of network programming using java. (10 marks) (a) Explain how multiple inheritance can be implemented in java. (10 marks) (b) Explain the features of AWT. Write and explain a simple AWT program. (10 marks) C 81087 Reg. No... THIRD SEMESTER M.C.A. DEGREE EXAMINATION, APRIL 2015 MCA 10 304—CORE JAVA (2010 Admissions) Time : Three Hours ‘Maximum : 100 Marks Answer any five questions. I. (a) With suitable example explain the structure of a Java program. (6 marks) (b) Write note on scope and lifetime of Java variables. (6 marks) (©) Write a Java program to read a line of text and print the number of words and number of vowels in it. (8 marks) II. (a) What is a constructor ? Can a class have different constructors ? Write an appropriate Java program illustrating how a constructor can be used to initialize one or more field. (10 marks) (b) Differentiate with suitable examples method overloading and method overriding. (10 mar? II. (a) Write appropriate program illustrating the concepts abstract methods and classes. (10 marks) (b) Write note on exception handling. (10 marks) IV. (a) Whatis a thread ? What do you mean by multi-threading ? Explain thread life cycle. (20 marks) (b) Write appropriate program illustrating creating, running, blocking and stopping threads. (20 marks) V. (a) Write note on Buffered streams and object serialization. (10 marks) (b) What is an applet class ? With suitable example explain passing of parameters to applets. (20 marks) VI. (a) Mlustrate the following with suitable example : “Container class” and “frame window”. (10 marks) (b) Explain the following: InetAddress, URL connection and Datagrams. (10 marks) VI. (a) Describe JDBC architecture. (10 marks) (b) Write an example Java program illustrating various concepts in inheritance. (10 marks) C 60725 Name... ‘Time : Three Hours , (a) () (a) (b) (@). (b) (a) (b) (a) () (a) (b) fa) (b) Reg. Nowe THIRD SEMESTER M.C.A. DEGREE EXAMINATION APRIL 2014 MCA 10 804 - CORE JAVA (2010 Admissions) . Maximum : 100 Marks Answer any five questions. All questions carry equal marks. Explain how JVM makes Java platform independent. Explain the primitive Data Types in JAVA. (10 + 10 = 20 marks) Write Java program to read and print a two dimensional matrix of integers. Explain the terms polymorphism, encapsulation and inheritance. Why are they important? (10 + 10 = 20 marks) Explain with examples the switch if; and for statements in JAVA. Explain with examples method overloading in JAVA. (10 + 10 = 20 marks) Explain with an example how interfaces can be used to implement multiple inheritance in JAVA. What is an Exception? What are the different types of exceptions in JAVA. (15 + 5 = 20 marks) Explain the use of try/catch and finally in exception handling with examples What is a Thread? Explain the use of threads in JAVA with an example. (10 + 10 = 20 marks) What are Streams? Explain file i/o in java using streams with the help of an example. Write a note on Applets in JAVA. (10 + 10 = 20 marks) ‘Explain with an example sockets in JAVA What is JDBC? Illustrate with an example how you will select all Books published after 1986 from a book table having Name of the book, year of publishing and author as fields. (10 + 10 = 20 marks) (5 x 20 = 100 marks)

You might also like