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 object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






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






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






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






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






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






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






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






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






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






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






13. The root class in Objective-C






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






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






16. _____ operators take 2 operands






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






18. Initializer method traditionally begin with the _____ prefix






19. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.






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






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






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






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






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






25. The most flexible C data type: ______






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






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






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






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






30. An object id with a value of 0.






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






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






33. ______ data types are always zero or greate






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






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






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






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






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






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






40. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.






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






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






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






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






45. Property attribute where the setter stores the assigned value but does not perform any memory management.






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






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






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






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






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