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. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
designated initializer
Controller Objects[Managers]
lowercase - uppercase
selector[message]
2. 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
3. The root view controller typically creates the next view controller - and the next _ creates the one after that
will be ignored
C Functionn
view controller
view controller's initialization method
4. Proceed through the loop - jump back to the top and check again
you always return the newly initialized object(return self)
class
instance of UIView or one of its subclasses
Continue
5. Only exists within the statement block there defined - outside of the block is fine
Model Objects[Factory Worker]
Core Graphics Framework
variable scope - if defined within a block
cannot be added to an array
6. Just a floating point number - but we always use it for graphics.
CGFloat
values
is called every time the event occurs
type - name and value
7. A view represents a _ area
rectangular
cannot be added to an array
NSCoder
Ready-Made Instance
8. A callback is a function that is supplied in advance of an event - and...
reuse your cells
Encapsulation of functionality
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
is called every time the event occurs
9. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
array[class - NSMutableArray]
view controller
NSCoder
pointer to an object
10. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
setPossessionName
(id)initWithFrame:(CGRect)aRect;
Instantiation from scratch
%d
11. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
cannot be added to an array
self
Maintenance of state
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
12. 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 _.
safety - subclassability and makes code look more consistent with C structs
will be ignored
subview(s)
to get and set variables
13. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Encapsulation of functionality
header files declare
the instance variables
Ready-Made Instance
14. 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
15. When do you take ownership?...
Abstraction
declaration and initialization of a variable
Anytime you call a method with new - alloc or copy. You own and must release that object.
new instances of the class or retrieve some global property of the class.
16. NSString objects are usually sent _ rather than _...
copy - retain
Functions
Encapsulation of functionality
calling code that does the instantiation for you
17. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
reuse your cells
UIView
storage
18. @property declares - and _ implements the setter and getter...
CF - Ref
view
@synthesize
CGRect
19. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
methods
for inheritance - adopting the superclasses implementation
pointers
20. 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....
the array relinquishes ownership of that object and no longer has a pointer to it
group of global functions already assigned to this class
define it in the implemenation file
accessors - individually we call them 'getters' and 'setters'
21. An instance is a device for maintaining state. It's a box for _ of data.
an object's property
instance variables
storage
NSBundle
22. Ready-made instances...
calling code that does the instantiation for you
receiver
you always return the newly initialized object(return self)
methods
23. initWithFrame: the designated initializer for UIView gives the view
size and position
Controller Objects[Managers]
UIView
method
24. id is a...
calling code that does the instantiation for you
pointer to an object
pointer - class
Used to find the time right now or to store past or future time/dates
25. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
UIViewController
pointer to an object
instance of UIView or one of its subclasses
26. UIImageView is used to...
Data Encapsulation
Maintenance of state
reuse your cells
draw images
27. At the top of any implementation file...
create a XIB file
data source - view controller and delegate
they need to be defined in the implementation file
you must import the header file of that class
28. 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
you always return the newly initialized object(return self)
values
the array becomes an owner of that object and has a pointer to it.
29. 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
30. @property - is using methods...
class methods - initializers
to get and set variables
define it in the implemenation file
delegates and dataSources
31. What does autorelease mean?
receiving and handling events that are associated with it
you must import the header file of that class
Used to find the time right now or to store past or future time/dates
wait until the loop finishes processing the event - at the end release it
32. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
Object wrapper around primitive types like int - float - double - BOOl
Controller Objects[Managers]
causes the program to immediately exit from the loop it is executing - whether its for - while or do
33. The class is responsible for what instance variables the instance has - but not the _ of those variables.
for inheritance - adopting the superclasses implementation
they need to be defined in the implementation file
in the dealloc - or when a Controller's view is 'unloaded'
values
34. When making a tableView always...
reuse your cells
data
the message release to all its entries
they need to be defined in the implementation file
35. NSDictionary...
Hash table - Look up objects using a key to get a value.
variable scope - if defined within a block
UIView
Core Graphics Framework
36. 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
37. Reference Counting...
receiving and handling events that are associated with it
instance
cannot be added to an array
You take ownership for an object you want to keep a pointer to
38. A pointer to the object being asked to execute a method
receiver[message]
do so in viewDidLoad
instance of UIView or one of its subclasses
methods for generating an instance
39. Typically the designated initializer has parameters for the most important and frequently used _ of an object
a single-array can contain objects of different types
creating an initializer
pointers
instance variables
40. The only reason to temporarily own an object - is...
group of global functions already assigned to this class
methods for generating an instance
to give it someone else - or another object
selector[message]
41. NSArray - important methods...
class methods - initializers
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Hash table - Look up objects using a key to get a value.
implementation
42. Object Oriented based analogue to a function is called a...
array[class - NSMutableArray]
causes the program to immediately exit from the loop it is executing - whether its for - while or do
retain
method
43. Execution of the break statement...
only the innermost loop in which the break is executed is terminated
designated initializer
initializer
causes the program to immediately exit from the loop it is executing - whether its for - while or do
44. Designated initializer makes sure that every...
instance variable of an object is valid
references to objects
message
to get and set variables
45. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
%d
object
designated initializer
alloc - singleton - informational utility method?
46. Prefixing a character string with an @ symbol [specific - NSString class]...
retain
Model Objects[Factory Worker]
for inheritance - adopting the superclasses implementation
creates an instance of NSString that holds the character string
47. 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
is called every time the event occurs
Encapsulation of functionality
variable scope - if defined within a block
object
48. 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
reuse your cells
Anytime you call a method with new - alloc or copy. You own and must release that object.
setPossessionName
Maintenance of state
49. 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
upper
Continue
CGRect bounds - GCPoint center - CGRect frame
50. All objects are accessed using...
super - self
pointers
(id)initWithFrame:(CGRect)aRect;
reuse your cells