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. All objects are accessed using...
pointers
Continue
you must import the header file of that class
method
2. Asking a class or object to execute a method
message
@synthesize
its dataSource
C Functionn
3. When making a tableView always...
calling code that does the instantiation for you
reuse your cells
do so in viewDidLoad
declaration and initialization of a variable
4. When do you take ownership?...
only the class and subclasses can access
to give it someone else - or another object
safety - subclassability and makes code look more consistent with C structs
Anytime you call a method with new - alloc or copy. You own and must release that object.
5. 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.
@synthesize
Instantiation from scratch
pointers
Data Encapsulation
6. Class methods do not operate on an _ or have any access to _ variables....
Used to find the time right now or to store past or future time/dates
instance
references to objects
nil
7. 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
CGRect bounds
C Functionn
causes the program to immediately exit from the loop it is executing - whether its for - while or do
8. @property declares - and _ implements the setter and getter...
creating an initializer
callbacks
@synthesize
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
9. 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.
accessors - individually we call them 'getters' and 'setters'
you must import the header file of that class
class
first responder
10. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
type - name and value
you always return the newly initialized object(return self)
implementation
11. Reducing details to focus on the core concepts
self
Abstraction
Functions
is called every time the event occurs
12. Prefixing a character string with an @ symbol [specific - NSString class]...
an object's property
@interface ClassName:SuperClassName
instance of UIView or one of its subclasses
creates an instance of NSString that holds the character string
13. Origin of a view's coordinate system is _ left
designated initializer
subview(s)
methods
upper
14. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
Encapsulation of functionality
methods for generating an instance
initializers
15. A UITableViewController can fill all three roles of...
CF - Ref
pointer to an object
data source - view controller and delegate
new instances of the class or retrieve some global property of the class.
16. Views have three properties related to their location and size: @property _ _;
CF - Ref
instance of UIView or one of its subclasses
CGRect bounds - GCPoint center - CGRect frame
create a XIB file
17. Primitives and C Structures...
NSLog routine
data source - view controller and delegate
Generic object wrapper for other non-object data types
cannot be added to an array
18. Classes describe two things...
attributes - behavior
has one root view controller
only the class and subclasses can access
ordered collection of objects - immutable
19. 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
20. A view is a subclass of _
UIView
upper
header files declare
view
21. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
its dataSource
rectangular
lowercase - uppercase
designated initializer
22. UIImageView is used to...
has one root view controller
draw images
is an instance of that class
array[class - NSMutableArray]
23. Core foundation classes are prefixed with _ and suffixed with _
data source - view controller and delegate
array[class - NSMutableArray]
CF - Ref
for inheritance - adopting the superclasses implementation
24. Also - because arrays only hold a pointer to an object...
%d
a single-array can contain objects of different types
class
the instance variables
25. A _ handles touch events.
view
is called every time the event occurs
class
they need to be defined in the implementation file
26. 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 _.
pointers
pointer - class
header files declare
for inheritance - adopting the superclasses implementation
27. UIView - designated initializer...
they need to be defined in the implementation file
array[class - NSMutableArray]
arguments[message]
(id)initWithFrame:(CGRect)aRect;
28. Use of class methods - there are three...
alloc - singleton - informational utility method?
to get and set variables
view controller
viewWillDissapear: and viewWillAppear:
29. Values to be supplied as the parameters to the method
creating an initializer
delegates and dataSources
the array relinquishes ownership of that object and no longer has a pointer to it
arguments[message]
30. Only exists within the statement block there defined - outside of the block is fine
upper
viewWillDissapear: and viewWillAppear:
'getters' and 'setters'
variable scope - if defined within a block
31. A message is always contained in square brackets - and has three parts
pointers
instance of UIView or one of its subclasses
subview(s)
receiver - selector - arguments
32. 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 _.
viewWillDissapear: and viewWillAppear:
unordered collection of objects - objects must be unique
nil
do so in viewDidLoad
33. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
you always return the newly initialized object(return self)
will be ignored
its dataSource
34. NSSet...
You take ownership for an object you want to keep a pointer to
UIView
unordered collection of objects - objects must be unique
upper
35. NSNumber - class...
nil
data
Object wrapper around primitive types like int - float - double - BOOl
instance
36. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
Anytime you call a method with new - alloc or copy. You own and must release that object.
is an instance of that class
super - self
collection of collections - NSArray of an NSArray
37. Center and frame are used to _ your view
class
to give it someone else - or another object
position
class's
38. If you have extra work you want to do on the view...
do so in viewDidLoad
reuse your cells
unordered collection of objects - objects must be unique
C Functionn
39. Execution of the break statement...
UIViewController
causes the program to immediately exit from the loop it is executing - whether its for - while or do
is an instance of that class
instance variables
40. Class methods typically either create
viewWillDissapear: and viewWillAppear:
new instances of the class or retrieve some global property of the class.
class's
to give it someone else - or another object
41. @property - is using methods...
@interface ClassName:SuperClassName
new instances of the class or retrieve some global property of the class.
to get and set variables
receiver[message]
42. Also if you send the NSObject the _ message - you own that object.
super - self
parentViewController
selector[message]
retain
43. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
initializers
@interface ClassName:SuperClassName
receiving and handling events that are associated with it
44. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
storage
C Functionn
references to objects
Data Encapsulation
45. super - is used...
initializers
calling code that does the instantiation for you
for inheritance - adopting the superclasses implementation
lowercase - uppercase
46. Reference Counting...
You take ownership for an object you want to keep a pointer to
the array relinquishes ownership of that object and no longer has a pointer to it
Object wrapper around primitive types like int - float - double - BOOl
position
47. NSValue - class...
retain
Generic object wrapper for other non-object data types
Functions
values
48. The only reason to temporarily own an object - is...
subview(s)
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
(id)initWithFrame:(CGRect)aRect;
to give it someone else - or another object
49. A method in a _ is required unless its preceded by an @optional.
protocol
parentViewController
class
arguments[message]
50. A callback is a function that is supplied in advance of an event - and...
class
is called every time the event occurs
variable scope - if defined within a block
has one root view controller