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 prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






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






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






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






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






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






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






10. A set of method definitions that is segregated from the rest of the class definition.






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






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






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






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






15. Objective-C methods are called using ____ _____






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






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






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






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






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






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






22. Initializer method traditionally begin with the _____ prefix






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






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






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






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






27. This symbol denotes a method as being a class method






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






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






30. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






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






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






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






34. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






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






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






38. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.






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






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






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






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






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






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






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






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






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






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






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






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