Correct Answer: WATER MARK is a divided segment of used and free blocks Blocks which are below high WATER MARK ie used blocks, have at least once contained some data This data might have been deleted later Oracle knows that blocks beyond high WATER MARK don?t have data; it only reads blocks up to the high WATER MARK during a full table scan
2. What?s the difference between htmlentities() and htmlspecialchars()?
Correct Answer: Htmlentities() converts all applicable characters to HTML entities While htmlspecialcharacter()converts special characters to HTML entities This means htmlentities( ) will check for non English language characters, such as French accents, the German umlaut, etc
Correct Answer: Traceability matrix is a cross matrix for recording the requirements through each stage of the requirements gathering process This matrix should also take into account any changes in the scope during the life of the project At the end of the project this matrix should show each function built into a system, its source and the reason that any stated requirements may not have been delivered
Correct Answer: JAD (Joint Application Development) is a methodology that involves the client or end user in the design and development of an application, through a succession of collaborative workshops called JAD sessions The JAD approach, in comparison with the more traditional practice, is thought to lead to faster development times and greater client satisfaction, because the client is involved throughout the development process In comparison, in the traditional approach to systems development, the developer investigates the system requirements and develops an application, with client input consisting of a series of interviews
6. How to identify a given positive decimal number as even/odd without using % or / operator ?
Correct Answer: You may be very good at coding,but if you questioning how on earth you could solve this problemThen here is a solution If you remember the good old days of our primary school then the solution is easy,"division is a matter of iterative subtraction" public class TestEvenOdd { public static void main(String arg[ ]){ int num=6; int result=num; while(result>=2){ result=result-2; } if(result==1){ Systemoutprintln("The number is odd"); }else{ Systemoutprint("The number is even"); } } }
Correct Answer: ArrayList and LinkedList both implements List interface and maintains insertion order Both are non synchronized classes But there are many differences between ArrayList and LinkedList classes that are given below ArrayList V/s LinkedList :: 1) ArrayList internally uses dynamic array to store the elements Whereas LinkedList internally uses doubly linked list to store the elements 2) Manipulation with ArrayList is slow because it internally uses array If any element is removed from the array, all the bits are shifted in memory Whereas Manipulation with LinkedList is faster than ArrayList because it uses doubly linked list so no bit shifting is required in memory 3) ArrayList class can act as a list only because it implements List only Whereas LinkedList class can act as a list and queue both because it implements List and Deque interfaces 4) ArrayList is better for storing and accessing data Whereas LinkedList is better for manipulating data
Correct Answer: The Spring IoC is responsible for creating the objects,managing them (with dependency injection (DI)), wiring them together, configuring them, as also managing their complete lifecycle
Correct Answer: There are lots of ways to solve the issue of callback hells: 1 Modularization: break callbacks into independent functions 2 Use a control flow library, like async 3 Use generators with Promises 4 Use async/await (note that it is only available in the latest v7 release and not in the LTS version)
10. What is the difference between ViewState and SessionState?
Correct Answer: 'ViewState' is specific to a page in a session 'SessionState' is specific to user specific data that can be accessed across all pages in the web application