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. Three main categories of more complicated data structures:_______ - arrays and structs






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






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






4. A method that can operate on class objects rather than instances of the class.






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






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






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






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






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






10. An object id with a value of 0.






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






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






13. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






14. Square bracket syntax for calling a method






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






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






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






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






19. The most flexible C data type: ______






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






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






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






23. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings






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






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






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






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






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






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






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






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






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






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






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






35. ______ operators take a single operand






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






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






38. All objects are created on the _____






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






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






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






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






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






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






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






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






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






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






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






50. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.