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 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






2. A compiler feature that provides automated memory management






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






4. The process of setting or reading the value at an address pointed to by a pointer






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. Any class that's one step below another class in the inheritance hierarchy.






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






8. _____ operators take 2 operands






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






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






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






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






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






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






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






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






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






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






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






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






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






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






23. Property attribute that causes the setter to store a strong reference to the assigned value






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






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






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






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






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






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






30. _____ data types can be both positive and negative






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






32. ______ data types are always zero or greate






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






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






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






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






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






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






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






40. ______ operators take a single operand






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. Property attribute that causes the setter to store a zeroing weak reference to the assigned value






43. This symbol denotes a method as being an instance method






44. The most flexible C data type: ______






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






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






47. Initializer method traditionally begin with the _____ prefix






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






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






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