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 _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






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






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






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






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






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






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






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






9. Placing a ____ before a normal variable name gives it's address






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






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






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






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






14. ______ operators take a single operand






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






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






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






18. The most flexible C data type: ______






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






20. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






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






22. An object id with a value of 0.






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






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






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






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






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






28. A method that can operate on class objects rather than instances of the class.






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






30. An object in another application - one that's a potential receiver for a remote message.






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






32. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






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






36. An object that acts on behalf of another object.






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






38. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






40. The root class in Objective-C






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






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






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






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






45. C-style strings always end with a ____ character






46. Symbol used to denote a placeholder in a format string






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






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






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






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