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. There are ____ fundamental building blocks in Objective-C






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






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






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






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






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






7. Objective-C binds methods and arguments at _____ instead of compile time






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






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






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






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






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






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






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






15. ______ operators take a single operand






16. An object id with a value of 0.






17. _____ data types can be both positive and negative






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






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






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






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






22. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






39. Property attribute that synthesizes accessors that are not thread safe






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






41. Square bracket syntax for calling a method






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






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






44. In object-oriented programming the object that is sent a message.






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






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






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






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






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






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