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. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






3. Objective-C binds methods and arguments at _____ instead of compile time






4. Initializer method traditionally begin with the _____ prefix






5. All objects are created on the _____






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






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






8. A protocol declared as a category usually as a category of the NSObject class.






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






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






11. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.






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






13. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






22. Data types are divided into two main categories: integer and ______






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






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






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






26. ______ data types are always zero or greate






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






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






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






30. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






33. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






34. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.






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






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






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






38. Any class that's one step below another class in the inheritance hierarchy.






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






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






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






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






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






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






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






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






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






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






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






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