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. ______ data types are always zero or greate






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






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






4. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






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






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






8. ______ operators take a single operand






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






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






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






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






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






14. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






15. Initializer method traditionally begin with the _____ prefix






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






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






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






19. An object id with a value of 0.






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






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






22. Same as class object. (second way to say it.)






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






24. A compiler feature that provides automated memory management






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






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






27. Xcode sequence to convert non-ARC apps to ARC






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






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






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






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






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






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






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






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






36. _____ data types can be both positive and negative






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






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






39. The most flexible C data type: ______






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






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






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






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






44. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).






45. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.






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






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






48. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.






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






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