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 struct may contain multiple ____ consisting of different data types






2. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.






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






4. A class is said to do this when it declares that it implements all the methods in the protocol.






5. The direct or indirect report of external activity especially user activity on the keyboard and mouse.






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






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






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






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






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






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






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






13. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






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






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






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






17. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






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






20. All objects are created on the _____






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






38. An object id with a value of 0.






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






40. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.






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






42. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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