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






2. ______ data types are always zero or greate






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






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






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






6. _____ data types can be both positive and negative






7. A compiler feature that provides automated memory management






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






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






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






11. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






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






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






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






23. To destroy an object set the variable that points to it to _____






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






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






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






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






28. ARC is susceptible to retain _____






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






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






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






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






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






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






36. Objective-C objects should use strong or weak ______






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






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






39. ______ operators take a single operand






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






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






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






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






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






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. _____ allow you to add new methods to existing classes






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






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






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






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







Sorry!:) No result found.

Can you answer 50 questions in 15 minutes?


Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests