Embed presentation
Download to read offline
![KALYANI GOVERNMENT ENGINEERING COLLEGE
DEPARTMENT OF ELECTRICAL ENGINEERING
Class Test – 1 on EE 604C/OOP
Test Date: 08-03-2013(Fri) Time: 3.10 pm
Answer any 3 questions: [ FM=15 Time: 40mins ]
1. Why main() in java is declared as public static void main? Write a program to print first 10 Fibonacci Series numbers in Java using for-loop.
(2+3)
2. What is bytecode? What is the argument of main() method? How to compile and execute a java program? What in JVM? (2+1+1+1)
3. What is a constructor? Create a class Box having fields length, breadth, height and assign values using constructors. Create overloaded
constructors to assign default values (say -1.00) to each data members, to assign some initial values, to make a cube (only one
parameter).Make two objects of the class and show the use of constructors. (2+3)
4. What is an array? What is a string? Write a program using 1-D array to find the largest and the smallest number in the given integer array
(25,65,14,3,89,45) (1+1+3)](https://image.slidesharecdn.com/classtest-1questionpaper-180101161158/85/Class-test-1-question-paper-1-320.jpg)

The document is a class test question paper that contains 4 questions related to object-oriented programming concepts in Java. It provides instructions to answer any 3 of the 4 questions. Question 1 asks about the main() method and provides a program to print the first 10 Fibonacci numbers using a for loop. Question 2 asks about bytecode, the main() method arguments, and how to compile and execute a Java program and the role of the JVM. Question 3 asks about constructors and provides a program to create a Box class with different constructor types. Question 4 asks about arrays and strings, and provides a program to find the largest and smallest number in a 1D integer array.
![KALYANI GOVERNMENT ENGINEERING COLLEGE
DEPARTMENT OF ELECTRICAL ENGINEERING
Class Test – 1 on EE 604C/OOP
Test Date: 08-03-2013(Fri) Time: 3.10 pm
Answer any 3 questions: [ FM=15 Time: 40mins ]
1. Why main() in java is declared as public static void main? Write a program to print first 10 Fibonacci Series numbers in Java using for-loop.
(2+3)
2. What is bytecode? What is the argument of main() method? How to compile and execute a java program? What in JVM? (2+1+1+1)
3. What is a constructor? Create a class Box having fields length, breadth, height and assign values using constructors. Create overloaded
constructors to assign default values (say -1.00) to each data members, to assign some initial values, to make a cube (only one
parameter).Make two objects of the class and show the use of constructors. (2+3)
4. What is an array? What is a string? Write a program using 1-D array to find the largest and the smallest number in the given integer array
(25,65,14,3,89,45) (1+1+3)](https://image.slidesharecdn.com/classtest-1questionpaper-180101161158/85/Class-test-1-question-paper-1-320.jpg)