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 C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments






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






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






4. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






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






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






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






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






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






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






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






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






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






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






15. A compiler feature that provides automated memory management






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






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






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






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






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






21. Another name for a class that's defined solely so that other classes can inherit from it.






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






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






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






25. An object id with a value of 0.






26. Square bracket syntax for calling a method






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






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






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






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






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






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






33. Property attribute that causes the setter to store a copy of the assigned value






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






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






36. To destroy an object set the variable that points to it to _____






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






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






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






40. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






43. Property attribute that causes the setter to store a strong reference to the assigned value






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






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






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






47. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






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






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






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