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. Typically the designated initializer has parameters for the most important and frequently used _ of an object
Core Graphics Framework
instance variables
NSLog routine
do so in viewDidLoad
2. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
ordered collection of objects - immutable
collection of collections - NSArray of an NSArray
draw images
CGRect
3. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
will be ignored
storage
the message release to all its entries
4. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
attributes - behavior
accessors - individually we call them 'getters' and 'setters'
superclass's
self
5. Class methods do not operate on an _ or have any access to _ variables....
to give it someone else - or another object
instance
receiver
new instances of the class or retrieve some global property of the class.
6. Whenever a UINavigationController is about to swap views - it sends out two messages
implementation
viewWillDissapear: and viewWillAppear:
ordered collection of objects - immutable
superclass's
7. 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....
creates an instance of NSString that holds the character string
initializers
Data Encapsulation
define it in the implemenation file
8. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
storage
they need to be defined in the implementation file
C Functionn
data source - delegate and view controller
9. Delegation is an object oriented approach to
instance variable of an object is valid
callbacks
the array relinquishes ownership of that object and no longer has a pointer to it
calling code that does the instantiation for you
10. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
only the innermost loop in which the break is executed is terminated
lowercase - uppercase
they need to be defined in the implementation file
11. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
view controller's initialization method
callbacks
data source - delegate and view controller
12. A view is a subclass of _
method
view controller
@synthesize
UIView
13. What does autorelease mean?
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
wait until the loop finishes processing the event - at the end release it
data
methods for generating an instance
14. Reference Counting...
lowercase - uppercase
You take ownership for an object you want to keep a pointer to
CGRect bounds - GCPoint center - CGRect frame
Is a placeholder object
15. Class methods typically either create
accessors - individually we call them 'getters' and 'setters'
lowercase - uppercase
calling code that does the instantiation for you
new instances of the class or retrieve some global property of the class.
16. To load a Xib file manually - you use _
NSBundle
attributes - behavior
ordered collection of objects - immutable
receiver[message]
17. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
Encapsulation of functionality
Is a placeholder object
Used to find the time right now or to store past or future time/dates
18. For view controllers that are closely related - like a table view controller and its detail view controller - you can simply give them _ that point to each other.
instance variables
methods for generating an instance
view controller
You take ownership for an object you want to keep a pointer to
19. In any application with UINavigationController - the navigation controller...
attributes - behavior
has one root view controller
creates an instance of NSString that holds the character string
header files declare
20. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
instance of UIView or one of its subclasses
only the class and subclasses can access
Encapsulation of functionality
21. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
data
You take ownership for an object you want to keep a pointer to
unordered collection of objects - objects must be unique
has one root view controller
22. Number one use of protocols in iOS...
delegates and dataSources
alloc - singleton - informational utility method?
object
Generic object wrapper for other non-object data types
23. Any other initializer a class has calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
24. UIImageView is used to...
upper
methods
draw images
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
25. NSString *s = @'Hello - World'; is an example of...
self
Functions
NSCoder
declaration and initialization of a variable
26. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
Core Graphics Framework
safety - subclassability and makes code look more consistent with C structs
message
27. NSSet...
unordered collection of objects - objects must be unique
Maintenance of state
self
first responder
28. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
header files declare
receiver
designated initializer
instance of UIView or one of its subclasses
29. Never access a view controller's view in that...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
30. Categories are an Objective C way to add _ to an existing class without subclassing
initializers
Ready-Made Instance
methods
instance of UIView or one of its subclasses
31. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
class
selector[message]
Instantiation from scratch
CGRect bounds
32. In the last line of an init method...
you always return the newly initialized object(return self)
class's
methods
Controller Objects[Managers]
33. 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 _.
nil
Encapsulation of functionality
you always return the newly initialized object(return self)
You take ownership for an object you want to keep a pointer to
34. A UITableView usually needs three different pieces...
array[class - NSMutableArray]
data source - delegate and view controller
cannot be added to an array
CGFloat
35. Origin of a view's coordinate system is _ left
You take ownership for an object you want to keep a pointer to
lowercase - uppercase
upper
instance variables
36. super - is used...
for inheritance - adopting the superclasses implementation
a single-array can contain objects of different types
view controller's initialization method
initializers
37. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
Maintenance of state
receiver
view controller's initialization method
setPossessionName
38. The root view controller typically creates the next view controller - and the next _ creates the one after that
safety - subclassability and makes code look more consistent with C structs
unordered collection of objects - objects must be unique
group of global functions already assigned to this class
view controller
39. Prefixing a character string with an @ symbol [specific - NSString class]...
Model Objects[Factory Worker]
creates an instance of NSString that holds the character string
attributes - behavior
view controller's initialization method
40. @property declares - and _ implements the setter and getter...
Continue
the instance variables
Generic object wrapper for other non-object data types
@synthesize
41. initWithFrame: the designated initializer for UIView gives the view
Anytime you call a method with new - alloc or copy. You own and must release that object.
Abstraction
size and position
receiver
42. Why properties?
safety - subclassability and makes code look more consistent with C structs
class's
variable scope - if defined within a block
methods
43. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
Ready-Made Instance
super - self
pointer to an object
44. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
@interface ClassName:SuperClassName
causes the program to immediately exit from the loop it is executing - whether its for - while or do
pointer to an object
45. When an object is removed from an NSMutableArray - that object is sent the message release;...
array[class - NSMutableArray]
the instance variables
the array relinquishes ownership of that object and no longer has a pointer to it
instance
46. Only exists within the statement block there defined - outside of the block is fine
a mechanism to enable specific callbacks
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
variable scope - if defined within a block
Continue
47. Object Oriented based analogue to a function is called a...
in the dealloc - or when a Controller's view is 'unloaded'
method
the instance variables
instance variable of an object is valid
48. 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.
first responder
'getters' and 'setters'
receiver[message]
Object wrapper around primitive types like int - float - double - BOOl
49. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
message
@interface ClassName:SuperClassName
is an instance of that class
methods for generating an instance
50. When an object is added to a NSMutableArray - that object is sent the message to retain;...
Instantiation from scratch
the array becomes an owner of that object and has a pointer to it.
upper
delegates and dataSources