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 (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






2. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.






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






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






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






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






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






8. The most flexible C data type: ______






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






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






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






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






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






14. The root class in Objective-C






15. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






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






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






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






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






21. An object id with a value of 0.






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






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






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






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






26. All objects are created on the _____






27. _____ operators take 2 operands






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






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






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






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






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






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






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






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






36. ARC is susceptible to retain _____






37. _____ data types can be both positive and negative






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






39. ______ data types are always zero or greate






40. Initializer method traditionally begin with the _____ prefix






41. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.






42. Xcode sequence to convert non-ARC apps to ARC






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






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






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






46. An architecture that facilitates communication between objects in different address spaces.






47. A ____ ____ is a situation where you free memory and then accidentally continue to use it






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






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






50. ______ operators take a single operand