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. ARC is susceptible to retain _____






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






3. Property attribute where the setter stores the assigned value but does not perform any memory management.






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






5. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






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






14. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.






15. A compiler feature that provides automated memory management






16. ______ data types are always zero or greate






17. The root class in Objective-C






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






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






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






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






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






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






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






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






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






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






28. The most flexible C data type: ______






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






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






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






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






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






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






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






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






37. _____ data types can be both positive and negative






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






39. In a home building analogy a ____ is the blueprint and the object is the house






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






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






42. An object id with a value of 0.






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






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






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






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






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






48. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.






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






50. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.