Correct Answer: A poor Hashcode() function will result in frequent collision in HashMap which eventually increase time for adding an object into Hash Map
Correct Answer: Error-first callbacks are used to pass errors and data as well You have to pass the error as the first parameter, and it has to be checked to see if something went wrong Additional arguments are used to pass data fsreadFile(filePath, function(err, data) { if (err) { // handle the error, the return is important here // so execution stops here return consolelog(err) } // use the data object consolelog(data) })
5. I don't want my class to be inherited by any other class. What should i do?
Correct Answer: You should declared your class as final But you can't define your class as final, if it is an abstract class A class declared as final can't be extended by any other class
Correct Answer: 1Map beautifully designed from the ground up (and the sky down) 2Integration of Facebook with iOS 3shared photo streams 4Passbook - boarding passes, loyalty cards, retail coupons, cinema tickets and more all in one place 5Facetime - on mobile network as wifi 6changed Phone app - *remind me later, *reply with message 7Mail - redesigned more streamline interface 8Camera with panorama
Correct Answer: IOS 4 and above supports multi-tasking and allows apps to remain in the background until they are launched again or until they are terminated
8. Name the framework that is used to construct application?s user interface for iOS.
Correct Answer: The UIKit framework is used to develop application?s user interface for iOS UIKit framework provides event handling, drawing model, windows, views, and controls specifically designed for a touch screen interface
9. Who calls the main function of app during the app launch cycle?
Correct Answer: During app launching, the system creates a main thread for the app and calls the app?s main function on that main thread The Xcode project's default main function hands over control to the UIKit framework, which takes care of initializing the app before it is run
10. What are the three cost factors involves in cloud data center?
Correct Answer: Cloud data center doesn?t require experts to operate it, but it requires skilled people to see the maintenance, maintain the workloads and to keep the track of the traffic The labor cost is 6% of the total cost to operate the cloud data center Power distribution and cooling of the datacenter cost 20% of the total cost Computing cost is at the end and is the highest as it is where lots of resources and installation has to be done It costs the maximum left percentage