- Differentiate C++ and JAVA w.r.t inheritance. Also mention the use of super and this in Java.
- Define inheritance. List the different types of inheritance in java
- Illustrate with example a super class variable can reference a subclass object.
- Compare and contrast method overloading and overriding
- Define inheritance. Explain multilevel hierarchy with an example program.
- Discuss the terms: a)super b) final c) abstract class
- Can you overload constructor and destructor ? Justify with suitable program.
- Briefly explain the role of interfaces while implementing multiple inheritance in java
- What is the alternative approach to implement multiple inheritances in Java? Explain with example.
- What is meant by instance variable hiding? How to overcome it?
- With an example, give two uses of super.
- Discuss the following a. Inner class b. Overriding and overloading c static variable and methods
- Write a program which contains one method which will throw IllegalAccessException and use proper exception handlers so that exception should be printed.
- Explain the constructor method. How is it different from other member functions.
- What is a Java exception? Explain the exception handling mechanism with an example.
- Define Exception. Demonstrate the working of nested try block with suitable examples.
- Create a try block that is likely to generate three types of exceptions and incorporate necessary catch blocks to handle them.
- Explain the java’s built-in exceptions.
- Give the basic form of an exception handling block.
- What is the importance of the clause finally.
- Illustrate the usage of throw in exception handling with suitable example.
Thursday, August 11, 2022
Object Oriented Concepts - Module 3
Wednesday, August 10, 2022
Object Oriented Concepts : Module 4
- What is multithreading? Explain any two uses of multithreaded programs.
- Write a Java program to implement a producer-consumer problem using threads.
- Explain the mechanism of event delegation model. Give an example for using keyboard event.
- What is multithreading? Write a program to create multiple threads in Java.
- Discuss the significance of synchronization in Java.
- Briefly explain the role of : a. ActionEvent class b. AdjustmentEvent class
- With syntax, explain the use of isAlive() and join() methods.
- How synchronization can be achieved for threads in Java? Explain with syntax.
- Enlist the different methods in WindowListener. What is the use of WindowAdaptor?
- Write a program in applet which will print “key pressed” on the status window when you press the key, “key released” on the status window when you release the key and when you type the characters it should print “Hello” at coordinates (50,50) on applet.
- What is meant by thread priority? How it is assigned?
- Explain the adaptor classes with examples.
- Provide Java syntax for the following:
a. Making class threadable.14. Write a Java program which creates two threads, one thread displays “VTU-Belgaum” for every 100 seconds, and another thread displays “Karnataka” for every 50 seconds continuously.
b. Extending thread.
c. Synchronization
d. Catching interrupt
15..Define the delegation event model. Briefly explain the role of
a. Event classes
b. Event listener interfaces
c. Sources of events
d. Adaptor classes
16. Describe the various levels of access protections available for packages and their implications.
17. Define package. What are the steps involved in creating user defined package with an example.
18. Explain how variables in interfaces are used.
Tuesday, August 9, 2022
Object Oriented Concepts : Module 5
- Discuss delegation event model with suitable example.
- Explain with suitable example inner class
- Explain JComboBox with example.
- Describe the two keys features of swings.
- Create swing applet that has two buttons named beta and gamma. When either of the buttons pressed, it should display “beta pressed” and “gamma pressed” respectively.
- Explain any 8 event listener inter-faces with syntax
- Explain different methods of applet.
- Explain the HTML applet with syntax and example
- Explain the following with an example for each and syntax.: A) .JLabel B) JTextField C) .JButton D) .JCheckBox E).JComboBox F) Jlist
- Explain a simple swing application with suitable program
- Explain delegation event model in Java.
- Write a Java program to handle mouse event.
- Create a swing applet that has two buttons named as "CSE" and "ISE". When either of the button is pressed, it should display "CSE" is pressed" and "ISE is pressed" respectively.
- Explain briefly the components and containers used in swings.
- Write a swing program to create a table with column heading as StudentName, USN, Address and insert 5 records into the table and display on screen.
- Explain key event class
- Describe key features of Swings in Java.
- Compare AWT and Swings.
- Write a note on JFrame and JButton.
Object Oriented Concepts - Module 2
- List and explain the java buzzwords.
- Explain how java is robust and interactive
- Explain type conversions in java with suitable example.
- Explain the concepts of arrays 'in java with examples.
- Write a java program to sum only first five elements of the array using for each looping.
- Write a java program that creates and initialises a four integer element array. Find the sum and average of its value.
- Explain the syntax of for-each loop.Write a java program to search a key element by using for-each loop.
- Explain type conversion in java with an example.
- Write a java program to initialize and display different types of integer and floating point variables.
- Explain the operation of the following operators: with an example i) % ii) >>> iii) && iv) >>
- What is type casting. Illustrate with an example.
- What is meant by automatic type conversion. Give example
- How to declare two dimensional array in java? Explain with simple example.
- Differentiate the usage of access specifiers in java and their scope.
- List and explain different jump statements used in java with suitable example.
- List and explain different iteration statements used in java with suitable example.
- Explain switch case usage with suitable example in java
- List the different types of operators in java and explain any three.
- Illustrate the usage of primitive datatypes and their default values for an instance variable with suitable example.
- Write a java Program to illustrate data types, variables, and functions
- Write a java Program to illustrate the concept of classes and objects.
Tuesday, June 15, 2021
Object Oriented concepts : Module - 1
C++ Questions
- Identify the differences between procedure oriented programming and object oriented programming
- State the important features of object oriented programming.
- List and explain any five features of object oriented programming.
- Compare object oriented programming with procedure oriented programming.
- Give comparison of C and C++ with example .
- Write the general form of function. Explain different argument passing techniques with example
- Explain function overloading with suitable example.
- Define function overloading. Write a C++ program to define three overloaded functions to swap two integers, swap two floats and swap two doubles
- Write a C++ program to define three overloaded functions to find the product of two integers, product of two floating point numbers and product of three integers.
- Write a C++ program to overload the function area() with three overloaded function to find area of triangle , area rectangle and area of circle
- Explain the working of inline functions with example
- Write a C++ recursive program to find the factorial of a given number
- Explain the use of scope resolution operator
- Implement a C++ program to find prime number between 200 and 500 using for loop.
- List a few areas of applications of OOP Technology.
- What is class?how it is created? Write a c++ program to create a class called Employee with data members name age and salary. Display at least 5 employee information
- How do namespace help in preventing pollution of the global namespace.
- What is nested class? What is its use? Explain with example.
- What is static data member?explain with example. What is the use of static members
- Write a class rectangle which contains data items length and breadth and member functions setdata() getdata() displaydata(),area() to set length and breadth, to take user input,to display data and find area of rectangle.
- What is a constructor. List the different types of constructor and explain default constructor with example.
- Define a Student class with the following measures:
- Data Members: RollNo, Name, AvgMarks
- Member functions : To read data, To print data
- Write a C++ program to read the data of 3 students and print the 3 student information.
23. Define a friend function. Illustrate with an example.
24. Explain how one can bridge two classes using friend function. Write a C++ program to find the sum of two numbers using bridge friend function add().
25. Can you overload constructors and destructors. Justify with example.
26.Write a C++ programs to count the number of objects created.
Database Management systems - Module 2
1 a. Explain the entity integrity and referential integrity constraints. Why is each considered important. Give examples. b. Discuss eq...

-
1 a. Explain the entity integrity and referential integrity constraints. Why is each considered important. Give examples. b. Discuss eq...
-
Module 1 Define IOT. Explain Evolutionary phases of the internet What is IOT? Explain in detail on Genesis of IOT. What does IOT and digi...
-
What is multithreading? Explain any two uses of multithreaded programs. Write a Java program to implement a producer-consumer problem using ...