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. In object-oriented programming a procedure that can be executed by an object.






2. ARC is susceptible to retain _____






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






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






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






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






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






8. All objects are created on the _____






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






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






11. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






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






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






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






17. _____ operators take 2 operands






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






19. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






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






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






22. Objective-C methods are called using ____ _____






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






24. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






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






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






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






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






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






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






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






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






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






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






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






37. The most flexible C data type: ______






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






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






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






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






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






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






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






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






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






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






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






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






50. This symbol denotes a method as being a class method