Correct Answer: Create them as properties in the header that are retained In the viewDidUnload set the outlets to nil(ie selfoutlet = nil) Finally in dealloc make sure to release the outlet
2. Where can you test Apple iPhone apps if you don?t have the device?
Correct Answer: iOS Simulator can be used to test mobile applications Xcode tool that comes along with iOS SDK includes Xcode IDE as well as the iOS Simulator Xcode also includes all required tools and frameworks for building iOS apps However, it is strongly recommended to test the app on the real device before publishing it
3. Which API is used to write test scripts that help in exercising the application's user interface elements?
Correct Answer: UI Automation API is used to automate test procedures Tests scripts are written in JavaScript to the UI Automation API This in turn simulates user interaction with the application and returns log information to the host computer
4. Assume that your app is running in the foreground but is currently not receiving events. In which sate it would be in?
Correct Answer: An app will be in InActive state if it is running in the foreground but is currently not receiving events An app stays in InActive state only briefly as it transitions to a different state
5. What are layer objects and what do they represent?
Correct Answer: Layer objects are data objects which represent visual content Layer objects are used by views to render their content Custom layer objects can also be added to the interface to implement complex animations and other types of sophisticated visual effects
Correct Answer: SVG stands for scalable vector graphics It?s a text based graphic language which draws images using text, lines, dots etc This makes it lightweight and renders faster
Correct Answer: Many times we would like to store information about the user locally in the computer For example let?s say user has half-filled a long form and suddenly the internet connection breaks off So the user would like you to store this information locally and when the internet comes backHe would like to get that information and send it to the server for storage Modern browsers have storage called as ?Local storage? in which you can store this information
Correct Answer: -To store information usually relevant to browsers and search engines -To only store information usually relevant to browsers -To only store information about search engines -To store information about external links
9. How would you automatically transfer your visitors to a new web page?
Correct Answer: - This can be done by defining the frame with SCROLLING = auto and having content to just fit into this frame - SCROLLING="yes" gets the scroll bar on both the sides, even when not needed - SCROLLING="no" doesn?t get the scrollbars at all, even when they are needed