Sipna College of Engineering and Technology, Amravati
Department of Computer Science &Engineering
Session 2024-25 Question Bank First Sessional Examination Year/Sem: 2nd/4th Subject: Object Oriented Programming ` Subject Code: 3KS03 Syllabus: 1&2 Units
Unit -I
Qu. Questions BT CO-
No. Level Mapping 1 Explain Basic features of Java which makes it powerful language. 2 CO1 2 Illustrate various data types supported in java with example 3 CO1 3 Compare procedural language versus object oriented language. 4 CO1 4 Explain widening and narrowing in the context of Java primitive 2 CO1 date type conversion. 5 Develop an application program to find out the greater number 5 CO1 amongst the three numbers(With or without Taking input from user.) 6 Sketch the following pattern by using for loop. 3 CO1 A BC DEF GHIJ KLMNO 7 Construct a JAVA Program to print sum of first 20 odd numbers. 5 CO1 8 Test a number 11,for even and odd by using if else. 4 CO1 9 Write a program to swap two numbers with or without using third 3 CO1 variable. Unit -II
Qu. No. Questions BT CO-
Level Mapping 1 Compare the difference between instance variables, local variables 4 CO2 and static variables. 2 Illustrate the purpose of' ‘this’ keyword? Explain use of 'this' to call 3 CO2 one of the user definedconstructor and hidden attributes in the class. 3 Write about method overloading? Write a java program to 3 CO2 demonstrate method overloading. 4 Write about Constructor? Write a java application which 3 CO2 demonstrates the concept of constructor overloading. 5 Discuss about Array of Objects with Example 2 CO2 6 How to declare two dimensional array ? Explain how to initialize it. CO2 7 Discuss about: classes and objects? Explain relationship between 2 CO2 classes and objects. 8 Define command line argument? Explain with example. 1 CO2 9 Write Java program to take proper use of constructor and 5 CO2 methods to calculate area andperimeter of rectangle. 10 Write a class student having data members name, Role No. and 5 CO2 branch of a student. Also declare the two methods i.e. getdata( ) and display( ) for taking the input and display the same. Write a Java code for display the information of a single student.