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 time when source code is compiled; constrained by the amount and kind of information encoded in source files.






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






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






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






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






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






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






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






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






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






11. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






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






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






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






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






16. Initializer method traditionally begin with the _____ prefix






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






18. An object id with a value of 0.






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






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






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






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






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






24. The most flexible C data type: ______






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






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






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






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






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






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






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






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. Xcode sequence to convert non-ARC apps to ARC






34. The root class in Objective-C






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






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






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






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






39. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






47. _____ operators take 2 operands






48. A compiler feature that provides automated memory management






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






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






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