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 always zero or greate






2. 3 Common Float data types: float - _____ - CGFloat






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






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






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






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






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






8. All objects are created on the _____






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






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






11. An object id with a value of 0.






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






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






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






15. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.






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






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






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






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






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






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






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






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






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






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






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






27. In object-oriented programming the object that is sent a message.






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






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






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






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






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






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






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






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






36. Square bracket syntax for calling a method






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






38. Same as class object. (second way to say it.)






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






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






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






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






43. A method that can operate on class objects rather than instances of the class.






44. Same as class object. (first way to say it.)






45. _____ operators take 2 operands






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






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






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






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






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.