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






2. Initializer method traditionally begin with the _____ prefix






3. A compiler feature that provides automated memory management






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






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






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






7. ARC is susceptible to retain _____






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






9. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






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






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






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






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






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






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






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






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






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






19. Instance variables are optional in iOS if ________ are used






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






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






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






23. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






24. _____ allow you to add new methods to existing classes






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






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






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






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






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






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






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






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






33. _____ operators take 2 operands






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






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






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






37. Objective-C methods are called using ____ _____






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






39. Discovering the class of an object at runtime rather than at compile time.






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






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






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






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






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






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






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






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






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






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






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