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. Property attribute that synthesizes only a getter for the property






2. Another name for a class that's defined solely so that other classes can inherit from it.






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






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






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






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






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






8. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.






9. The most flexible C data type: ______






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






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






12. The root class in Objective-C






13. Objective-C binds methods and arguments at _____ instead of compile time






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






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






16. In the Objective-C language the declaration of a group of methods not associated with any particular class.






17. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block






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






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






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






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






22. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






23. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






32. All objects are created on the _____






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






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






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






36. ______ data types are always zero or greate






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






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






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






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






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






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






43. Placing a ____ before a normal variable name gives it's address






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






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






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






47. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






50. ______ operators take a single operand