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. In the Objective-C language the declaration of a group of methods not associated with any particular class.






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






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






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






5. _____ data types can be both positive and negative






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






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






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






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






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






11. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings






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






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






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






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






16. Square bracket syntax for calling a method






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






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






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






20. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.






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






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






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






24. The most flexible C data type: ______






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






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






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






28. A compiler feature that provides automated memory management






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






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






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






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






33. An object id with a value of 0.






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






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






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






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






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






39. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.






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






41. All objects are created on the _____






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






43. _____ allow indirect access and modification of a variable's value.






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






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






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






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






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






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






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