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. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block






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






3. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






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






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






6. Objective-C binds methods and arguments at _____ instead of compile time






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






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






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






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






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






12. Xcode sequence to examine an app for memory leaks or retain cycles






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






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






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






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






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






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






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






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






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






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






24. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.






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






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






27. ______ data types are always zero or greate






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






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






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






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






32. The first index in an array is valued at ____






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






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






35. The root class in Objective-C






36. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






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






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






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






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






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






42. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






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






44. Square bracket syntax for calling a method






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






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






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






48. Objective-C methods are called using ____ _____






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






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







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