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. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






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






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






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






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






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






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






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






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






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






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






12. ______ operators take a single operand






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






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






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






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






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






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






19. A protocol declared as a category usually as a category of the NSObject class.






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






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






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






23. The most flexible C data type: ______






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






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






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






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






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






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






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






31. The root class in Objective-C






32. _____ data types can be both positive and negative






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






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






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






36. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).






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






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






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






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






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






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






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






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






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






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






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






48. Property attribute that causes the setter to store a strong reference to the assigned value






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






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