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. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






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






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






4. In object-oriented programming a procedure that can be executed by an object.






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






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






7. The root class in Objective-C






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






9. _____ data types can be both positive and negative






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. There are ____ fundamental building blocks in Objective-C






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






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






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






15. The most flexible C data type: ______






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






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






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






19. All objects are created on the _____






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






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






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






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






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






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






26. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met






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






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






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






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






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






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






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






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






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






36. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






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






38. An object id with a value of 0.






39. ______ operators take a single operand






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






41. The first index in an array is valued at ____






42. _____ operators take 2 operands






43. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles






44. ______ data types are always zero or greate






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






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






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






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






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






50. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.