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






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






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






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






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






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






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






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






9. A class is said to do this when it declares that it implements all the methods in the protocol.






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






11. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica






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






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






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






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






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






17. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






25. 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).






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






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






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






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






30. Square bracket syntax for calling a method






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






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






33. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.






34. The most flexible C data type: ______






35. An object id with a value of 0.






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






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






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






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






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






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






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






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






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






45. In a format string the place holder for an object is ______






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






47. _____ operators take 2 operands






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






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






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