JAVA Question Bank IA1
JAVA Question Bank IA1
Sem: III Subject: Object Oriented Programming with Java Date: 26-12-2023
2 List out the difference between procedure oriented program and object oriented program
5 Explain various primitives data types used in java. Give Suitable example.
6 Define is a Data Type? Give the declaration of variable in Java. Write the Rules?
7 Write a java program to initialize and display different type of integer and floating point variables.
8 What is type casting? Illustrate with example. What do you mean by automatic type promotion?
9 Define an Array? Classify the types of arrays in Java
10 Define array. Write the array declaration syntax for multidimensional arrays. Write a simple java
program to create an array of an object.
11 Give different syntax of array allocation in JAVA.
12 How to declare two dimensional arrays in java? Explain with simple example.
13 List out different types of operators in JAVA. Explain Logical and Bitwise Operators in detail.
14 Define Conditional Operator? Write the suitable example?
15 Explain the following operations with example. (i) << (ii) >> (iii) >>> (iv) &&
16 Explain the Structure of Java? Explain type of programs in Java.
17 Describe the meaning of each of the keyword in “public static void main”
18 Explain the Control Statements in Java with example
19 State the Java Selection Statements? Give an example to each one.
20 With an example Explain about the Iteration Statements
21 Demonstrate the working of enhanced for loop
22 Write a program to sort the elements using for loop
23 List Jump statements? Give an example for each of them
24 Define a Class, Method and Object? Write the syntax to define these in java.
25 Write a program to perform Stack operation using proper class and methods
26 What is a Constructor? Classify the types of Constructors in Java?
27 Explain default constructor with example?
S. S. Education Trust’s CET Code: E-175 (UG)/T-942 (PG)
S. G. BALEKUNDRI INSTITUTE OF TECHNOLOGY
Shivabasavanagar, Belagavi- 590 010, Karnataka- India
Office: 0831-2407172, 2554559 Fax: 0831-2407152 Website: www.sgbit.edu.in
1SO 21001:2018 Department of Computer Science and Engineering
certified institute
(Accredited by NBA)
(Email: [email protected], Dept. Extn.: 532