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 a procedure that can be executed by an object.






2. Objective-C methods are called using ____ _____






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






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






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






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






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






8. _____ data types can be both positive and negative






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






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






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






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






13. All objects are created on the _____






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






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






16. Square bracket syntax for calling a method






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






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






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






20. ______ operators take a single operand






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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