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