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++; is an example of using a _____ operator






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






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






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






5. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






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






9. ______ data types are always zero or greate






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






11. Objective-C methods are called using ____ _____






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






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






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






15. The root class in Objective-C






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






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






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






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






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






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






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






23. The most flexible C data type: ______






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






25. _____ operators take 2 operands






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






27. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met






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






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






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






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






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






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






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






35. A compiler feature that provides automated memory management






36. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.






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






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






39. A ____ _____ is where you forget to free up memory






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






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






42. Property attribute that synthesizes both a getter and setter for the property






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






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






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






46. All objects are created on the _____






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






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






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






50. Instance variables are optional in iOS if ________ are used