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. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






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






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






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






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






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






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






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






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






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






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






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






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






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






15. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.






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






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






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






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






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






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






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






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






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






25. Xcode sequence to convert non-ARC apps to ARC






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






27. ______ data types are always zero or greate






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






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






30. Initializer method traditionally begin with the _____ prefix






31. Finding the method implementation to invoke in response to the message






32. A compiler feature that provides automated memory management






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






34. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro






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






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






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






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






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






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






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






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






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






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






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






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






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






48. All objects are created on the _____






49. _____ operators take 2 operands






50. An architecture that facilitates communication between objects in different address spaces.