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. initWithFrame: the designated initializer for UIView gives the view






2. NSArray - class...






3. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.






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






5. Any individual object belonging to any class...






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






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






8. Reducing details to focus on the core concepts






9. class methods...






10. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?






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






12. NSString *s = @'Hello - World'; is an example of...






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






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






15. In the last line of an init method...






16. A view is a subclass of _






17. NSNumber - class...






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






19. Proceed through the loop - jump back to the top and check again






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






21. @property - is using methods...






22. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.






23. A command directed to an object is called an...






24. Also - because arrays only hold a pointer to an object...






25. Execution of the break statement...






26. A UITableViewController can fill all three roles of...






27. When do you take ownership?...






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


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






30. Why properties?






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






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






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






34. Primitives and C Structures...






35. Hold data and know nothing about the user interface






36. Classes describe two things...






37. When an object is added to a NSMutableArray - that object is sent the message to retain;...






38. A callback is a function that is supplied in advance of an event - and...






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






40. super - is used...






41. Class methods typically either create






42. Class methods do not operate on an _ or have any access to _ variables....






43. UITableViewController is a subclass of...






44. Three ways instances are created...






45. The class is responsible for what instance variables the instance has - but not the _ of those variables.






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






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






48. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.






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






50. What does autorelease mean?