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. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






2. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments






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






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






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






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






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






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






9. Square bracket syntax for calling a method






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






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






12. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.






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






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






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






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






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






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






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






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






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






22. _____ operators take 2 operands






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






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






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






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






27. The root class in Objective-C






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






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






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






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






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






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






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






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






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






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






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






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






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






41. The _____ function can be used to print a message to the console






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






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






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






45. _____ data types can be both positive and negative






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






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






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






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






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