SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Cocoa Programming Basics
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 47 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. Actions of a view are implemented by ___________
NSMutableArray
NSControl
NSNumber
-setTarget
2. To modify a boxed number you must first unbox it and then perform your primitive ________ and then rebox it
primitive
Protocol
NSApplication
operations
3. Methods that respond directly to user interface commands
NSString
actions
zero
Smalltalk
4. Interface Builder creates ___________ and instances of your own classes that may be joined to UI objects
nil
user interface objects
NSMutableArray
mutableCopy
5. Here a delegate is used & a controller object that responds to a set of messages defined by the view
Complex view interfaces
NSMutableString
XCode
classes
6. Objects created through methods that retain alloc or new or copy or _________ must be explicitly released
mutableCopy
NSValue
zero
message sending
7. The basic changeable and unchangeable arrays are: __________ and NSMutableArray
selector
NSArray
selector
Boxing
8. Prints the result of sending "description" to an object
NSNumber
function call
object
print object command (po)
9. NSValue can contain any _________ data type
OpenStep Foundation
directly
print object command (po)
primitive
10. A message send is a higher-level version of a ____________
Reflection
function call
XCode
mutableCopy
11. ____________ is NSString's one public subclass - and also a class cluster
delegate
NSMutableString
print object command (po)
Collections
12. Ensures that every object that has been autoreleased gets sent the release message
message sending
NSApplication
NSAutoreleasePool
operations
13. _______ provides a build system & a code editor and a debugger
XCode
user interface objects
NSHashTable
NSString
14. Standard files included through XCode:<Cocoa/Cocoa.h> and the standard C and _____ libraries
UNIX
zero
NSControl
function call
15. __________ is mutable
UNIX
NSMutableArray
Option-Double-Click
immutable
16. Three types of collection classes provided by the Foundation: Sets - arrays and ________
dictionaries
NSMutableString
NSAutoreleasePool
C
17. __________ refers to an object's ability to look inside itself and change itself
NSPoint
nil
user interface objects
Reflection
18. __________ is a structure whose first element is a pointer to a class
NSNumber
object
immutable
Complex view interfaces
19. The ________ class is the programmatic interface to nib files
NSNib
NSAutoreleasePool
classes
selector
20. _________ is a class cluster and never directly used
NSString
user interface objects
Protocol
operations
21. Cocoa objects that take variadic initializers
selector
user interface objects
outlets
Collections
22. The four NON object types in Objective C: NSRange - ______ - NSSize and NSRect
OpenStep Foundation
NSPoint
Collections
NSNumber
23. Objective-C is a set of _________-like object-oriented extensions to C
actions
function call
primitive
Smalltalk
24. Objective C is a PURE SUPERSET of _____
Complex view interfaces
dictionaries
C
directly
25. It is not an error to send a message to _______
nil
NSNUmber
NSValue
directly
26. Two methods that must each concrete subclass of NSString override: -length and _________
NSPoint
-characterAtIndex
NSNumber
classes
27. This opens a function or method or class name as a term in XCode
Reflection
Option-Double-Click
NSArray
complex views
28. Class libraries come from an implementation of _________ such as Cocoa or GNUstep
NSNUmber
OpenStep Foundation
outlets
primitive
29. You usually DON'T use NSNib ________
user interface objects
directly
NSControl
NSString
30. Instance variables that are pointers to other objects
NSValue
outlets
classes
nil
31. Target-action is appropriate for simple view events like button presses but not for __________ with multiple interactions
object
complex views
Reflection
outlets
32. ________object is like a constant it can't be changed - NsString is constant but NsMutableString isn't
NSValue
NSNUmber
complex views
immutable
33. C and Objective C differ in representing _______
dictionaries
NSNib
zero
-characterAtIndex
34. The _____ is used to represent a pointer to an object
id type
primitive
object
NSControl
35. ________is wrapping a primitive value in an object
Boxing
NSAutoreleasePool
mutableCopy
NSHashTable
36. A view implement target action uses _______ and -setAction methods to select the object to call and the method to execute
actions
NSArray
-setTarget
zero
37. The three components of a message send:receiver - __________- and [optional] arguments
immutable
user interface objects
NSArray
selector
38. _______ is a subclass (a class cluster) used to store any kind of single number from a char to a long
selector
Collections
NSNUmber
selector
39. Core Objective C define only defines two classes: Object and ______
actions
NSValue
Protocol
classes
40. The two ways of a new notifying a controller of a change: via an action; via a _________
selector
delegate
NSAutoreleasePool
-characterAtIndex
41. ________ is the most general boxing class
Collections
outlets
NSValue
Boxing
42. ________ is Foundation's simplest type of collection
dictionaries
id type
Reflection
NSHashTable
43. Each segment of a _________ to be followed by an argument is suffixed with a colon
NSHashTable
selector
NSApplication
NSMutableString
44. The most important part of Objective-C is _______________
operations
NSAutoreleasePool
NSMutableString
message sending
45. __________ forwards events from the event queue to the appropriate application window
XCode
NSApplication
outlets
dictionaries
46. The two major additions to C by Objective-C are ________ and message sending
NSString
classes
Option-Double-Click
user interface objects
47. A "class cluster" of NSValue objects which is used to store single numerical values of any type from a char to a long long
Collections
NSNumber
NSNib
print object command (po)