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. When creating a class header file you begin with the _____ keyword and close with the @end keyword






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






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






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






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






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






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






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






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






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






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






12. ______ operators take a single operand






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






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






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






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






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






18. The root class in Objective-C






19. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.






20. A compiler feature that provides automated memory management






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






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






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






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






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






26. An object id with a value of 0.






27. Property attribute that synthesizes both a getter and setter for the property






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






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






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






31. A ____ ____ is a situation where you free memory and then accidentally continue to use it






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






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 class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






35. All objects are created on the _____






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






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






38. Property attribute that synthesizes accessors that are not thread safe






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






40. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






42. Xcode sequence to examine an app for memory leaks or retain cycles






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






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






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






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






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






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






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






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