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 the Objective-C language the declaration of a group of methods not associated with any particular class.






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






3. All objects are created on the _____






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






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






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






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






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






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






10. ______ data types are always zero or greate






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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. Discovering the class of an object at runtime rather than at compile time.






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






35. ______ operators take a single operand






36. The root class in Objective-C






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






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






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






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






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






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






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






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






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






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






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






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






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






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