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. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






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






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






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






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






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






10. An object id with a value of 0.






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






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






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






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






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






16. All objects are created on the _____






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






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






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






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






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






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






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






24. ARC is susceptible to retain _____






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






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






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






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






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






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






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






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






33. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






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






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






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






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






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






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






48. A compiler feature that provides automated memory management






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






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