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. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments






2. ______ operators take a single operand






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






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






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






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






7. Square bracket syntax for calling a method






8. Discovering the class of an object at runtime rather than at compile time.






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






10. Initializer method traditionally begin with the _____ prefix






11. All objects are created on the _____






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






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






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






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






16. Instance variables are optional in iOS if ________ are used






17. An object id with a value of 0.






18. ______ data types are always zero or greate






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






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






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






22. Property attribute that synthesizes accessors that are not thread safe






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






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






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






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






27. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






36. A protocol declared as a category usually as a category of the NSObject class.






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






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






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






40. _____ data types can be both positive and negative






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






42. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






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






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






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






46. Objective-C methods are called using ____ _____






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






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






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






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