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. In a format string the place holder for an object is ______






3. An object id with a value of 0.






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






5. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






29. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.






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






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






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






33. _____ data types can be both positive and negative






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






35. The most flexible C data type: ______






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






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






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






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






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






41. _____ operators take 2 operands






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






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






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






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






46. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.






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






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






49. ______ operators take a single operand






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