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