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






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






3. _____ operators take 2 operands






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






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






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






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






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






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






10. ______ data types are always zero or greate






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






12. Square bracket syntax for calling a method






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






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






15. Initializer method traditionally begin with the _____ prefix






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






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






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






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






20. Property attribute that causes the setter to store a copy of the assigned value






21. Objective-C methods are called using ____ _____






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






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






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






25. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'






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






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






28. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






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






30. Objective-C is a _____ of the C language






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






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






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






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






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






36. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






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






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






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






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






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






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






44. a+b; is an example of using a _____ operator






45. Any method that can be used by an instance of a class rather than by the class object.






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






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






48. An object id with a value of 0.






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






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