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. The process of setting or reading the value at an address pointed to by a pointer






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






3. _____ data types can be both positive and negative






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






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






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






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






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






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






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






11. 3 Common Float data types: float - _____ - CGFloat






12. Initializer method traditionally begin with the _____ prefix






13. Property attribute that synthesizes both a getter and setter for the property






14. ARC is susceptible to retain _____






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






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






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






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






19. The root class in Objective-C






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






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






22. _____ 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'.






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






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






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






26. Objective-C methods are called using ____ _____






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






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






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






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






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






32. An object id with a value of 0.






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






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






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






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






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






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






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






40. All objects are created on the _____






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






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






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






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






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. _____ operators take 2 operands






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






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






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






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