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. C-style strings are stored in an array of _____






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






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






4. Objective-C methods are called using ____ _____






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






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






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






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






9. Placing a ____ before a normal variable name gives it's address






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






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






12. All objects are created on the _____






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






28. Initializer method traditionally begin with the _____ prefix






29. Property attribute that causes the setter to store a strong reference to the assigned value






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






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






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






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






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






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






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






37. _____ data types can be both positive and negative






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






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






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






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






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






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






44. The most flexible C data type: ______






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






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






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






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






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






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