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. An object of unknown class. Interface is published through protocol declaration.






2. ______ data types are always zero or greate






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






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






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






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






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






8. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).






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






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






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






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






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






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






15. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).






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






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






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






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






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






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






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






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






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






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






26. The most flexible C data type: ______






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






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






29. ______ operators take a single operand






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






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






32. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






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






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






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






36. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






37. Any class that's one step below another class in the inheritance hierarchy.






38. An object id with a value of 0.






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






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






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






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






43. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro






44. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.






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






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






47. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles






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






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






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