Correct Answer: It is advisable to use container classes of the STL so that you don?t have to go through the pain of writing the entire code for handling collisions, making sure its working well, testing it repeatedly with an overhead of time consumption Suppose you have some data that has values associated with strings and its fields consist of grades> in this situation you can directly use hash table instead of having it created by yourself
2. What is meaning of following declaration? int(*p[5])();
Options
A. p is pointer to function.
B. p is array of pointer to function.
C. p is pointer to such function which return type is array.
Correct Answer: The app delegate object is created by UIApplicationMain function at app launch time The app delegate object's main job is to handle state transitions within the app
Correct Answer: An Interpreter is a program that reads in as input a source program, along with data for the program, and translates the source program step by step The Java interpreter decodes each lines bytecode and runs a series of machine instructions for that bytecode The JVM takes the byte code and generates machine code The byte code is compiled to machine code, and the machine code is executed
Correct Answer: %type is used to declare a field of a table while %rowtype is used to declare a record with the same type as specified in that table, view or cursor Example of %type: DECLARE v_EmployeeName empename%TYPE Example of %rowtype DECLARE v_empployee emp%ROWTYPE;
6. State the difference between View and Materialized View ?
Correct Answer: The main differenc between View and Materialized View states that - 1 View means it stores the SQL statement in the database and let you use it as a table Everytime you access the view, the SQL statement executes 2 Materialized view means it stores the results of the SQL in table form in the database SQL statement only executes once and after that everytime you run the query, the stored result set is used Advantage include quick query results
Correct Answer: In a SQL Database, a 'correlated subquery' is a kind of sub query yet connected subquery is dependent on another query for a value that is returned In case of execution, the sub query is executed first and afterwards the correlated query will be executed
9. What is the difference between Listview and Treeview?
Correct Answer: Tree view control is designed to display data that is hierarchical in nature, such as organization trees, the entries in an index, the files, directories on a disk It is often used in conjuction with the List view control, which is used to display the contents of the folder selected in the tree view List view control displays data as listitem objects The control excels at representing subsets of data or discrete objectsThe list view property is often used in association with a tree view control
10. What is the difference between dao,rdo and ado explain simply ?
Correct Answer: DAO (Data access object ) is used for accessing data before ado it was used for database installed on same sys where the application resides RDO (Remote data object ) is used for accessing remote data ADO (Active data object ) most powerful till date it is nothing but combination of both DAO and RDO