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. a+b; is an example of using a _____ operator






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






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






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






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






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






8. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






9. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






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






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






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






15. An object id with a value of 0.






16. A struct may contain multiple ____ consisting of different data types






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






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






19. Another name for a class that's defined solely so that other classes can inherit from it.






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






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






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






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






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






25. A ____ _____ is where you forget to free up memory






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






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






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






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






30. A compiler feature that provides automated memory management






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






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






33. _____ operators take 2 operands






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






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






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






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






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






39. ARC is susceptible to retain _____






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






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






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






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






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






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






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






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






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






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






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