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. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






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






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






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






5. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






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






15. Square bracket syntax for calling a method






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






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






18. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






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






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






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






22. ______ operators take a single operand






23. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






24. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.






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






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






27. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ 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. Property attribute that synthesizes accessors that are not thread safe






30. _____ operators take 2 operands






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






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






33. Any method that can be used by an instance of a class rather than by the class object.






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






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






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






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






38. The most flexible C data type: ______






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






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






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






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






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






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






45. Finding the method implementation to invoke in response to the message






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






47. A compiler feature that provides automated memory management






48. ARC is susceptible to retain _____






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






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