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 protocol declared as a category usually as a category of the NSObject class.






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






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






4. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






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






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






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






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






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






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






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






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






13. A compiler feature that provides automated memory management






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






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






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






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






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






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






20. Property attribute that causes the setter to store a strong reference to the assigned value






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






36. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.






37. Objective-C methods are called using ____ _____






38. _____ operators take 2 operands






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






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






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






42. An object id with a value of 0.






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






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






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






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






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






48. The most flexible C data type: ______






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






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