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. When creating a class header file you begin with the _____ keyword and close with the @end keyword






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






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






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






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






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






7. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.






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






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






10. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.






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






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






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






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






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






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






17. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.






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






19. Objective-C methods are called using ____ _____






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






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






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






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






24. ARC is susceptible to retain _____






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






40. The most flexible C data type: ______






41. The root class in Objective-C






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






43. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






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






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






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






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






50. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.







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