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. Objective-C's protocols are really about communicating _____ _______






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






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






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






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






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






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






10. Objective-C methods are called using ____ _____






11. The first index in an array is valued at ____






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






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






14. Initializer method traditionally begin with the _____ prefix






15. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






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






19. An object id with a value of 0.






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






21. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.






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






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






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






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






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






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






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






29. a++; is an example of using a _____ operator






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






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






32. Square bracket syntax for calling a method






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






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






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






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






37. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.






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






39. ARC is susceptible to retain _____






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






41. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met






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






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






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






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






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






47. The most flexible C data type: ______






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






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






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