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. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






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






3. The most flexible C data type: ______






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






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






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






7. Objective-C methods are called using ____ _____






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






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






10. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






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






14. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






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






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






19. Initializer method traditionally begin with the _____ prefix






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






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






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






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






24. Square bracket syntax for calling a method






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






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






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






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






29. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






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






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






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






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






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






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






36. ARC is susceptible to retain _____






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






38. A compiler feature that provides automated memory management






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






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






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






42. ______ operators take a single operand






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






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






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






46. A message sent from one application to an object in another application.






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






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






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






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