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. 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
2. An instance is a device for maintaining state. It's a box for _ of data.
retain
class's
storage
copy - retain
3. NSDate - class...
storage
Used to find the time right now or to store past or future time/dates
safety - subclassability and makes code look more consistent with C structs
self
4. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
Core Graphics Framework
variable scope - if defined within a block
upper
a mechanism to enable specific callbacks
5. At the top of any implementation file...
attributes - behavior
the array relinquishes ownership of that object and no longer has a pointer to it
Continue
you must import the header file of that class
6. Defining variables - three parts...
an object's property
type - name and value
for inheritance - adopting the superclasses implementation
Continue
7. NSSet...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
array[class - NSMutableArray]
unordered collection of objects - objects must be unique
view controller
8. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Hash table - Look up objects using a key to get a value.
instance variable of an object is valid
Generic object wrapper for other non-object data types
9. 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
10. Why properties?
safety - subclassability and makes code look more consistent with C structs
has one root view controller
Maintenance of state
Data Encapsulation
11. class methods...
header files declare
Object wrapper around primitive types like int - float - double - BOOl
collection of collections - NSArray of an NSArray
group of global functions already assigned to this class
12. A command directed to an object is called an...
retain
Data Encapsulation
view controller
message
13. super - is used...
methods
create a XIB file
you must import the header file of that class
for inheritance - adopting the superclasses implementation
14. A responder is responsible for...
only the class and subclasses can access
receiving and handling events that are associated with it
to get and set variables
will be ignored
15. When an object is added to a NSMutableArray - that object is sent the message to retain;...
selector[message]
the array becomes an owner of that object and has a pointer to it.
collection of collections - NSArray of an NSArray
pointer - class
16. All objects are accessed using...
Data Encapsulation
message
pointers
methods
17. A view is a subclass of _
attributes - behavior
view controller's initialization method
only the innermost loop in which the break is executed is terminated
UIView
18. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
message
instance of UIView or one of its subclasses
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Ready-Made Instance
19. 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.
instance variables
superclass's
CGRect bounds - GCPoint center - CGRect frame
they need to be defined in the implementation file
20. Use of class methods - there are three...
message
@synthesize
will be ignored
alloc - singleton - informational utility method?
21. Files Owner...
Abstraction
Is a placeholder object
data
methods for generating an instance
22. Also - because arrays only hold a pointer to an object...
view controller
receiving and handling events that are associated with it
instance variable of an object is valid
a single-array can contain objects of different types
23. 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
24. Any individual object belonging to any class...
Maintenance of state
message
is an instance of that class
size and position
25. Values to be supplied as the parameters to the method
arguments[message]
retain
view controller
ready-made instances - instantiation from scratch - and nib based instantiation
26. Number one use of protocols in iOS...
is called every time the event occurs
delegates and dataSources
setPossessionName
creating an initializer
27. Asking a class or object to execute a method
message
receiving and handling events that are associated with it
nil
ready-made instances - instantiation from scratch - and nib based instantiation
28. Primitives and C Structures...
nil
CGRect bounds - GCPoint center - CGRect frame
%d
cannot be added to an array
29. NSDictionary...
data
Hash table - Look up objects using a key to get a value.
self
Encapsulation of functionality
30. 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
Ready-Made Instance
unordered collection of objects - objects must be unique
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
31. Categories are an Objective C way to add _ to an existing class without subclassing
view controller's initialization method
methods
instance variables
superclass's
32. A _ handles touch events.
view
initializer
lowercase - uppercase
CGRect
33. In Objective C arrays can hold only...
@synthesize
references to objects
message
Is a placeholder object
34. How do I implement my drawRect?
Instantiation from scratch
CGRect bounds
an object's property
Core Graphics Framework
35. 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....
NSCoder
only the class and subclasses can access
array[class - NSMutableArray]
define it in the implemenation file
36. UIImageView is used to...
view controller
group of global functions already assigned to this class
instance variables
draw images
37. Name of the method to be executed
upper
selector[message]
only the class and subclasses can access
message
38. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
size and position
implementation
Controller Objects[Managers]
instance of UIView or one of its subclasses
39. Object Oriented based analogue to a function is called a...
draw images
method
Instantiation from scratch
copy - retain
40. 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
Hash table - Look up objects using a key to get a value.
position
Encapsulation of functionality
only the innermost loop in which the break is executed is terminated
41. 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
42. A collection object - an ordered list of objects that can be accesed by an index
the message release to all its entries
array[class - NSMutableArray]
type - name and value
Generic object wrapper for other non-object data types
43. 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
attributes - behavior
Model Objects[Factory Worker]
Data Encapsulation
44. 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
45. A callback is a function that is supplied in advance of an event - and...
will be ignored
is an instance of that class
is called every time the event occurs
Core Graphics Framework
46. Proceed through the loop - jump back to the top and check again
an object's property
initializers
CGRect bounds - GCPoint center - CGRect frame
Continue
47. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
@synthesize
rectangular
C Functionn
48. In a class method you cannot access...
header files declare
Abstraction
setPossessionName
the instance variables
49. 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
50. 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