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. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
alloc - singleton - informational utility method?
the array relinquishes ownership of that object and no longer has a pointer to it
initializers
setPossessionName
2. Object Oriented based analogue to a function is called a...
calling code that does the instantiation for you
nil
Data Encapsulation
method
3. UIImageView is used to...
NSBundle
CF - Ref
draw images
NSCoder
4. A responder is responsible for...
self
designated initializer
super - self
receiving and handling events that are associated with it
5. NSDictionary...
instance of UIView or one of its subclasses
Hash table - Look up objects using a key to get a value.
unordered collection of objects - objects must be unique
an object's property
6. A function in the objective c library that simply displays or logs it's argument
only the innermost loop in which the break is executed is terminated
values
NSCoder
NSLog routine
7. 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
8. 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
9. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
Core Graphics Framework
Data Encapsulation
size and position
10. NSSet...
unordered collection of objects - objects must be unique
CGRect
new instances of the class or retrieve some global property of the class.
references to objects
11. 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
class methods - initializers
Functions
attributes - behavior
superclass's
12. A view is an...
pointers
CGRect bounds - GCPoint center - CGRect frame
instance of UIView or one of its subclasses
Core Graphics Framework
13. A callback is a function that is supplied in advance of an event - and...
you must import the header file of that class
create a XIB file
NSBundle
is called every time the event occurs
14. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
initializer
Controller Objects[Managers]
define it in the implemenation file
data
15. Defining variables - three parts...
type - name and value
instance
view
pointer to an object
16. Typically the designated initializer has parameters for the most important and frequently used _ of an object
CGRect
instance variables
object
instance variables
17. Classes describe two things...
CGRect
message
attributes - behavior
'getters' and 'setters'
18. if you implemented both the setter and getter - the @synthesize method...
will be ignored
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
initializer
new instances of the class or retrieve some global property of the class.
19. Whenever a UINavigationController is about to swap views - it sends out two messages
@interface ClassName:SuperClassName
Continue
receiver
viewWillDissapear: and viewWillAppear:
20. A UITableView usually needs three different pieces...
first responder
data source - delegate and view controller
Used to find the time right now or to store past or future time/dates
Controller Objects[Managers]
21. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Hash table - Look up objects using a key to get a value.
message
Ready-Made Instance
initializer
22. What does autorelease mean?
creates an instance of NSString that holds the character string
pointer - class
only the innermost loop in which the break is executed is terminated
wait until the loop finishes processing the event - at the end release it
23. 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
viewWillDissapear: and viewWillAppear:
do so in viewDidLoad
wait until the loop finishes processing the event - at the end release it
Maintenance of state
24. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
position
UIViewController
delegates and dataSources
lowercase - uppercase
25. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
wait until the loop finishes processing the event - at the end release it
You take ownership for an object you want to keep a pointer to
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Instantiation from scratch
26. 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 _.
pointer - class
type - name and value
causes the program to immediately exit from the loop it is executing - whether its for - while or do
an object's property
27. Use of class methods - there are three...
designated initializer
retain
parentViewController
alloc - singleton - informational utility method?
28. A UITableViewController can fill all three roles of...
data source - view controller and delegate
create a XIB file
rectangular
array[class - NSMutableArray]
29. Name of the method to be executed
array[class - NSMutableArray]
selector[message]
initializers
implementation
30. All objects are accessed using...
@interface ClassName:SuperClassName
Object wrapper around primitive types like int - float - double - BOOl
lowercase - uppercase
pointers
31. In a class method you cannot access...
the instance variables
selector[message]
view controller's initialization method
data
32. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
header files declare
data source - view controller and delegate
CGRect
define it in the implemenation file
33. id is a...
@synthesize
they need to be defined in the implementation file
parentViewController
pointer to an object
34. Each class picks one _ as it's designated initializer....
initializer
selector[message]
pointer - class
Continue
35. A method in a _ is required unless its preceded by an @optional.
a single-array can contain objects of different types
only the class and subclasses can access
protocol
object
36. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
selector[message]
Controller Objects[Managers]
Continue
you always return the newly initialized object(return self)
37. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
38. Any individual object belonging to any class...
you always return the newly initialized object(return self)
in the dealloc - or when a Controller's view is 'unloaded'
you must import the header file of that class
is an instance of that class
39. 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
40. class methods...
to give it someone else - or another object
initializer
to get and set variables
group of global functions already assigned to this class
41. initWithFrame: the designated initializer for UIView gives the view
do so in viewDidLoad
Maintenance of state
CGRect bounds
size and position
42. Only exists within the statement block there defined - outside of the block is fine
to get and set variables
variable scope - if defined within a block
values
superclass's
43. Class methods typically either create
new instances of the class or retrieve some global property of the class.
view controller's initialization method
object
rectangular
44. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
You take ownership for an object you want to keep a pointer to
instance of UIView or one of its subclasses
designated initializer
viewWillDissapear: and viewWillAppear:
45. In general - class methods tend to be factory methods - that is...
%d
UIView
dealloc - is called on the object & the object's memory is returned to the heap
methods for generating an instance
46. Property List...
Instantiation from scratch
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
collection of collections - NSArray of an NSArray
Controller Objects[Managers]
47. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
CGRect bounds - GCPoint center - CGRect frame
Generic object wrapper for other non-object data types
view
48. Each _ has a 'designated' initializer method....
Ready-Made Instance
is called every time the event occurs
a single-array can contain objects of different types
class
49. If the view has no subviews - create it programmatically; if it has subviews
define it in the implemenation file
create a XIB file
attributes - behavior
in the dealloc - or when a Controller's view is 'unloaded'
50. Prefixing a character string with an @ symbol [specific - NSString class]...
Data Encapsulation
Maintenance of state
creates an instance of NSString that holds the character string
instance variables