This document outlines the examination details for the M.Sc (IT) Integrated Semester III at Gujarat Technological University, focusing on Object Oriented Programming with JAVA. It includes instructions for the exam, a breakdown of questions covering various programming concepts, and the total marks allocated for each section. The exam is scheduled for December 6, 2023, from 10:30 AM to 1:00 PM.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
13 views1 page
W 23 Oopj
This document outlines the examination details for the M.Sc (IT) Integrated Semester III at Gujarat Technological University, focusing on Object Oriented Programming with JAVA. It includes instructions for the exam, a breakdown of questions covering various programming concepts, and the total marks allocated for each section. The exam is scheduled for December 6, 2023, from 10:30 AM to 1:00 PM.
Subject Name: Object Oriented Programming with JAVA Time: 10:30 AM TO 01:00 PM Total Marks: 70 Instructions:
1. Attempt all questions.
2. Make Suitable assumptions wherever necessary. 3. Figures to the right indicate full marks. 4. Use of simple calculators and non-programmable scientific calculators are permitted.
Q.1 (a) Explain the structure of typical java program? 03
(b) What is JVM? Is it platform independent? Justify your answer. 04 (c) What is type casting? Explain explicit and implicit type casting. 07
Q.2 (a) Explain abs, ceil and rint mathematical functions. 03
(b) Write a java program using switch case that prints colors name as follows. 04 Case 1: RED, Case 2: GREEN, Case 3: BLUE and the default is WHITE. (c) Write a java program with appropriate main method to implements two 07 methods sort(int [] array) which returns the sorted int array and search(int x) which returns the index of x. OR (c) Write a java program to import Arrays class and call its methods: sort, 07 binarySearch and compare methods to sort an array, search an element in the array and compare two arrays respectively. Q.3 (a) Differentiate while and do while loop. 03 (b) Explain scope and life time of variable with example. 04 (c) Explain copy constructor with appropriate java program. 07 OR Q.3 (a) Explain ternary operator with example. 03 (b) Write Short note on multi-dimensional array. 04 (c) Write a java program to implement class cube with data member: private 07 double side and a method to compare two cubes by passing objects to it. Q.4 (a) Explain method abstraction with example. 03 (b) Explain various types of access modifiers. 04 (c) What is polymorphism? Explain method overriding with appropriate 07 example. OR Q.4 (a) Explain method overloading with example. 03 (b) What is the meaning of immutable object? List all and explain one 04 immutable class in java. (c) What is polymorphism? Explain operator overloading with appropriate 07 example. Q.5 (a) Explain Super, Final and abstract class. 03 (b) What is finally clause? Writes its importance. 04 (c) Explain various types of exceptions in detail. 07 OR Q.5 (a) Explain object casting in brief. 03 (b) Write custom exception class of your choice. 04 (c) What is cloneable interface? Write appropriate program to illustrate it. 07