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. Xcode sequence to examine an app for memory leaks or retain cycles






2. The root class in Objective-C






3. _____ data types can be both positive and negative






4. Initializer method traditionally begin with the _____ prefix






5. Property attribute that causes the setter to store a zeroing weak reference to the assigned value






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






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






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






9. An object id with a value of 0.






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






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






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






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






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






15. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






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






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






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






20. The most flexible C data type: ______






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






43. A compiler feature that provides automated memory management






44. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.






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






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






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






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






49. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.






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