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






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






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






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






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






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






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






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






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






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






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






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






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






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






15. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






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






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






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






19. Square bracket syntax for calling a method






20. Any method that can be used by an instance of a class rather than by the class object.






21. _____ operators take 2 operands






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






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






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






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






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






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






28. The most flexible C data type: ______






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






30. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.






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






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






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






34. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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