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. At the top of any implementation file...
you must import the header file of that class
superclass's
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
instance variables
2. 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.
array[class - NSMutableArray]
super - self
implementation
class's
3. 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
4. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
subview(s)
instance variables
CGFloat
CGRect
5. Whenever a UINavigationController is about to swap views - it sends out two messages
NSBundle
you must import the header file of that class
alloc - singleton - informational utility method?
viewWillDissapear: and viewWillAppear:
6. In Objective C arrays can hold only...
Object wrapper around primitive types like int - float - double - BOOl
references to objects
only the class and subclasses can access
Core Graphics Framework
7. Views have three properties related to their location and size: @property _ _;
unordered collection of objects - objects must be unique
data source - delegate and view controller
CGRect bounds - GCPoint center - CGRect frame
NSCoder
8. Class methods do not operate on an _ or have any access to _ variables....
ordered collection of objects - immutable
Model Objects[Factory Worker]
designated initializer
instance
9. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
data
object
self
causes the program to immediately exit from the loop it is executing - whether its for - while or do
10. If a break statement is executed from within a set of nested loops...
its dataSource
only the innermost loop in which the break is executed is terminated
upper
Controller Objects[Managers]
11. 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
12. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
Continue
only the innermost loop in which the break is executed is terminated
first responder
13. Hold data and know nothing about the user interface
Data Encapsulation
@synthesize
Model Objects[Factory Worker]
superclass's
14. In a class method you cannot access...
the instance variables
alloc - singleton - informational utility method?
CGRect
view controller's initialization method
15. 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....
type - name and value
define it in the implemenation file
Instantiation from scratch
Functions
16. if you implemented both the setter and getter - the @synthesize method...
receiver
You take ownership for an object you want to keep a pointer to
Generic object wrapper for other non-object data types
will be ignored
17. To load a Xib file manually - you use _
NSBundle
draw images
message
NSCoder
18. A UITableViewController can fill all three roles of...
Encapsulation of functionality
callbacks
data source - view controller and delegate
array[class - NSMutableArray]
19. When an object is added to a NSMutableArray - that object is sent the message to retain;...
class's
the array becomes an owner of that object and has a pointer to it.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
only the innermost loop in which the break is executed is terminated
20. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
CGRect bounds
initializer
a single-array can contain objects of different types
21. Why properties?
safety - subclassability and makes code look more consistent with C structs
class's
pointer to an object
a mechanism to enable specific callbacks
22. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
type - name and value
designated initializer
dealloc - is called on the object & the object's memory is returned to the heap
selector[message]
23. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
24. Execution of the break statement...
header files declare
callbacks
in the dealloc - or when a Controller's view is 'unloaded'
causes the program to immediately exit from the loop it is executing - whether its for - while or do
25. A _ handles touch events.
view
an object's property
to give it someone else - or another object
retain
26. Just a floating point number - but we always use it for graphics.
receiving and handling events that are associated with it
to give it someone else - or another object
Model Objects[Factory Worker]
CGFloat
27. Typically the designated initializer has parameters for the most important and frequently used _ of an object
callbacks
will be ignored
ordered collection of objects - immutable
instance variables
28. After accessors have been defined in the header file...
Controller Objects[Managers]
receiving and handling events that are associated with it
Object wrapper around primitive types like int - float - double - BOOl
they need to be defined in the implementation file
29. What does autorelease mean?
subview(s)
wait until the loop finishes processing the event - at the end release it
you always return the newly initialized object(return self)
(id)initWithFrame:(CGRect)aRect;
30. Delegation is an object oriented approach to
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
callbacks
CGRect bounds - GCPoint center - CGRect frame
Model Objects[Factory Worker]
31. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
subview(s)
retain
Anytime you call a method with new - alloc or copy. You own and must release that object.
32. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Controller Objects[Managers]
has one root view controller
C Functionn
Instantiation from scratch
33. Number one use of protocols in iOS...
its dataSource
header files declare
delegates and dataSources
CGRect bounds
34. Object Oriented based analogue to a function is called a...
method
values
CGRect bounds
callbacks
35. 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
retain
do so in viewDidLoad
Encapsulation of functionality
a single-array can contain objects of different types
36. NSSet...
unordered collection of objects - objects must be unique
NSCoder
Encapsulation of functionality
declaration and initialization of a variable
37. Reference Counting...
receiver - selector - arguments
will be ignored
setPossessionName
You take ownership for an object you want to keep a pointer to
38. NSArray - class...
(id)initWithFrame:(CGRect)aRect;
do so in viewDidLoad
ordered collection of objects - immutable
Instantiation from scratch
39. NSDictionary...
upper
attributes - behavior
only the innermost loop in which the break is executed is terminated
Hash table - Look up objects using a key to get a value.
40. A message is always contained in square brackets - and has three parts
the instance variables
array[class - NSMutableArray]
receiver - selector - arguments
(id)initWithFrame:(CGRect)aRect;
41. Only exists within the statement block there defined - outside of the block is fine
object
Used to find the time right now or to store past or future time/dates
variable scope - if defined within a block
data
42. An instance is a device for maintaining state. It's a box for _ of data.
arguments[message]
receiver
storage
CGRect bounds - GCPoint center - CGRect frame
43. @property declares - and _ implements the setter and getter...
array[class - NSMutableArray]
@synthesize
You take ownership for an object you want to keep a pointer to
upper
44. Primitives and C Structures...
wait until the loop finishes processing the event - at the end release it
cannot be added to an array
an object's property
variable scope - if defined within a block
45. All objects are accessed using...
pointers
NSBundle
NSCoder
viewWillDissapear: and viewWillAppear:
46. 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
view controller's initialization method
receiver - selector - arguments
Maintenance of state
view controller
47. 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
an object's property
method
subview(s)
48. 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.
data source - view controller and delegate
class methods - initializers
Abstraction
creating an initializer
49. Also - because arrays only hold a pointer to an object...
self
reuse your cells
CGRect bounds
a single-array can contain objects of different types
50. When an object is removed from an NSMutableArray - that object is sent the message release;...
new instances of the class or retrieve some global property of the class.
Generic object wrapper for other non-object data types
Ready-Made Instance
the array relinquishes ownership of that object and no longer has a pointer to it