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. Three main categories of more complicated data structures:_______ - arrays and structs






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






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






4. An architecture that facilitates communication between objects in different address spaces.






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






6. ARC is susceptible to retain _____






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






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






9. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.






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






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






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






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






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






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






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






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






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






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






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






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






22. The most flexible C data type: ______






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






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






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






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






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






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






29. ______ data types are always zero or greate






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






31. Objective-C is a _____ of the C language






32. _____ operators take 2 operands






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






34. ______ operators take a single operand






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






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






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






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






39. Initializer method traditionally begin with the _____ prefix






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






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






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






43. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






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






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






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






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






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. a+b; is an example of using a _____ operator






50. A ____ _____ is where you forget to free up memory