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 nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






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






3. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






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






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






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






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






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






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






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






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






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






15. _____ data types can be both positive and negative






16. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.






17. The root class in Objective-C






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






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






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






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






22. Square bracket syntax for calling a method






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






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






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






26. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






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






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






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






37. Any method that can be used by an instance of a class rather than by the class object.






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






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






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






41. A compiler feature that provides automated memory management






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






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






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






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






46. Same as class object. (second way to say it.)






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






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






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






50. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.