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. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






9. A message sent from one application to an object in another application.






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






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






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






13. Objective-C binds methods and arguments at _____ instead of compile time






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






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






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






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






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






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






20. ______ data types are always zero or greate






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. Discovering the class of an object at runtime rather than at compile time.






23. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






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






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






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






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






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






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






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






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






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






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






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






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






36. ARC is susceptible to retain _____






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






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






39. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






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






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