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 prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






4. Xcode sequence to convert non-ARC apps to ARC






5. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






7. The root class in Objective-C






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






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






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






11. All objects are created on the _____






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






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






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






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






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






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






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






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






20. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






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






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






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






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






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






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






28. Objective-C binds methods and arguments at _____ instead of compile time






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






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






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






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






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






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






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






36. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.






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






38. C-style strings always end with a ____ character






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






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






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






42. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.






43. _____ data types can be both positive and negative






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






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






46. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro






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






48. Initializer method traditionally begin with the _____ prefix






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






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