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. In Objective C arrays can hold only...
references to objects
class methods - initializers
header files declare
delegates and dataSources
2. When do you take ownership?...
to get and set variables
arguments[message]
wait until the loop finishes processing the event - at the end release it
Anytime you call a method with new - alloc or copy. You own and must release that object.
3. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
ordered collection of objects - immutable
view
declaration and initialization of a variable
4. Whenever a UINavigationController is about to swap views - it sends out two messages
Generic object wrapper for other non-object data types
viewWillDissapear: and viewWillAppear:
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
CGFloat
5. Prefixing a character string with an @ symbol [specific - NSString class]...
UIView
(id)initWithFrame:(CGRect)aRect;
creates an instance of NSString that holds the character string
data source - delegate and view controller
6. Ready-made instances...
calling code that does the instantiation for you
implementation
values
size and position
7. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
safety - subclassability and makes code look more consistent with C structs
instance of UIView or one of its subclasses
nil
self
8. if you implemented both the setter and getter - the @synthesize method...
creating an initializer
attributes - behavior
wait until the loop finishes processing the event - at the end release it
will be ignored
9. Typically the designated initializer has parameters for the most important and frequently used _ of an object
Functions
instance variables
C Functionn
declaration and initialization of a variable
10. Reference Counting...
has one root view controller
data source - view controller and delegate
class methods - initializers
You take ownership for an object you want to keep a pointer to
11. 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 _.
size and position
dealloc - is called on the object & the object's memory is returned to the heap
class methods - initializers
nil
12. The integer prefix is...
Core Graphics Framework
dealloc - is called on the object & the object's memory is returned to the heap
%d
methods for generating an instance
13. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
UIViewController
CGRect
self
Data Encapsulation
14. The class is responsible for what instance variables the instance has - but not the _ of those variables.
instance
array[class - NSMutableArray]
values
Data Encapsulation
15. Origin of a view's coordinate system is _ left
alloc - singleton - informational utility method?
implementation
upper
object
16. 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
17. A command directed to an object is called an...
dealloc - is called on the object & the object's memory is returned to the heap
first responder
an object's property
message
18. 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.
Data Encapsulation
Generic object wrapper for other non-object data types
you always return the newly initialized object(return self)
an object's property
19. A view is an...
is called every time the event occurs
Data Encapsulation
you must import the header file of that class
instance of UIView or one of its subclasses
20. For view controllers that are closely related - like a table view controller and its detail view controller - you can simply give them _ that point to each other.
define it in the implemenation file
safety - subclassability and makes code look more consistent with C structs
receiver
instance variables
21. All objects are accessed using...
message
pointers
initializers
receiving and handling events that are associated with it
22. In the last line of an init method...
class's
the instance variables
Ready-Made Instance
you always return the newly initialized object(return self)
23. A view is a subclass of _
UIView
group of global functions already assigned to this class
CGRect
copy - retain
24. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
you always return the newly initialized object(return self)
NSCoder
to give it someone else - or another object
C Functionn
25. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
pointer to an object
the array relinquishes ownership of that object and no longer has a pointer to it
methods
26. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
dealloc - is called on the object & the object's memory is returned to the heap
Continue
a single-array can contain objects of different types
27. 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 _.
UIViewController
first responder
upper
pointer - class
28. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
to give it someone else - or another object
object
unordered collection of objects - objects must be unique
wait until the loop finishes processing the event - at the end release it
29. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
only the innermost loop in which the break is executed is terminated
initializers
you must import the header file of that class
30. A view represents a _ area
calling code that does the instantiation for you
receiver[message]
rectangular
upper
31. 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....
the array becomes an owner of that object and has a pointer to it.
C Functionn
define it in the implemenation file
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
32. In Cocoa Touch - the table view asks another object _ what it should display...
upper
its dataSource
initializers
super - self
33. A responder is responsible for...
Controller Objects[Managers]
receiving and handling events that are associated with it
CGRect bounds - GCPoint center - CGRect frame
Generic object wrapper for other non-object data types
34. Class methods do not operate on an _ or have any access to _ variables....
instance
pointer to an object
they need to be defined in the implementation file
new instances of the class or retrieve some global property of the class.
35. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
message
copy - retain
class
36. Execution of the break statement...
attributes - behavior
UIViewController
causes the program to immediately exit from the loop it is executing - whether its for - while or do
ready-made instances - instantiation from scratch - and nib based instantiation
37. Only exists within the statement block there defined - outside of the block is fine
to give it someone else - or another object
only the innermost loop in which the break is executed is terminated
variable scope - if defined within a block
Abstraction
38. 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
39. 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...
super - self
Object wrapper around primitive types like int - float - double - BOOl
class
setPossessionName
40. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
Data Encapsulation
pointer - class
creates an instance of NSString that holds the character string
41. In any application with UINavigationController - the navigation controller...
for inheritance - adopting the superclasses implementation
has one root view controller
super - self
data source - delegate and view controller
42. Primitives and C Structures...
cannot be added to an array
class
UIView
CGFloat
43. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
copy - retain
@interface ClassName:SuperClassName
'getters' and 'setters'
do so in viewDidLoad
44. Property List...
selector[message]
collection of collections - NSArray of an NSArray
view
class
45. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
you must import the header file of that class
instance variables
C Functionn
header files declare
46. At the top of any implementation file...
Ready-Made Instance
instance
you must import the header file of that class
class's
47. A UITableViewController can fill all three roles of...
for inheritance - adopting the superclasses implementation
data source - view controller and delegate
safety - subclassability and makes code look more consistent with C structs
instance variable of an object is valid
48. @property declares - and _ implements the setter and getter...
@synthesize
Data Encapsulation
receiver - selector - arguments
class methods - initializers
49. NSArray - class...
ordered collection of objects - immutable
retain
data source - view controller and delegate
data
50. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
CGRect bounds - GCPoint center - CGRect frame
lowercase - uppercase
instance of UIView or one of its subclasses