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. Square bracket syntax for calling a method






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






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






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






5. An architecture that facilitates communication between objects in different address spaces.






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






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






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






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






10. A compiler feature that provides automated memory management






11. An object id with a value of 0.






12. ____ provide a concise & elegant method for defining a discrete set of values






13. The _____ function can be used to print a message to the console






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






15. The most flexible C data type: ______






16. All objects are created on the _____






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






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






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






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






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






22. In a home building analogy a ____ is the blueprint and the object is the house






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






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






25. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






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






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






29. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






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






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






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






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






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






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






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






37. Objective-C methods are called using ____ _____






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






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






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






41. a+b; is an example of using a _____ operator






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. This symbol denotes a method as being an instance method






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






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






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






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






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






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






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






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