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






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






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






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






5. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).






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






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. Placing a ____ before a normal variable name gives it's address






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






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






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






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






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






14. Objective-C's protocols are really about communicating _____ _______






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






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






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






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






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






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






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






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






23. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






24. All objects are created on the _____






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. Symbol used to denote a placeholder in a format string






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






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






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






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






31. Three main categories of more complicated data structures:_______ - arrays and structs






32. The most flexible C data type: ______






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






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






35. The root class in Objective-C






36. _____ operators take 2 operands






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






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






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






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






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






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






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






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






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






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






47. Another name for a class that's defined solely so that other classes can inherit from it.






48. Objective-C methods are called using ____ _____






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






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