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. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






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






3. _____ data types can be both positive and negative






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






5. _____ operators take 2 operands






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






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






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






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






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






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






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






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






14. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro






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






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






17. An object id with a value of 0.






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






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






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






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






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






23. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






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






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






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. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.






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






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






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






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






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






41. ______ operators take a single operand






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






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






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






45. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.






46. A variable that points to the memory address of another value






47. Objective-C objects should use strong or weak ______






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






49. The most flexible C data type: ______






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







Sorry!:) No result found.

Can you answer 50 questions in 15 minutes?


Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests