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. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






3. An object id with a value of 0.






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






5. A compiler feature that provides automated memory management






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






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






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






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. Square bracket syntax for calling a method






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






12. Any class that's one step below another class in the inheritance hierarchy.






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






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






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






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






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






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






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






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






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






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






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






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






25. Property attribute that synthesizes both a getter and setter for the property






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






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






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






29. All objects are created on the _____






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






31. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.






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






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






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






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






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






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






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






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






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






41. Discovering the class of an object at runtime rather than at compile time.






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






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






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






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






46. Objective-C methods are called using ____ _____






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






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






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






50. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.