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. Why properties?
safety - subclassability and makes code look more consistent with C structs
object
designated initializer
implementation
2. Each class picks one _ as it's designated initializer....
initializer
view
You take ownership for an object you want to keep a pointer to
creates an instance of NSString that holds the character string
3. Proceed through the loop - jump back to the top and check again
Continue
protocol
declaration and initialization of a variable
super - self
4. When a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller
parentViewController
Abstraction
creates an instance of NSString that holds the character string
calling code that does the instantiation for you
5. 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.
safety - subclassability and makes code look more consistent with C structs
first responder
attributes - behavior
method
6. initWithFrame: the designated initializer for UIView gives the view
view controller
selector[message]
storage
size and position
7. NSSet...
to get and set variables
CGFloat
unordered collection of objects - objects must be unique
Data Encapsulation
8. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
references to objects
nil
view controller
9. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
designated initializer
Ready-Made Instance
class
10. 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 _.
reuse your cells
nil
copy - retain
ordered collection of objects - immutable
11. Origin of a view's coordinate system is _ left
safety - subclassability and makes code look more consistent with C structs
Model Objects[Factory Worker]
calling code that does the instantiation for you
upper
12. NSArray - important methods...
setPossessionName
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Ready-Made Instance
only the class and subclasses can access
13. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
creating an initializer
CGRect bounds
super - self
setPossessionName
14. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
you must import the header file of that class
a mechanism to enable specific callbacks
Hash table - Look up objects using a key to get a value.
array[class - NSMutableArray]
15. 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.
a mechanism to enable specific callbacks
Data Encapsulation
Maintenance of state
pointer - class
16. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
unordered collection of objects - objects must be unique
super - self
class methods - initializers
accessors - individually we call them 'getters' and 'setters'
17. NSString objects are usually sent _ rather than _...
lowercase - uppercase
copy - retain
do so in viewDidLoad
Core Graphics Framework
18. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
causes the program to immediately exit from the loop it is executing - whether its for - while or do
safety - subclassability and makes code look more consistent with C structs
instance variable of an object is valid
19. When making a tableView always...
reuse your cells
Ready-Made Instance
callbacks
UIView
20. In any application with UINavigationController - the navigation controller...
define it in the implemenation file
CGFloat
references to objects
has one root view controller
21. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.
Used to find the time right now or to store past or future time/dates
subview(s)
in the dealloc - or when a Controller's view is 'unloaded'
first responder
22. How do I implement my drawRect?
class methods - initializers
Core Graphics Framework
super - self
@interface ClassName:SuperClassName
23. In general - class methods tend to be factory methods - that is...
to give it someone else - or another object
parentViewController
methods for generating an instance
CGRect bounds - GCPoint center - CGRect frame
24. Each _ has a 'designated' initializer method....
retain
type - name and value
the instance variables
class
25. @property - is using methods...
to get and set variables
method
viewWillDissapear: and viewWillAppear:
collection of collections - NSArray of an NSArray
26. 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
27. UIViewController has several methods that get called at certain times...
group of global functions already assigned to this class
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
is an instance of that class
array[class - NSMutableArray]
28. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
receiver[message]
Generic object wrapper for other non-object data types
create a XIB file
29. Prefixing a character string with an @ symbol [specific - NSString class]...
object
creates an instance of NSString that holds the character string
values
has one root view controller
30. Views have three properties related to their location and size: @property _ _;
class
a single-array can contain objects of different types
is called every time the event occurs
CGRect bounds - GCPoint center - CGRect frame
31. A command directed to an object is called an...
storage
methods for generating an instance
calling code that does the instantiation for you
message
32. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
implementation
its dataSource
safety - subclassability and makes code look more consistent with C structs
Controller Objects[Managers]
33. A view is an...
delegates and dataSources
callbacks
Generic object wrapper for other non-object data types
instance of UIView or one of its subclasses
34. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
retain
message
type - name and value
35. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
(id)initWithFrame:(CGRect)aRect;
header files declare
lowercase - uppercase
causes the program to immediately exit from the loop it is executing - whether its for - while or do
36. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
37. UIView - designated initializer...
view controller's initialization method
receiver
(id)initWithFrame:(CGRect)aRect;
cannot be added to an array
38. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
Abstraction
is called every time the event occurs
view controller's initialization method
39. In object oriented languages - we call methods that get and set instance variables
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
40. Also if you send the NSObject the _ message - you own that object.
UIView
wait until the loop finishes processing the event - at the end release it
Data Encapsulation
retain
41. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
retain
Model Objects[Factory Worker]
collection of collections - NSArray of an NSArray
42. NSDate - class...
setPossessionName
Used to find the time right now or to store past or future time/dates
do so in viewDidLoad
receiver[message]
43. If you have extra work you want to do on the view...
Core Graphics Framework
array[class - NSMutableArray]
do so in viewDidLoad
accessors - individually we call them 'getters' and 'setters'
44. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
setPossessionName
ready-made instances - instantiation from scratch - and nib based instantiation
collection of collections - NSArray of an NSArray
45. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
46. A function in the objective c library that simply displays or logs it's argument
CGRect bounds - GCPoint center - CGRect frame
view controller
NSLog routine
only the innermost loop in which the break is executed is terminated
47. Reducing details to focus on the core concepts
attributes - behavior
initializers
Is a placeholder object
Abstraction
48. The integer prefix is...
wait until the loop finishes processing the event - at the end release it
methods for generating an instance
%d
causes the program to immediately exit from the loop it is executing - whether its for - while or do
49. An instance is a device for maintaining state. It's a box for _ of data.
pointers
CGRect
storage
view
50. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
has one root view controller
unordered collection of objects - objects must be unique
protocol