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. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






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






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






5. A class is said to do this when it declares that it implements all the methods in the protocol.






6. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






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






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






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






17. A compiler feature that provides automated memory management






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






19. Objective-C's protocols are really about communicating _____ _______






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






21. An object id with a value of 0.






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






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






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






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






26. In a home building analogy a ____ is the blueprint and the object is the house






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






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






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






30. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments






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






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






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






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






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






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






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






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






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






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






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






42. ARC is susceptible to retain _____






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






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






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






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






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






48. ______ data types are always zero or greate






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






50. ______ operators take a single operand