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






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






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






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






5. All objects are created on the _____






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






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






8. A compiler feature that provides automated memory management






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






10. _____ operators take 2 operands






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






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






13. ______ data types are always zero or greate






14. An object that acts on behalf of another object.






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






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






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






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






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






20. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






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






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






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






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






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






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






27. ______ operators take a single operand






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






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






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






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






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






33. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






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






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






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






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






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. The first index in an array is valued at ____






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






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






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






43. Square bracket syntax for calling a method






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






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






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






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






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






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






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