July 17, 2021 in C and CPP
What is user defined Exception?
b) What is user defined Exception? Give an example for demonstrating user defined Exception.
July 17, 2021 in C and CPP
b) What is user defined Exception? Give an example for demonstrating user defined Exception.
July 17, 2021 in C and CPP
a) i) What is the difference between Error and Exception?
ii) What is checked exception and unchecked exception?
iii) Give the keywords given in Java for handling exception?
July 17, 2021 in C and CPP
b) Give an example of an interface for adding two integers and concatenating two strings.
Hence, write a program for getting an object of interface through implementation class.
July 17, 2021 in C and CPP
a) What is an Interface? What is package? What is the relationship between classpath and
package? What is access modifier? Discuss about the access modifier of Java with respect to
package.
July 17, 2021 in C and CPP, MySql
A. Button B. Abstract C. Inner
D. Nested E. Label F. Stream
G. Sequence H. Multithreading I. Collaboration
J. State K. PreparedStatement L. Activity
M. Unicode
4.1 In the Java programming language char values represent ________ characters.
4.2 ________ is a number of lightweight processes that are run in a single process/task or
program by a single processor.
4.3 ________ classes cannot be instantiated, but they can be subclassed.
4.4 As with instance methods and variables, a ________ class is associated with an instance of its enclosing class and has direct access to that object's methods and fields.
4.5 The ________ component is generally used to show the text or string in your application that never performs any type of action.
4.6 The Java IO classes, which mostly consists of ________ and readers / writers, are addressing various purposes.
4.7 ________ is used to execute precompiled sql queries with or without parameters.
4.8 In UML the ________ Diagrams emphasize the order in which things happen.
4.9 Based upon the events that occur, the ________ diagram shows how the object changes from start to finish.
4.10 ________ diagrams are used to show workflow in parallel and conditionally. They are useful when working out the order and concurrency of a sequential algorithm.
July 17, 2021 in C and CPP
Each statement below is either TRUE or FALSE. Choose the most appropriate one and
ENTER in the “tear-off” sheet attached to the question paper, following instructions
therein.
2.1 Multiple inheritance creates confusion in method overloading.
2.2 Access modifiers are used to implement data encapsulation.
2.3 By default all variables of Interfaces are static and final.
2.4 Object class is the top most super class of any java class.
2.5 AWT component are light weight and platform independent.
2.6 In JDBC, DriverManager class provides Connection object.
2.7 Runnable interface can be used to create a thread.
2.8 Java support stream based I/O. FileOutputStream and FileInputStream are the two abstract base class in Java I/O.
2.9 The Class Diagram describes the types of objects in the system and the static relationship between them.
2.10 An interaction diagram captures the behavior of a single case by showing the collaboration of the objects in the system to accomplish the interaction.
July 17, 2021 in C and CPP
1.10 On a use case diagram, associations are drawn between
A) actor and use cases to show that an actor carries out a use case
B) use case and clean diagram to show conversion of use case to class
C) use case and activity diagram to show conversation of use case to activity.
D) none of the above
July 17, 2021 in C and CPP
1.9 In UML, a use case is made up of
A) a set of scenario
B) a set of steps; together that accomplish a specific goal of the use
C) a set of task, associated with a role
D) All of the above
July 17, 2021 in C and CPP
1.8 The anonymous inner class
A) has an expect class name
B) has no class name
C) has only methods
D) has no instance variables
July 17, 2021 in C and CPP, MySql
1.7 What is the basic difference between Statement interface and PreparedStatement interface?
A) Statement interface is used for static SQL, PreparedStatement interface is used for dynamic SQL
B) There is no difference between Statement interface and PreparedStatement interface.
C) Statement interface is used for dynamic SQL , PreparedStatement interface is used for Static SQL
D) None of the above