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. Same as class object. (first way to say it.)






2. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.






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






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






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






6. a+b; is an example of using a _____ operator






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






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






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






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






11. Property attribute that synthesizes only a getter for the property






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






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






14. The most flexible C data type: ______






15. This symbol denotes a method as being a class method






16. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met






17. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'






18. _____ operators take 2 operands






19. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






20. Objective-C objects should use strong or weak ______






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






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






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






24. Property attribute that causes the setter to store a strong reference to the assigned value






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






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






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






28. This symbol denotes a method as being an instance method






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






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






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






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






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






34. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






35. Same as class object. (second way to say it.)






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






37. _____ 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'.






38. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






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






48. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






49. Xcode sequence to examine an app for memory leaks or retain cycles






50. An object id with a value of 0.