When should we use container classes instead of arrays?
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
Technology problems
Search Results
1. 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;
5. How can we display the output directly to the browser?
Correct Answer: These are the essential items that are present each time an Android project is created: - AndroidManifestxml - buildxml - bin/ - src/ - res/ - assets/
7. 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
10. 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