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. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






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






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






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






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






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






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






8. Initializer method traditionally begin with the _____ prefix






9. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






10. An architecture that facilitates communication between objects in different address spaces.






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






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






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






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






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






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






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






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






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






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






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






22. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






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






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






25. In object-oriented programming the object that is sent a message.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






42. This symbol denotes a method as being an instance method






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






44. Square bracket syntax for calling a method






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






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






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






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






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






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