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