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 types are divided into two main categories: integer and ______






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






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






4. Property attribute that causes the setter to store a strong reference to the assigned value






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






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






7. Property attribute that synthesizes only a getter for the property






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






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






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






11. An object in another application - one that's a potential receiver for a remote message.






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






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






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






15. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block






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






17. The root class in Objective-C






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






19. This symbol denotes a method as being an instance method






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






21. _____ operators take 2 operands






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






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






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






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






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






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






28. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






36. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






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






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






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






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






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






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






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






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






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






46. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.






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






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






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






50. Objective-C methods are called using ____ _____