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. Finding the method implementation to invoke in response to the message






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






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






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






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






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






7. Property attribute that synthesizes only a getter for the property






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






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






10. ______ operators take a single operand






11. _____ data types can be both positive and negative






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






13. The most flexible C data type: ______






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






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






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






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






18. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






19. ARC is susceptible to retain _____






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






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






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






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






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






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






26. Discovering the class of an object at runtime rather than at compile time.






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






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






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






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






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






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






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






34. Square bracket syntax for calling a method






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






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






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






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






39. Symbol used to denote a placeholder in a format string






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






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






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






43. Objective-C methods are called using ____ _____






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






45. Objective-C's protocols are really about communicating _____ _______






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






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






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






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






50. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.