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. ______ data types are always zero or greate






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






3. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.






4. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






5. A compiler feature that provides automated memory management






6. In the Objective-C language the declaration of a group of methods not associated with any particular class.






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






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






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






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






11. The most flexible C data type: ______






12. An object of unknown class. Interface is published through protocol declaration.






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






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






15. In object-oriented programming a procedure that can be executed by an object.






16. Another name for a class that's defined solely so that other classes can inherit from it.






17. A ____ _____ is where you forget to free up memory






18. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






19. ARC is susceptible to retain _____






20. 3 Common Float data types: float - _____ - CGFloat






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






22. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






23. In a home building analogy a ____ is the blueprint and the object is the house






24. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.






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






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






27. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






28. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block






29. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.






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






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






32. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro






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






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






35. All objects are created on the _____






36. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.






37. In a format string the place holder for an object is ______






38. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.






39. Property attribute that causes the setter to store a copy of the assigned value






40. There are ____ fundamental building blocks in Objective-C






41. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.






42. C-style strings always end with a ____ character






43. To destroy an object set the variable that points to it to _____






44. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






45. A method that can operate on class objects rather than instances of the class.






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






47. In Objective-C floats are more commonly used than ______






48. Finding the method implementation to invoke in response to the message






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






50. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects