SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
iOS 5 App Development Objective C
Start Test
Study First
Subjects
:
it-skills
,
apple
Instructions:
Answer 50 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. When an object is added to a NSMutableArray - that object is sent the message to retain;...
receiver - selector - arguments
the array becomes an owner of that object and has a pointer to it.
its dataSource
NSCoder
2. Also if you send the NSObject the _ message - you own that object.
CGRect
a mechanism to enable specific callbacks
instance variables
retain
3. When an NSMutableArray is deallocated - it sends...
class methods - initializers
@synthesize
the message release to all its entries
only the innermost loop in which the break is executed is terminated
4. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
instance variable of an object is valid
Maintenance of state
Ready-Made Instance
retain
5. Each class picks one _ as it's designated initializer....
array[class - NSMutableArray]
initializer
Continue
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
6. A view is a subclass of _
retain
self
UIView
do so in viewDidLoad
7. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
instance variables
ordered collection of objects - immutable
pointer - class
arguments[message]
8. All objects are accessed using...
they need to be defined in the implementation file
only the class and subclasses can access
pointers
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
9. Class methods typically either create
new instances of the class or retrieve some global property of the class.
pointer to an object
copy - retain
Core Graphics Framework
10. Only exists within the statement block there defined - outside of the block is fine
a single-array can contain objects of different types
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
UIViewController
variable scope - if defined within a block
11. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
a mechanism to enable specific callbacks
ordered collection of objects - immutable
first responder
Object wrapper around primitive types like int - float - double - BOOl
12. @property declares - and _ implements the setter and getter...
ordered collection of objects - immutable
@synthesize
CGFloat
new instances of the class or retrieve some global property of the class.
13. Each _ has a 'designated' initializer method....
selector[message]
unordered collection of objects - objects must be unique
declaration and initialization of a variable
class
14. Prefixing a character string with an @ symbol [specific - NSString class]...
do so in viewDidLoad
selector[message]
creates an instance of NSString that holds the character string
attributes - behavior
15. Name of the method to be executed
selector[message]
UIView
Model Objects[Factory Worker]
variable scope - if defined within a block
16. Just a floating point number - but we always use it for graphics.
CGFloat
dealloc - is called on the object & the object's memory is returned to the heap
storage
instance
17. We can use dot notation to reference...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
18. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
calling code that does the instantiation for you
rectangular
receiver
19. The only reason to temporarily own an object - is...
@interface ClassName:SuperClassName
to give it someone else - or another object
CF - Ref
superclass's
20. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
methods for generating an instance
CGRect
Object wrapper around primitive types like int - float - double - BOOl
callbacks
21. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
only the class and subclasses can access
safety - subclassability and makes code look more consistent with C structs
header files declare
receiver
22. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
viewWillDissapear: and viewWillAppear:
references to objects
receiver[message]
23. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
Data Encapsulation
pointers
@synthesize
24. NSDate - class...
Abstraction
Encapsulation of functionality
Used to find the time right now or to store past or future time/dates
Is a placeholder object
25. Whenever a UINavigationController is about to swap views - it sends out two messages
pointer - class
do so in viewDidLoad
viewWillDissapear: and viewWillAppear:
nil
26. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
instance variable of an object is valid
the message release to all its entries
Maintenance of state
receiver - selector - arguments
27. super - is used...
Model Objects[Factory Worker]
for inheritance - adopting the superclasses implementation
Continue
rectangular
28. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
object
lowercase - uppercase
Ready-Made Instance
29. Use of class methods - there are three...
alloc - singleton - informational utility method?
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Functions
UIViewController
30. In general - class methods tend to be factory methods - that is...
create a XIB file
accessors - individually we call them 'getters' and 'setters'
unordered collection of objects - objects must be unique
methods for generating an instance
31. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
define it in the implemenation file
will be ignored
CF - Ref
32. In Objective C arrays can hold only...
the array becomes an owner of that object and has a pointer to it.
references to objects
view controller
Abstraction
33. You use _ to implement the view
Abstraction
calling code that does the instantiation for you
CGRect bounds
group of global functions already assigned to this class
34. Reference Counting...
only the innermost loop in which the break is executed is terminated
You take ownership for an object you want to keep a pointer to
data
initializer
35. A method in a _ is required unless its preceded by an @optional.
view
copy - retain
protocol
safety - subclassability and makes code look more consistent with C structs
36. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
Encapsulation of functionality
will be ignored
only the innermost loop in which the break is executed is terminated
position
37. UIViewController has several methods that get called at certain times...
pointer - class
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
wait until the loop finishes processing the event - at the end release it
pointer to an object
38. Classes describe two things...
implementation
draw images
attributes - behavior
group of global functions already assigned to this class
39. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.
UIViewController
creates an instance of NSString that holds the character string
alloc - singleton - informational utility method?
Data Encapsulation
40. A function in the objective c library that simply displays or logs it's argument
Model Objects[Factory Worker]
NSBundle
NSLog routine
dealloc - is called on the object & the object's memory is returned to the heap
41. NSString objects are usually sent _ rather than _...
to give it someone else - or another object
class methods - initializers
protocol
copy - retain
42. id is a...
pointer to an object
for inheritance - adopting the superclasses implementation
cannot be added to an array
Generic object wrapper for other non-object data types
43. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
a single-array can contain objects of different types
Continue
pointers
Controller Objects[Managers]
44. A pointer to the object being asked to execute a method
receiver[message]
its dataSource
wait until the loop finishes processing the event - at the end release it
message
45. When do you take ownership?...
type - name and value
attributes - behavior
initializer
Anytime you call a method with new - alloc or copy. You own and must release that object.
46. When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....
Data Encapsulation
copy - retain
define it in the implemenation file
CGRect bounds
47. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.
view
designated initializer
is an instance of that class
nil
48. Center and frame are used to _ your view
reuse your cells
for inheritance - adopting the superclasses implementation
instance of UIView or one of its subclasses
position
49. class methods...
receiver - selector - arguments
instance of UIView or one of its subclasses
group of global functions already assigned to this class
the array becomes an owner of that object and has a pointer to it.
50. Categories are an Objective C way to add _ to an existing class without subclassing
methods
first responder
Data Encapsulation
causes the program to immediately exit from the loop it is executing - whether its for - while or do