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. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles






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






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






4. Square bracket syntax for calling a method






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






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






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






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






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






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






11. A struct may contain multiple ____ consisting of different data types






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






13. In object-oriented programming a procedure that can be executed by an object.






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






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






16. A compiler feature that provides automated memory management






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






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






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






20. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






21. In Objective-C floats are more commonly used than ______






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






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






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






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






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






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






28. Finding the method implementation to invoke in response to the message






29. ______ data types are always zero or greate






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






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






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






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






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






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






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






37. All objects are created on the _____






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






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






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






41. _____ operators take 2 operands






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






43. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.






44. Objective-C objects should use strong or weak ______






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






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






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






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






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






50. _____ data types can be both positive and negative






Can you answer 50 questions in 15 minutes?



Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests