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. Any method that can be used by an instance of a class rather than by the class object.






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






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






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






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






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






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






8. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.






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






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






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






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






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






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






15. Initializer method traditionally begin with the _____ prefix






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






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






18. ARC is susceptible to retain _____






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






20. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.






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






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






23. Discovering the class of an object at runtime rather than at compile time.






24. All objects are created on the _____






25. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






26. ______ data types are always zero or greate






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






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






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






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






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






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






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






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






35. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






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






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






46. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.






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






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






49. _____ data types can be both positive and negative






50. The root class in Objective-C