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






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






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






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






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






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






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






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






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






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






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






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






13. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.






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






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






16. ARC is susceptible to retain _____






17. _____ data types can be both positive and negative






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






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






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






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






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






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






24. The root class in Objective-C






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






26. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.






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






28. The most flexible C data type: ______






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






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






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






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






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






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






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






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






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






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






39. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings






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






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






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






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






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






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






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






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. Objective-C methods are called using ____ _____






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






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