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. Origin of a view's coordinate system is _ left
%d
will be ignored
self
upper
2. Center and frame are used to _ your view
calling code that does the instantiation for you
an object's property
position
copy - retain
3. 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....
Hash table - Look up objects using a key to get a value.
methods
define it in the implemenation file
values
4. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
reuse your cells
designated initializer
instance variables
array[class - NSMutableArray]
5. 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
6. Hold data and know nothing about the user interface
wait until the loop finishes processing the event - at the end release it
method
Model Objects[Factory Worker]
setPossessionName
7. Defining variables - three parts...
type - name and value
Maintenance of state
pointers
data source - view controller and delegate
8. id is a...
rectangular
pointer to an object
methods for generating an instance
the array becomes an owner of that object and has a pointer to it.
9. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
wait until the loop finishes processing the event - at the end release it
subview(s)
instance variables
10. A responder is responsible for...
Generic object wrapper for other non-object data types
CGFloat
C Functionn
receiving and handling events that are associated with it
11. UIImageView is used to...
designated initializer
draw images
first responder
CGRect bounds
12. Also if you send the NSObject the _ message - you own that object.
methods for generating an instance
an object's property
has one root view controller
retain
13. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
Abstraction
Functions
lowercase - uppercase
CGRect
14. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
has one root view controller
C Functionn
Used to find the time right now or to store past or future time/dates
Instantiation from scratch
15. When do we need to release our outlets?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
16. The integer prefix is...
%d
method
a single-array can contain objects of different types
do so in viewDidLoad
17. When an NSMutableArray is deallocated - it sends...
@interface ClassName:SuperClassName
an object's property
the message release to all its entries
UIView
18. Files Owner...
@synthesize
delegates and dataSources
Is a placeholder object
CGRect
19. What does autorelease mean?
arguments[message]
first responder
wait until the loop finishes processing the event - at the end release it
superclass's
20. A block of statements identified by a name that can accept one or more arguments passed to it by value and can optionally return a value
Functions
Ready-Made Instance
will be ignored
to give it someone else - or another object
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.
instance variables
Ready-Made Instance
data
is an instance of that class
22. 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
23. @property - is using methods...
superclass's
to get and set variables
copy - retain
the message release to all its entries
24. Name of the method to be executed
ordered collection of objects - immutable
the message release to all its entries
selector[message]
Controller Objects[Managers]
25. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
has one root view controller
is an instance of that class
position
self
26. UITableViewController is a subclass of...
UIViewController
NSBundle
data source - view controller and delegate
data
27. 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.
view controller's initialization method
creating an initializer
Hash table - Look up objects using a key to get a value.
data source - view controller and delegate
28. 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
29. Primitives and C Structures...
cannot be added to an array
Hash table - Look up objects using a key to get a value.
accessors - individually we call them 'getters' and 'setters'
super - self
30. A method in a _ is required unless its preceded by an @optional.
arguments[message]
unordered collection of objects - objects must be unique
protocol
(id)initWithFrame:(CGRect)aRect;
31. NSSet...
implementation
unordered collection of objects - objects must be unique
Controller Objects[Managers]
reuse your cells
32. Core foundation classes are prefixed with _ and suffixed with _
data
CF - Ref
selector[message]
attributes - behavior
33. Number one use of protocols in iOS...
calling code that does the instantiation for you
You take ownership for an object you want to keep a pointer to
copy - retain
delegates and dataSources
34. NSString objects are usually sent _ rather than _...
copy - retain
data source - delegate and view controller
NSCoder
Data Encapsulation
35. Class methods do not operate on an _ or have any access to _ variables....
instance
Maintenance of state
super - self
the array becomes an owner of that object and has a pointer to it.
36. Ready-made instances...
'getters' and 'setters'
@synthesize
calling code that does the instantiation for you
Encapsulation of functionality
37. 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 _.
ordered collection of objects - immutable
UIViewController
subview(s)
new instances of the class or retrieve some global property of the class.
38. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
only the class and subclasses can access
class
parentViewController
39. A UITableViewController can fill all three roles of...
class's
UIView
pointer - class
data source - view controller and delegate
40. When do you take ownership?...
calling code that does the instantiation for you
Encapsulation of functionality
Anytime you call a method with new - alloc or copy. You own and must release that object.
parentViewController
41. 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
a mechanism to enable specific callbacks
@interface ClassName:SuperClassName
draw images
@synthesize
42. class methods...
is an instance of that class
message
they need to be defined in the implementation file
group of global functions already assigned to this class
43. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
methods for generating an instance
is called every time the event occurs
C Functionn
instance variables
44. @property declares - and _ implements the setter and getter...
is an instance of that class
storage
self
@synthesize
45. Object Oriented based analogue to a function is called a...
they need to be defined in the implementation file
%d
method
in the dealloc - or when a Controller's view is 'unloaded'
46. NSString *s = @'Hello - World'; is an example of...
instance of UIView or one of its subclasses
create a XIB file
cannot be added to an array
declaration and initialization of a variable
47. Proceed through the loop - jump back to the top and check again
implementation
group of global functions already assigned to this class
pointer - class
Continue
48. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
attributes - behavior
receiver
the array relinquishes ownership of that object and no longer has a pointer to it
49. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
size and position
lowercase - uppercase
Core Graphics Framework
50. Three ways instances are created...
instance
size and position
you must import the header file of that class
ready-made instances - instantiation from scratch - and nib based instantiation