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






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






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






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






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






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






7. _____ operators take 2 operands






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






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






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






11. ______ operators take a single operand






12. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles






13. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






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






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






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






19. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






28. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






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






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






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






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






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






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






36. A message sent from one application to an object in another application.






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






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






39. Another name for a class that's defined solely so that other classes can inherit from it.






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






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






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






43. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.






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






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






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






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






48. The process of setting or reading the value at an address pointed to by a pointer






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






50. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block