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. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






4. Initializer method traditionally begin with the _____ prefix






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






6. ARC is susceptible to retain _____






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






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






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






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






11. ______ data types are always zero or greate






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






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






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






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






16. a+b; is an example of using a _____ operator






17. Three main categories of more complicated data structures:_______ - arrays and structs






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






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






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






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






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






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






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






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






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






27. Objective-C methods are called using ____ _____






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






29. C-style strings are stored in an array of _____






30. An object of unknown class. Interface is published through protocol declaration.






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






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






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






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






35. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






36. An object that acts on behalf of another object.






37. All objects are created on the _____






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






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






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






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






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






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






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






45. An object id with a value of 0.






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






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






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






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






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