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. The root class in Objective-C






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






3. The process of setting or reading the value at an address pointed to by a pointer






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






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






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






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






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






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






10. _____ data types can be both positive and negative






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






12. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






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






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






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






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






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. A ____ _____ is where you forget to free up memory






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






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






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






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






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






24. Objective-C objects should use strong or weak ______






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






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






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






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






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






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






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






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






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






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






35. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






36. Property attribute that causes the setter to store a zeroing weak reference to the assigned value






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






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






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






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






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






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






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






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






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






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






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






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






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






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