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. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.






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






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






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






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






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






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






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






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






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






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






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






13. The most flexible C data type: ______






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






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






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






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






18. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.






19. The root class in Objective-C






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






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






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






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






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






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






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






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






28. The _____ function can be used to print a message to the console






29. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.






30. In object-oriented programming a procedure that can be executed by an object.






31. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica






32. This symbol denotes a method as being a class method






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






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






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






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






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. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword






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






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






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






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






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






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






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






46. _____ data types can be both positive and negative






47. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.






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






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






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