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)

Class test 1 question paper

  • 1.
    KALYANI GOVERNMENT ENGINEERINGCOLLEGE 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)