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. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?






2. Origin of a view's coordinate system is _ left






3. Why properties?






4. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.






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






6. NSDate - class...






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






8. 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....






9. 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 _.






10. NSSet...






11. NSDictionary...






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






13. In Cocoa Touch - the table view asks another object _ what it should display...






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






15. Files Owner...






16. Property List...






17. A message is always contained in square brackets - and has three parts






18. The root view controller typically creates the next view controller - and the next _ creates the one after that






19. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....






20. NSArray - important methods...






21. 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






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






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






24. Object Oriented based analogue to a function is called a...






25. 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.






26. UIImageView is used to...






27. If you have extra work you want to do on the view...






28. Hold data and know nothing about the user interface






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






30. Defining variables - three parts...






31. Execution of the break statement...






32. If the view has no subviews - create it programmatically; if it has subviews






33. At the top of any implementation file...






34. When a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller






35. After accessors have been defined in the header file...






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






37. An instance is a device for maintaining state. It's a box for _ of data.






38. NSNumber - class...






39. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.






40. Number one use of protocols in iOS...






41. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...






42. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern






43. What happens when the last owner calls release?

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


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






45. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...






46. Primitives and C Structures...






47. A UITableView usually needs three different pieces...






48. How do I implement my drawRect?






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






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