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. 3 Common Float data types: float - _____ - CGFloat






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






3. _____ data types can be both positive and negative






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






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






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






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






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






9. ______ data types are always zero or greate






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






34. ARC is susceptible to retain _____






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






36. Square bracket syntax for calling a method






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






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






39. The most flexible C data type: ______






40. There are ____ fundamental building blocks in Objective-C






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






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






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






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






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






46. An object in another application - one that's a potential receiver for a remote message.






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






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






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






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