Test your basic knowledge |

iOS 5 App Development Objective C

Subjects : it-skills, apple
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. When an object is added to a NSMutableArray - that object is sent the message to retain;...






2. Also if you send the NSObject the _ message - you own that object.






3. When an NSMutableArray is deallocated - it sends...






4. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?






5. Each class picks one _ as it's designated initializer....






6. A view is a subclass of _






7. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.






8. All objects are accessed using...






9. Class methods typically either create






10. Only exists within the statement block there defined - outside of the block is fine






11. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.






12. @property declares - and _ implements the setter and getter...






13. Each _ has a 'designated' initializer method....






14. Prefixing a character string with an @ symbol [specific - NSString class]...






15. Name of the method to be executed






16. Just a floating point number - but we always use it for graphics.






17. We can use dot notation to reference...

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


18. NSNumber - class...






19. The only reason to temporarily own an object - is...






20. C struct with a CGPoint origin and a CGSize size - in other words two c structs.






21. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements






22. Core foundation classes are prefixed with _ and suffixed with _






23. Hold data and know nothing about the user interface






24. NSDate - class...






25. Whenever a UINavigationController is about to swap views - it sends out two messages






26. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha






27. super - is used...






28. Variable names tend to start with a _ letter; class names tend to start with an _ letter.






29. Use of class methods - there are three...






30. In general - class methods tend to be factory methods - that is...






31. Execution of the break statement...






32. In Objective C arrays can hold only...






33. You use _ to implement the view






34. Reference Counting...






35. A method in a _ is required unless its preceded by an @optional.






36. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per






37. UIViewController has several methods that get called at certain times...






38. Classes describe two things...






39. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.






40. A function in the objective c library that simply displays or logs it's argument






41. NSString objects are usually sent _ rather than _...






42. id is a...






43. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem






44. A pointer to the object being asked to execute a method






45. When do you take ownership?...






46. When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....






47. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.






48. Center and frame are used to _ your view






49. class methods...






50. Categories are an Objective C way to add _ to an existing class without subclassing