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. 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
safety - subclassability and makes code look more consistent with C structs
pointers
Controller Objects[Managers]
2. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
Continue
super - self
rectangular
C Functionn
3. class methods...
variable scope - if defined within a block
receiver[message]
to give it someone else - or another object
group of global functions already assigned to this class
4. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.
pointer - class
ready-made instances - instantiation from scratch - and nib based instantiation
nil
data source - delegate and view controller
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.
first responder
collection of collections - NSArray of an NSArray
values
methods
6. NSValue - class...
(id)initWithFrame:(CGRect)aRect;
group of global functions already assigned to this class
instance
Generic object wrapper for other non-object data types
7. Only exists within the statement block there defined - outside of the block is fine
receiver - selector - arguments
cannot be added to an array
variable scope - if defined within a block
do so in viewDidLoad
8. UIView - designated initializer...
data source - view controller and delegate
(id)initWithFrame:(CGRect)aRect;
values
do so in viewDidLoad
9. Designated initializer makes sure that every...
Object wrapper around primitive types like int - float - double - BOOl
viewWillDissapear: and viewWillAppear:
designated initializer
instance variable of an object is valid
10. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
you always return the newly initialized object(return self)
CGRect bounds
view controller
11. Execution of the break statement...
attributes - behavior
do so in viewDidLoad
object
causes the program to immediately exit from the loop it is executing - whether its for - while or do
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 _.
Anytime you call a method with new - alloc or copy. You own and must release that object.
the message release to all its entries
subview(s)
unordered collection of objects - objects must be unique
13. Proceed through the loop - jump back to the top and check again
CGFloat
Core Graphics Framework
Generic object wrapper for other non-object data types
Continue
14. Ready-made instances...
calling code that does the instantiation for you
superclass's
will be ignored
safety - subclassability and makes code look more consistent with C structs
15. 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
16. At the top of any implementation file...
Controller Objects[Managers]
you must import the header file of that class
@interface ClassName:SuperClassName
to get and set variables
17. Primitives and C Structures...
to get and set variables
protocol
the array relinquishes ownership of that object and no longer has a pointer to it
cannot be added to an array
18. A collection object - an ordered list of objects that can be accesed by an index
data source - delegate and view controller
Maintenance of state
array[class - NSMutableArray]
Ready-Made Instance
19. 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
20. If the view has no subviews - create it programmatically; if it has subviews
a mechanism to enable specific callbacks
subview(s)
message
create a XIB file
21. A UITableViewController can fill all three roles of...
receiving and handling events that are associated with it
protocol
data source - view controller and delegate
Abstraction
22. A UITableView usually needs three different pieces...
ready-made instances - instantiation from scratch - and nib based instantiation
Is a placeholder object
declaration and initialization of a variable
data source - delegate and view controller
23. Also - because arrays only hold a pointer to an object...
callbacks
its dataSource
a single-array can contain objects of different types
Used to find the time right now or to store past or future time/dates
24. Object Oriented based analogue to a function is called a...
method
Controller Objects[Managers]
the message release to all its entries
references to objects
25. Views have three properties related to their location and size: @property _ _;
group of global functions already assigned to this class
wait until the loop finishes processing the event - at the end release it
Object wrapper around primitive types like int - float - double - BOOl
CGRect bounds - GCPoint center - CGRect frame
26. 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
accessors - individually we call them 'getters' and 'setters'
receiver - selector - arguments
to get and set variables
27. In general - class methods tend to be factory methods - that is...
methods for generating an instance
parentViewController
methods
values
28. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
You take ownership for an object you want to keep a pointer to
receiving and handling events that are associated with it
you must import the header file of that class
lowercase - uppercase
29. UIViewController has several methods that get called at certain times...
upper
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
wait until the loop finishes processing the event - at the end release it
Used to find the time right now or to store past or future time/dates
30. NSNumber - class...
CGRect bounds - GCPoint center - CGRect frame
Object wrapper around primitive types like int - float - double - BOOl
Anytime you call a method with new - alloc or copy. You own and must release that object.
safety - subclassability and makes code look more consistent with C structs
31. 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.
Anytime you call a method with new - alloc or copy. You own and must release that object.
unordered collection of objects - objects must be unique
Data Encapsulation
view
32. if you implemented both the setter and getter - the @synthesize method...
safety - subclassability and makes code look more consistent with C structs
data
will be ignored
data source - delegate and view controller
33. Asking a class or object to execute a method
array[class - NSMutableArray]
Is a placeholder object
message
do so in viewDidLoad
34. NSDictionary...
C Functionn
initializer
Hash table - Look up objects using a key to get a value.
arguments[message]
35. If you have extra work you want to do on the view...
do so in viewDidLoad
cannot be added to an array
arguments[message]
view controller
36. To load a Xib file manually - you use _
Object wrapper around primitive types like int - float - double - BOOl
an object's property
causes the program to immediately exit from the loop it is executing - whether its for - while or do
NSBundle
37. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
viewWillDissapear: and viewWillAppear:
You take ownership for an object you want to keep a pointer to
@interface ClassName:SuperClassName
NSCoder
38. @property - is using methods...
receiver
CGRect bounds
to get and set variables
superclass's
39. Each _ has a 'designated' initializer method....
lowercase - uppercase
retain
pointer - class
class
40. UITableViewController is a subclass of...
pointer - class
view
UIViewController
Instantiation from scratch
41. All objects are accessed using...
'getters' and 'setters'
the instance variables
viewWillDissapear: and viewWillAppear:
pointers
42. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
a mechanism to enable specific callbacks
unordered collection of objects - objects must be unique
you must import the header file of that class
class methods - initializers
43. A callback is a function that is supplied in advance of an event - and...
super - self
upper
nil
is called every time the event occurs
44. Classes describe two things...
ready-made instances - instantiation from scratch - and nib based instantiation
attributes - behavior
Encapsulation of functionality
the array relinquishes ownership of that object and no longer has a pointer to it
45. A view is an...
receiver - selector - arguments
to give it someone else - or another object
@interface ClassName:SuperClassName
instance of UIView or one of its subclasses
46. A responder is responsible for...
receiving and handling events that are associated with it
Used to find the time right now or to store past or future time/dates
group of global functions already assigned to this class
NSLog routine
47. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
class's
Continue
Instantiation from scratch
subview(s)
48. Defining variables - three parts...
subview(s)
selector[message]
type - name and value
Functions
49. A message is always contained in square brackets - and has three parts
cannot be added to an array
setPossessionName
viewWillDissapear: and viewWillAppear:
receiver - selector - arguments
50. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
Generic object wrapper for other non-object data types
@synthesize
Used to find the time right now or to store past or future time/dates