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






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






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






4. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.






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






6. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






7. The most flexible C data type: ______






8. _____ operators take 2 operands






9. The direct or indirect report of external activity especially user activity on the keyboard and mouse.






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






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






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






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






14. Property attribute that synthesizes both a getter and setter for the property






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






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






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






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






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






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






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






22. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.






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






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






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






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






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






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






29. A ____ ____ is a situation where you free memory and then accidentally continue to use it






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






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






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






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






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






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






36. Objective-C methods are called using ____ _____






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






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






39. A compiler feature that provides automated memory management






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






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






42. Objective-C is a _____ of the C language






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






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






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






46. All objects are created on the _____






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






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






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






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