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. _____ allow you to add new methods to existing classes






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






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






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






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






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






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






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






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






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






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






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






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






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






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






16. ______ operators take a single operand






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






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






19. The most flexible C data type: ______






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






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






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






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






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






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






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






27. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.






28. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






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






30. Property attribute where the setter stores the assigned value but does not perform any memory management.






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






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






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






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






35. An object that acts on behalf of another object.






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






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






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






39. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






40. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






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