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. NSArray - important methods...
creating an initializer
subview(s)
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
calling code that does the instantiation for you
2. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
CGFloat
new instances of the class or retrieve some global property of the class.
ready-made instances - instantiation from scratch - and nib based instantiation
3. initWithFrame: the designated initializer for UIView gives the view
size and position
Is a placeholder object
the array becomes an owner of that object and has a pointer to it.
is an instance of that class
4. An instance is a device for maintaining state. It's a box for _ of data.
view
callbacks
storage
Model Objects[Factory Worker]
5. 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
6. To load a Xib file manually - you use _
subview(s)
you always return the newly initialized object(return self)
header files declare
NSBundle
7. Center and frame are used to _ your view
implementation
collection of collections - NSArray of an NSArray
position
to get and set variables
8. 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
view controller
alloc - singleton - informational utility method?
define it in the implemenation file
9. Reducing details to focus on the core concepts
view controller
Abstraction
draw images
setPossessionName
10. NSDate - class...
an object's property
Used to find the time right now or to store past or future time/dates
message
first responder
11. 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
12. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
type - name and value
its dataSource
do so in viewDidLoad
receiver
13. In Objective C arrays can hold only...
only the class and subclasses can access
NSBundle
setPossessionName
references to objects
14. A callback is a function that is supplied in advance of an event - and...
Functions
an object's property
you must import the header file of that class
is called every time the event occurs
15. A responder is responsible for...
CGRect bounds
(id)initWithFrame:(CGRect)aRect;
receiving and handling events that are associated with it
storage
16. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
has one root view controller
arguments[message]
CGRect
methods for generating an instance
17. id is a...
pointer to an object
Abstraction
Anytime you call a method with new - alloc or copy. You own and must release that object.
a mechanism to enable specific callbacks
18. A function in the objective c library that simply displays or logs it's argument
storage
UIView
creates an instance of NSString that holds the character string
NSLog routine
19. 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
is called every time the event occurs
lowercase - uppercase
CGRect bounds - GCPoint center - CGRect frame
20. UITableViewController is a subclass of...
receiver - selector - arguments
pointer - class
UIViewController
calling code that does the instantiation for you
21. You use _ to implement the view
copy - retain
CGRect bounds
self
receiver - selector - arguments
22. NSValue - class...
Generic object wrapper for other non-object data types
only the innermost loop in which the break is executed is terminated
Instantiation from scratch
cannot be added to an array
23. 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 _.
the message release to all its entries
subview(s)
Is a placeholder object
define it in the implemenation file
24. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
NSBundle
class methods - initializers
ready-made instances - instantiation from scratch - and nib based instantiation
25. The class is responsible for what instance variables the instance has - but not the _ of those variables.
%d
values
to get and set variables
reuse your cells
26. Just a floating point number - but we always use it for graphics.
superclass's
Encapsulation of functionality
CGRect bounds - GCPoint center - CGRect frame
CGFloat
27. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
do so in viewDidLoad
they need to be defined in the implementation file
NSCoder
instance variables
28. A UITableView usually needs three different pieces...
class's
for inheritance - adopting the superclasses implementation
will be ignored
data source - delegate and view controller
29. If you have extra work you want to do on the view...
is called every time the event occurs
do so in viewDidLoad
implementation
CGRect bounds
30. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
references to objects
initializers
unordered collection of objects - objects must be unique
instance of UIView or one of its subclasses
31. @property - is using methods...
a mechanism to enable specific callbacks
to get and set variables
instance
Data Encapsulation
32. 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
33. If a break statement is executed from within a set of nested loops...
reuse your cells
UIView
super - self
only the innermost loop in which the break is executed is terminated
34. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
superclass's
@interface ClassName:SuperClassName
causes the program to immediately exit from the loop it is executing - whether its for - while or do
35. Why properties?
size and position
Generic object wrapper for other non-object data types
safety - subclassability and makes code look more consistent with C structs
instance variable of an object is valid
36. The root view controller typically creates the next view controller - and the next _ creates the one after that
%d
view controller
Model Objects[Factory Worker]
super - self
37. class methods...
CGFloat
group of global functions already assigned to this class
a mechanism to enable specific callbacks
parentViewController
38. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
setPossessionName
UIView
will be ignored
lowercase - uppercase
39. A message is always contained in square brackets - and has three parts
is an instance of that class
array[class - NSMutableArray]
receiver - selector - arguments
Functions
40. If the view has no subviews - create it programmatically; if it has subviews
Maintenance of state
instance of UIView or one of its subclasses
methods
create a XIB file
41. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
new instances of the class or retrieve some global property of the class.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Instantiation from scratch
42. 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
43. 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
44. super - is used...
subview(s)
to get and set variables
methods
for inheritance - adopting the superclasses implementation
45. A view is a subclass of _
for inheritance - adopting the superclasses implementation
reuse your cells
(id)initWithFrame:(CGRect)aRect;
UIView
46. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
designated initializer
delegates and dataSources
object
variable scope - if defined within a block
47. When do you take ownership?...
view controller's initialization method
Anytime you call a method with new - alloc or copy. You own and must release that object.
viewWillDissapear: and viewWillAppear:
first responder
48. A method in a _ is required unless its preceded by an @optional.
nil
a single-array can contain objects of different types
methods
protocol
49. In a class method you cannot access...
alloc - singleton - informational utility method?
the instance variables
safety - subclassability and makes code look more consistent with C structs
@synthesize
50. Categories are an Objective C way to add _ to an existing class without subclassing
instance of UIView or one of its subclasses
CGRect
methods
pointers