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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






30. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).






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






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






33. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.






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






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






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






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






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






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






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






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






42. A compiler feature that provides automated memory management






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






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






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






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






47. _____ data types can be both positive and negative






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






49. ARC is susceptible to retain _____






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