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. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles






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






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






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






5. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






29. ______ data types are always zero or greate






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






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






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






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






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






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






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






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






38. Any class that's one step below another class in the inheritance hierarchy.






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






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






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






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






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






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






45. The root class in Objective-C






46. Finding the method implementation to invoke in response to the message






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






48. In Objective-C floats are more commonly used than ______






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






50. ______ operators take a single operand