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