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. After accessors have been defined in the header file...
methods for generating an instance
calling code that does the instantiation for you
they need to be defined in the implementation file
lowercase - uppercase
2. 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.
Continue
superclass's
initializer
Data Encapsulation
3. You use _ to implement the view
values
CGRect bounds
view controller
the array relinquishes ownership of that object and no longer has a pointer to it
4. Proceed through the loop - jump back to the top and check again
Continue
super - self
to get and set variables
view controller's initialization method
5. 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
6. If you have extra work you want to do on the view...
the array becomes an owner of that object and has a pointer to it.
Used to find the time right now or to store past or future time/dates
C Functionn
do so in viewDidLoad
7. @property - is using methods...
CGRect bounds - GCPoint center - CGRect frame
object
to get and set variables
Abstraction
8. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
unordered collection of objects - objects must be unique
methods
class methods - initializers
Model Objects[Factory Worker]
9. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
the array becomes an owner of that object and has a pointer to it.
CGRect
pointer to an object
designated initializer
10. Also - because arrays only hold a pointer to an object...
self
new instances of the class or retrieve some global property of the class.
a single-array can contain objects of different types
CGRect bounds - GCPoint center - CGRect frame
11. Ready-made instances...
alloc - singleton - informational utility method?
calling code that does the instantiation for you
rectangular
protocol
12. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
data source - delegate and view controller
%d
pointer - class
13. Origin of a view's coordinate system is _ left
upper
class methods - initializers
@interface ClassName:SuperClassName
callbacks
14. If a break statement is executed from within a set of nested loops...
declaration and initialization of a variable
only the innermost loop in which the break is executed is terminated
data source - view controller and delegate
self
15. Hold data and know nothing about the user interface
Data Encapsulation
Anytime you call a method with new - alloc or copy. You own and must release that object.
collection of collections - NSArray of an NSArray
Model Objects[Factory Worker]
16. NSValue - class...
Generic object wrapper for other non-object data types
methods
reuse your cells
to get and set variables
17. Instance Variables by default are called @protected meaning...
UIView
message
only the class and subclasses can access
Instantiation from scratch
18. Views have three properties related to their location and size: @property _ _;
unordered collection of objects - objects must be unique
class
instance of UIView or one of its subclasses
CGRect bounds - GCPoint center - CGRect frame
19. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
a mechanism to enable specific callbacks
has one root view controller
initializer
CGRect
20. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
'getters' and 'setters'
(id)initWithFrame:(CGRect)aRect;
create a XIB file
21. 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
for inheritance - adopting the superclasses implementation
Functions
upper
view controller
22. Class methods do not operate on an _ or have any access to _ variables....
delegates and dataSources
to give it someone else - or another object
instance
instance variable of an object is valid
23. When making a tableView always...
reuse your cells
delegates and dataSources
C Functionn
array[class - NSMutableArray]
24. NSString objects are usually sent _ rather than _...
declaration and initialization of a variable
Hash table - Look up objects using a key to get a value.
copy - retain
they need to be defined in the implementation file
25. super - is used...
create a XIB file
reuse your cells
for inheritance - adopting the superclasses implementation
the array relinquishes ownership of that object and no longer has a pointer to it
26. Just a floating point number - but we always use it for graphics.
initializer
CGFloat
the instance variables
'getters' and 'setters'
27. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
view
first responder
an object's property
28. In a class method you cannot access...
lowercase - uppercase
collection of collections - NSArray of an NSArray
they need to be defined in the implementation file
the instance variables
29. The only reason to temporarily own an object - is...
instance of UIView or one of its subclasses
to give it someone else - or another object
define it in the implemenation file
array[class - NSMutableArray]
30. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
methods
define it in the implemenation file
'getters' and 'setters'
31. 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
32. In general - class methods tend to be factory methods - that is...
methods for generating an instance
group of global functions already assigned to this class
Ready-Made Instance
NSCoder
33. At the top of any implementation file...
draw images
group of global functions already assigned to this class
instance of UIView or one of its subclasses
you must import the header file of that class
34. 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
35. When an NSMutableArray is deallocated - it sends...
creates an instance of NSString that holds the character string
the message release to all its entries
Model Objects[Factory Worker]
an object's property
36. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
CGRect bounds
UIViewController
@synthesize
37. Files Owner...
Is a placeholder object
'getters' and 'setters'
variable scope - if defined within a block
%d
38. In Objective C arrays can hold only...
lowercase - uppercase
data source - delegate and view controller
references to objects
receiver - selector - arguments
39. In any application with UINavigationController - the navigation controller...
values
@interface ClassName:SuperClassName
has one root view controller
position
40. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
Maintenance of state
type - name and value
copy - retain
size and position
41. Use of class methods - there are three...
alloc - singleton - informational utility method?
CGRect bounds
super - self
Is a placeholder object
42. A pointer to the object being asked to execute a method
define it in the implemenation file
receiver[message]
wait until the loop finishes processing the event - at the end release it
an object's property
43. 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 _.
designated initializer
dealloc - is called on the object & the object's memory is returned to the heap
subview(s)
Maintenance of state
44. Center and frame are used to _ your view
calling code that does the instantiation for you
position
view controller
(id)initWithFrame:(CGRect)aRect;
45. A view represents a _ area
rectangular
receiver - selector - arguments
message
references to objects
46. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
the array becomes an owner of that object and has a pointer to it.
wait until the loop finishes processing the event - at the end release it
lowercase - uppercase
message
47. Why properties?
safety - subclassability and makes code look more consistent with C structs
Anytime you call a method with new - alloc or copy. You own and must release that object.
do so in viewDidLoad
initializer
48. How do I implement my drawRect?
cannot be added to an array
data source - delegate and view controller
Core Graphics Framework
define it in the implemenation file
49. 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...
wait until the loop finishes processing the event - at the end release it
UIViewController
setPossessionName
upper
50. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
method
implementation
Encapsulation of functionality
message