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






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






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






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






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






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






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






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






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






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






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






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






13. Objective-C methods are called using ____ _____






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






15. ____ provide a concise & elegant method for defining a discrete set of values






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






17. Data types are divided into two main categories: integer and ______






18. An object id with a value of 0.






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






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






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






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






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






24. ______ data types are always zero or greate






25. Initializer method traditionally begin with the _____ prefix






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






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






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






29. This symbol denotes a method as being a class method






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






31. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.






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






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






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






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






36. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings






37. A ____ _____ is where you forget to free up memory






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






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






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






41. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






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