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. NSDate - class...
NSLog routine
setPossessionName
viewWillDissapear: and viewWillAppear:
Used to find the time right now or to store past or future time/dates
2. class methods...
group of global functions already assigned to this class
safety - subclassability and makes code look more consistent with C structs
Encapsulation of functionality
wait until the loop finishes processing the event - at the end release it
3. To load a Xib file manually - you use _
NSBundle
Data Encapsulation
an object's property
data source - delegate and view controller
4. @property declares - and _ implements the setter and getter...
Data Encapsulation
@synthesize
only the innermost loop in which the break is executed is terminated
'getters' and 'setters'
5. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
only the class and subclasses can access
wait until the loop finishes processing the event - at the end release it
header files declare
Anytime you call a method with new - alloc or copy. You own and must release that object.
6. A method in a _ is required unless its preceded by an @optional.
draw images
to get and set variables
NSCoder
protocol
7. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
Controller Objects[Managers]
object
instance of UIView or one of its subclasses
receiving and handling events that are associated with it
8. When an NSMutableArray is deallocated - it sends...
view
parentViewController
to get and set variables
the message release to all its entries
9. Just a floating point number - but we always use it for graphics.
you always return the newly initialized object(return self)
'getters' and 'setters'
CGFloat
Hash table - Look up objects using a key to get a value.
10. Categories are an Objective C way to add _ to an existing class without subclassing
Generic object wrapper for other non-object data types
superclass's
NSBundle
methods
11. Proceed through the loop - jump back to the top and check again
Continue
size and position
Data Encapsulation
class's
12. Ready-made instances...
calling code that does the instantiation for you
draw images
has one root view controller
alloc - singleton - informational utility method?
13. 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...
define it in the implemenation file
delegates and dataSources
data source - view controller and delegate
setPossessionName
14. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
a single-array can contain objects of different types
dealloc - is called on the object & the object's memory is returned to the heap
message
15. NSNumber - class...
instance variables
is called every time the event occurs
Object wrapper around primitive types like int - float - double - BOOl
Instantiation from scratch
16. Each class picks one _ as it's designated initializer....
initializer
to give it someone else - or another object
dealloc - is called on the object & the object's memory is returned to the heap
message
17. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
the instance variables
CGRect
Anytime you call a method with new - alloc or copy. You own and must release that object.
CGRect bounds
18. After accessors have been defined in the header file...
CGRect
initializer
they need to be defined in the implementation file
dealloc - is called on the object & the object's memory is returned to the heap
19. Delegation is an object oriented approach to
first responder
references to objects
receiving and handling events that are associated with it
callbacks
20. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
data
callbacks
pointer to an object
21. Files Owner...
lowercase - uppercase
Used to find the time right now or to store past or future time/dates
Continue
Is a placeholder object
22. Also - because arrays only hold a pointer to an object...
Model Objects[Factory Worker]
subview(s)
Continue
a single-array can contain objects of different types
23. Why properties?
causes the program to immediately exit from the loop it is executing - whether its for - while or do
safety - subclassability and makes code look more consistent with C structs
retain
create a XIB file
24. NSDictionary...
message
Hash table - Look up objects using a key to get a value.
%d
values
25. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
parentViewController
create a XIB file
upper
26. When making a tableView always...
retain
reuse your cells
methods for generating an instance
you must import the header file of that class
27. In any application with UINavigationController - the navigation controller...
Used to find the time right now or to store past or future time/dates
has one root view controller
safety - subclassability and makes code look more consistent with C structs
CGFloat
28. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
C Functionn
first responder
@synthesize
29. Three ways instances are created...
unordered collection of objects - objects must be unique
UIViewController
ready-made instances - instantiation from scratch - and nib based instantiation
an object's property
30. id is a...
data source - view controller and delegate
'getters' and 'setters'
pointer to an object
alloc - singleton - informational utility method?
31. A message is always contained in square brackets - and has three parts
you always return the newly initialized object(return self)
receiver - selector - arguments
UIView
CGRect
32. When a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller
'getters' and 'setters'
parentViewController
array[class - NSMutableArray]
data source - delegate and view controller
33. Any individual object belonging to any class...
is an instance of that class
reuse your cells
retain
Hash table - Look up objects using a key to get a value.
34. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
method
lowercase - uppercase
UIViewController
creating an initializer
35. 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 _.
unordered collection of objects - objects must be unique
subview(s)
super - self
the message release to all its entries
36. A responder is responsible for...
Instantiation from scratch
superclass's
array[class - NSMutableArray]
receiving and handling events that are associated with it
37. Hold data and know nothing about the user interface
delegates and dataSources
the instance variables
Model Objects[Factory Worker]
view controller
38. Each _ has a 'designated' initializer method....
class
CGRect bounds
creating an initializer
pointer - class
39. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
copy - retain
method
the instance variables
NSCoder
40. NSSet...
unordered collection of objects - objects must be unique
to give it someone else - or another object
UIView
instance variables
41. If a break statement is executed from within a set of nested loops...
only the innermost loop in which the break is executed is terminated
alloc - singleton - informational utility method?
type - name and value
data source - view controller and delegate
42. The integer prefix is...
collection of collections - NSArray of an NSArray
its dataSource
Functions
%d
43. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
instance variables
implementation
viewWillDissapear: and viewWillAppear:
ready-made instances - instantiation from scratch - and nib based instantiation
44. 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
45. 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
46. At the top of any implementation file...
Is a placeholder object
alloc - singleton - informational utility method?
storage
you must import the header file of that class
47. 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
48. Reference Counting...
a mechanism to enable specific callbacks
Continue
C Functionn
You take ownership for an object you want to keep a pointer to
49. When do you take ownership?...
create a XIB file
Encapsulation of functionality
is called every time the event occurs
Anytime you call a method with new - alloc or copy. You own and must release that object.
50. 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.
NSLog routine
define it in the implemenation file
data source - delegate and view controller
first responder