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 accessors that are not thread safe






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






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






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






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






6. ______ data types are always zero or greate






7. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






28. Square bracket syntax for calling a method






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






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






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






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






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






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






35. The direct or indirect report of external activity especially user activity on the keyboard and mouse.






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






37. ______ operators take a single operand






38. _____ data types can be both positive and negative






39. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






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






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






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






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






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






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






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






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






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






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