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






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






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






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






5. Square bracket syntax for calling a method






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






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






8. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






17. _____ operators take 2 operands






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






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






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






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






22. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






28. Any class that's one step below another class in the inheritance hierarchy.






29. ARC is susceptible to retain _____






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






46. A message sent from one application to an object in another application.






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






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






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






50. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






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