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. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






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






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






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






5. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.






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






7. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






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






9. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






26. ______ operators take a single operand






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






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






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






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






31. C-style strings are stored in an array of _____






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






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






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






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






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






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






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






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






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






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






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






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






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






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






46. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






47. Objective-C methods are called using ____ _____






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






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






50. An object id with a value of 0.