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. 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
2. A command directed to an object is called an...
message
receiver[message]
view controller
alloc - singleton - informational utility method?
3. Also if you send the NSObject the _ message - you own that object.
retain
NSBundle
(id)initWithFrame:(CGRect)aRect;
arguments[message]
4. 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
5. Proceed through the loop - jump back to the top and check again
Continue
CGRect bounds
storage
the message release to all its entries
6. In a class method you cannot access...
draw images
the instance variables
only the class and subclasses can access
view controller's initialization method
7. 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 _.
an object's property
object
subview(s)
viewWillDissapear: and viewWillAppear:
8. Typically the designated initializer has parameters for the most important and frequently used _ of an object
creating an initializer
instance variables
receiver
method
9. initWithFrame: the designated initializer for UIView gives the view
Is a placeholder object
size and position
rectangular
the array becomes an owner of that object and has a pointer to it.
10. super - is used...
create a XIB file
NSLog routine
for inheritance - adopting the superclasses implementation
@synthesize
11. 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
methods for generating an instance
Abstraction
a single-array can contain objects of different types
12. When making a tableView always...
view
message
reuse your cells
subview(s)
13. NSString objects are usually sent _ rather than _...
copy - retain
data
header files declare
CGRect bounds
14. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
UIViewController
Abstraction
Model Objects[Factory Worker]
header files declare
15. class methods...
is called every time the event occurs
the array becomes an owner of that object and has a pointer to it.
to get and set variables
group of global functions already assigned to this class
16. Reference Counting...
(id)initWithFrame:(CGRect)aRect;
Instantiation from scratch
you must import the header file of that class
You take ownership for an object you want to keep a pointer to
17. The only reason to temporarily own an object - is...
protocol
to give it someone else - or another object
superclass's
safety - subclassability and makes code look more consistent with C structs
18. Primitives and C Structures...
they need to be defined in the implementation file
Data Encapsulation
cannot be added to an array
unordered collection of objects - objects must be unique
19. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
has one root view controller
the message release to all its entries
will be ignored
20. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
is an instance of that class
Controller Objects[Managers]
designated initializer
size and position
21. To load a Xib file manually - you use _
NSBundle
NSCoder
group of global functions already assigned to this class
data source - view controller and delegate
22. Origin of a view's coordinate system is _ left
upper
you must import the header file of that class
for inheritance - adopting the superclasses implementation
is an instance of that class
23. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
instance variables
instance variable of an object is valid
dealloc - is called on the object & the object's memory is returned to the heap
NSCoder
24. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
implementation
Controller Objects[Managers]
storage
25. Values to be supplied as the parameters to the method
declaration and initialization of a variable
receiver - selector - arguments
arguments[message]
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
26. A function in the objective c library that simply displays or logs it's argument
copy - retain
collection of collections - NSArray of an NSArray
designated initializer
NSLog routine
27. A view is a subclass of _
its dataSource
in the dealloc - or when a Controller's view is 'unloaded'
cannot be added to an array
UIView
28. 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
29. Property List...
collection of collections - NSArray of an NSArray
to get and set variables
implementation
methods
30. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
only the innermost loop in which the break is executed is terminated
a single-array can contain objects of different types
will be ignored
31. Categories are an Objective C way to add _ to an existing class without subclassing
message
UIViewController
methods
Controller Objects[Managers]
32. Name of the method to be executed
attributes - behavior
selector[message]
they need to be defined in the implementation file
CGFloat
33. UITableViewController is a subclass of...
upper
will be ignored
view controller's initialization method
UIViewController
34. 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.
ready-made instances - instantiation from scratch - and nib based instantiation
instance of UIView or one of its subclasses
superclass's
creating an initializer
35. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
pointer - class
CGRect bounds - GCPoint center - CGRect frame
safety - subclassability and makes code look more consistent with C structs
storage
36. NSArray - class...
%d
attributes - behavior
ordered collection of objects - immutable
they need to be defined in the implementation file
37. Only exists within the statement block there defined - outside of the block is fine
you must import the header file of that class
class methods - initializers
receiver[message]
variable scope - if defined within a block
38. Class methods typically either create
receiver[message]
new instances of the class or retrieve some global property of the class.
in the dealloc - or when a Controller's view is 'unloaded'
an object's property
39. Classes describe two things...
Core Graphics Framework
Ready-Made Instance
attributes - behavior
class's
40. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
will be ignored
C Functionn
'getters' and 'setters'
pointer to an object
41. Asking a class or object to execute a method
message
type - name and value
header files declare
CGRect bounds - GCPoint center - CGRect frame
42. Use of class methods - there are three...
CGRect bounds - GCPoint center - CGRect frame
position
do so in viewDidLoad
alloc - singleton - informational utility method?
43. A message is always contained in square brackets - and has three parts
size and position
ready-made instances - instantiation from scratch - and nib based instantiation
a single-array can contain objects of different types
receiver - selector - arguments
44. 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
45. Hold data and know nothing about the user interface
only the innermost loop in which the break is executed is terminated
pointers
Model Objects[Factory Worker]
position
46. UIView - designated initializer...
define it in the implemenation file
alloc - singleton - informational utility method?
message
(id)initWithFrame:(CGRect)aRect;
47. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
dealloc - is called on the object & the object's memory is returned to the heap
UIView
creates an instance of NSString that holds the character string
48. 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
pointer - class
Functions
they need to be defined in the implementation file
view controller's initialization method
49. Center and frame are used to _ your view
methods for generating an instance
(id)initWithFrame:(CGRect)aRect;
first responder
position
50. @property declares - and _ implements the setter and getter...
initializer
data
receiving and handling events that are associated with it
@synthesize