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 process of setting or reading the value at an address pointed to by a pointer






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






3. Objective-C objects should use strong or weak ______






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






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






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






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






8. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.






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






10. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.






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






12. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






30. ARC is susceptible to retain _____






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






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






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






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






35. Initializer method traditionally begin with the _____ prefix






36. The most flexible C data type: ______






37. An object id with a value of 0.






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






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






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






41. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






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