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. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






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






5. ______ data types are always zero or greate






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






7. Initializer method traditionally begin with the _____ prefix






8. Objective-C objects should use strong or weak ______






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






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






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






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






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






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






15. Objective-C methods are called using ____ _____






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






17. An object of unknown class. Interface is published through protocol declaration.






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






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






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






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






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






23. _____ data types can be both positive and negative






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






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






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






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






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






29. Property attribute that causes the setter to store a strong reference to the assigned value






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






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






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






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






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






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






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






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






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






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






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






41. Symbol used to denote a placeholder in a format string






42. A message sent from one application to an object in another application.






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






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






45. ______ operators take a single operand






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






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






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






49. Same as class object. (first way to say it.)






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