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






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






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






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






5. Objective-C methods are called using ____ _____






6. The root class in Objective-C






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






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






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






10. ARC is susceptible to retain _____






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






12. The most flexible C data type: ______






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






14. ______ operators take a single operand






15. ______ data types are always zero or greate






16. A compiler feature that provides automated memory management






17. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.






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






19. Objective-C objects should use strong or weak ______






20. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






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






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






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






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






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






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






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






30. A class is said to do this when it declares that it implements all the methods in the protocol.






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






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






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






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






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






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






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






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






39. Discovering the class of an object at runtime rather than at compile time.






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






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






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






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






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






45. All objects are created on the _____






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






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






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






49. Square bracket syntax for calling a method






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