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+b; is an example of using a _____ operator






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






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






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






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






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






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






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






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






10. The root class in Objective-C






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






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






13. Initializer method traditionally begin with the _____ prefix






14. Any method that can be used by an instance of a class rather than by the class object.






15. ARC is susceptible to retain _____






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






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






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






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






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






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






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






23. Symbol used to denote a placeholder in a format string






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






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






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






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






28. An object of unknown class. Interface is published through protocol declaration.






29. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






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






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






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






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






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






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






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






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






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






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






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






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






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






43. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






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






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






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






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






48. A compiler feature that provides automated memory management






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






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