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. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






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






3. ______ operators take a single operand






4. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






19. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).






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






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






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






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






24. An object id with a value of 0.






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






26. Initializer method traditionally begin with the _____ prefix






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






28. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






37. _____ allow indirect access and modification of a variable's value.






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






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






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






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






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






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






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






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






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






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






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






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






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