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






2. Objective-C methods are called using ____ _____






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






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






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






6. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






7. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met






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






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






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






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






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






13. Same as class object. (first way to say it.)






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






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






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






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






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






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






20. Square bracket syntax for calling a method






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






22. Property attribute where the setter stores the assigned value but does not perform any memory management.






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






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






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






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






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






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






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






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






31. Property attribute that causes the setter to store a copy of the assigned value






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






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






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






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






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






37. The root class in Objective-C






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






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






40. The most flexible C data type: ______






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






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






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






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






45. In a home building analogy a ____ is the blueprint and the object is the house






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






47. Same as class object. (second way to say it.)






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






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






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