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. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






7. An architecture that facilitates communication between objects in different address spaces.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






23. A compiler feature that provides automated memory management






24. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.






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






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






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






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






29. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






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






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






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






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






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






35. An object id with a value of 0.






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






37. The root class in Objective-C






38. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects






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






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






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






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






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






44. In Objective-C floats are more commonly used than ______






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






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






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






48. ______ operators take a single operand






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






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