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. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






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






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






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






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






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






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






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+b; is an example of using a _____ operator






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






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






12. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






13. Objective-C methods are called using ____ _____






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






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






16. A compiler feature that provides automated memory management






17. All objects are created on the _____






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






19. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro






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






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






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






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






24. An architecture that facilitates communication between objects in different address spaces.






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






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






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






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






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






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






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






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






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






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






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






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






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






38. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block






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






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






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






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






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






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






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






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






47. An object in another application - one that's a potential receiver for a remote message.






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






49. The root class in Objective-C






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