Test your basic knowledge |

Objective C Programming Basics

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. Objective-C methods are called using ____ _____






2. The process of setting or reading the value at an address pointed to by a pointer






3. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.






4. A variable that points to the memory address of another value






5. A struct may contain multiple ____ consisting of different data types






6. An object that acts on behalf of another object.






7. Placing a ____ before a normal variable name gives it's address






8. A set of method definitions that is segregated from the rest of the class definition.






9. A message sent from one application to an object in another application.






10. Property attribute that synthesizes accessors that are not thread safe






11. ______ data types are always zero or greate






12. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






13. In object-oriented programming the object that is sent a message.






14. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).






15. Three main categories of more complicated data structures:_______ - arrays and structs






16. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






17. Property attribute where the setter stores the assigned value but does not perform any memory management.






18. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.






19. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.






20. Instance variables are optional in iOS if ________ are used






21. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.






22. Symbol used to denote a placeholder in a format string






23. _____ allow you to add new methods to existing classes






24. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.






25. The direct or indirect report of external activity especially user activity on the keyboard and mouse.






26. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.






27. _____ data types can be both positive and negative






28. C-style strings are stored in an array of _____






29. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings






30. Any method that can be used by an instance of a class rather than by the class object.






31. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






32. _____ operators take 2 operands






33. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






34. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword






35. Objective-C is a _____ of the C language






36. a++; is an example of using a _____ operator






37. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.






38. ____ provide a concise & elegant method for defining a discrete set of values






39. Property attribute that synthesizes both a getter and setter for the property






40. Objective-C's protocols are really about communicating _____ _______






41. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica






42. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






43. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






44. An object id with a value of 0.






45. ARC is susceptible to retain _____






46. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles






47. An object in another application - one that's a potential receiver for a remote message.






48. ______ operators take a single operand






49. The first index in an array is valued at ____






50. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.