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. 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.
Data Encapsulation
accessors - individually we call them 'getters' and 'setters'
for inheritance - adopting the superclasses implementation
you must import the header file of that class
2. Prefixing a character string with an @ symbol [specific - NSString class]...
size and position
CGRect bounds
create a XIB file
creates an instance of NSString that holds the character string
3. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
has one root view controller
declaration and initialization of a variable
reuse your cells
4. After accessors have been defined in the header file...
view controller
they need to be defined in the implementation file
Hash table - Look up objects using a key to get a value.
instance variables
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.
create a XIB file
NSCoder
implementation
first responder
6. Class methods do not operate on an _ or have any access to _ variables....
instance
methods for generating an instance
Maintenance of state
values
7. Property List...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
instance of UIView or one of its subclasses
collection of collections - NSArray of an NSArray
view controller's initialization method
8. Typically the designated initializer has parameters for the most important and frequently used _ of an object
a mechanism to enable specific callbacks
instance variables
Model Objects[Factory Worker]
view controller's initialization method
9. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
class
position
@interface ClassName:SuperClassName
references to objects
10. A command directed to an object is called an...
message
retain
%d
define it in the implemenation file
11. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
new instances of the class or retrieve some global property of the class.
arguments[message]
data source - view controller and delegate
12. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
Continue
header files declare
rectangular
13. What happens when the last owner calls release?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
14. If you have extra work you want to do on the view...
setPossessionName
define it in the implemenation file
do so in viewDidLoad
Abstraction
15. A UITableViewController can fill all three roles of...
position
the array becomes an owner of that object and has a pointer to it.
cannot be added to an array
data source - view controller and delegate
16. A function in the objective c library that simply displays or logs it's argument
unordered collection of objects - objects must be unique
ordered collection of objects - immutable
NSLog routine
alloc - singleton - informational utility method?
17. In Objective C arrays can hold only...
implementation
references to objects
Functions
receiver[message]
18. 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
attributes - behavior
Core Graphics Framework
references to objects
19. 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
unordered collection of objects - objects must be unique
methods for generating an instance
a single-array can contain objects of different types
20. class methods...
accessors - individually we call them 'getters' and 'setters'
define it in the implemenation file
group of global functions already assigned to this class
message
21. All objects are accessed using...
pointer - class
Continue
pointers
initializer
22. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
delegates and dataSources
methods
NSCoder
23. How do I implement my drawRect?
class
Core Graphics Framework
view controller's initialization method
new instances of the class or retrieve some global property of the class.
24. 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....
define it in the implemenation file
only the class and subclasses can access
ordered collection of objects - immutable
superclass's
25. Also if you send the NSObject the _ message - you own that object.
retain
Model Objects[Factory Worker]
methods for generating an instance
instance
26. A pointer to the object being asked to execute a method
for inheritance - adopting the superclasses implementation
calling code that does the instantiation for you
receiver[message]
alloc - singleton - informational utility method?
27. Files Owner...
%d
initializer
pointer - class
Is a placeholder object
28. Core foundation classes are prefixed with _ and suffixed with _
setPossessionName
retain
CF - Ref
message
29. When an NSMutableArray is deallocated - it sends...
data source - view controller and delegate
the message release to all its entries
type - name and value
initializer
30. initWithFrame: the designated initializer for UIView gives the view
size and position
class methods - initializers
attributes - behavior
(id)initWithFrame:(CGRect)aRect;
31. In any application with UINavigationController - the navigation controller...
do so in viewDidLoad
unordered collection of objects - objects must be unique
has one root view controller
object
32. At the top of any implementation file...
in the dealloc - or when a Controller's view is 'unloaded'
references to objects
arguments[message]
you must import the header file of that class
33. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
Abstraction
copy - retain
is an instance of that class
header files declare
34. Defining variables - three parts...
an object's property
in the dealloc - or when a Controller's view is 'unloaded'
type - name and value
they need to be defined in the implementation file
35. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
view
You take ownership for an object you want to keep a pointer to
message
36. Classes describe two things...
an object's property
attributes - behavior
creates an instance of NSString that holds the character string
define it in the implemenation file
37. A callback is a function that is supplied in advance of an event - and...
receiving and handling events that are associated with it
Ready-Made Instance
you must import the header file of that class
is called every time the event occurs
38. Why properties?
object
viewWillDissapear: and viewWillAppear:
safety - subclassability and makes code look more consistent with C structs
position
39. 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
40. Primitives and C Structures...
cannot be added to an array
Maintenance of state
object
NSBundle
41. UIView - designated initializer...
Core Graphics Framework
receiver - selector - arguments
(id)initWithFrame:(CGRect)aRect;
message
42. Categories are an Objective C way to add _ to an existing class without subclassing
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
methods
NSBundle
only the class and subclasses can access
43. When an object is added to a NSMutableArray - that object is sent the message to retain;...
variable scope - if defined within a block
lowercase - uppercase
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
the array becomes an owner of that object and has a pointer to it.
44. [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
receiver
alloc - singleton - informational utility method?
methods for generating an instance
45. 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
46. NSValue - class...
Generic object wrapper for other non-object data types
the array becomes an owner of that object and has a pointer to it.
Controller Objects[Managers]
values
47. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
CGRect bounds - GCPoint center - CGRect frame
view controller's initialization method
Instantiation from scratch
its dataSource
48. 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
49. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
creates an instance of NSString that holds the character string
Controller Objects[Managers]
Core Graphics Framework
data
50. In a class method you cannot access...
do so in viewDidLoad
the instance variables
a mechanism to enable specific callbacks
pointer - class