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. initWithFrame: the designated initializer for UIView gives the view
size and position
@interface ClassName:SuperClassName
initializer
wait until the loop finishes processing the event - at the end release it
2. A callback is a function that is supplied in advance of an event - and...
upper
receiver[message]
is called every time the event occurs
to get and set variables
3. If you have extra work you want to do on the view...
do so in viewDidLoad
values
@interface ClassName:SuperClassName
subview(s)
4. Three ways instances are created...
the instance variables
UIView
(id)initWithFrame:(CGRect)aRect;
ready-made instances - instantiation from scratch - and nib based instantiation
5. Reference Counting...
CGRect
NSBundle
You take ownership for an object you want to keep a pointer to
nil
6. Just a floating point number - but we always use it for graphics.
instance
CGFloat
NSLog routine
references to objects
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. Class methods typically either create
you always return the newly initialized object(return self)
the array relinquishes ownership of that object and no longer has a pointer to it
delegates and dataSources
new instances of the class or retrieve some global property of the class.
9. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
header files declare
define it in the implemenation file
receiver - selector - arguments
NSCoder
10. 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...
view controller
calling code that does the instantiation for you
method
setPossessionName
11. Hold data and know nothing about the user interface
creating an initializer
array[class - NSMutableArray]
Model Objects[Factory Worker]
you must import the header file of that class
12. super - is used...
initializers
for inheritance - adopting the superclasses implementation
the instance variables
receiver[message]
13. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
to get and set variables
safety - subclassability and makes code look more consistent with C structs
nil
CGRect
14. If the view has no subviews - create it programmatically; if it has subviews
calling code that does the instantiation for you
will be ignored
receiver
create a XIB file
15. A view is a subclass of _
references to objects
UIView
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
super - self
16. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
the array relinquishes ownership of that object and no longer has a pointer to it
callbacks
subview(s)
17. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
its dataSource
You take ownership for an object you want to keep a pointer to
C Functionn
Controller Objects[Managers]
18. A _ handles touch events.
view
creates an instance of NSString that holds the character string
message
receiver[message]
19. 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
setPossessionName
Maintenance of state
creates an instance of NSString that holds the character string
unordered collection of objects - objects must be unique
20. 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.
calling code that does the instantiation for you
message
Data Encapsulation
instance variables
21. A view represents a _ area
a single-array can contain objects of different types
rectangular
protocol
Maintenance of state
22. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
its dataSource
ready-made instances - instantiation from scratch - and nib based instantiation
collection of collections - NSArray of an NSArray
self
23. 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
24. UIImageView is used to...
storage
draw images
receiver[message]
references to objects
25. @property - is using methods...
CF - Ref
Functions
to get and set variables
only the innermost loop in which the break is executed is terminated
26. UIView - designated initializer...
variable scope - if defined within a block
CGRect bounds
they need to be defined in the implementation file
(id)initWithFrame:(CGRect)aRect;
27. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
Controller Objects[Managers]
the instance variables
instance variable of an object is valid
@interface ClassName:SuperClassName
28. NSDate - class...
only the class and subclasses can access
initializer
do so in viewDidLoad
Used to find the time right now or to store past or future time/dates
29. Origin of a view's coordinate system is _ left
self
Instantiation from scratch
upper
wait until the loop finishes processing the event - at the end release it
30. [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.
data
unordered collection of objects - objects must be unique
is called every time the event occurs
%d
31. Files Owner...
reuse your cells
Data Encapsulation
variable scope - if defined within a block
Is a placeholder object
32. 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
33. Asking a class or object to execute a method
Functions
@interface ClassName:SuperClassName
will be ignored
message
34. Execution of the break statement...
Maintenance of state
cannot be added to an array
parentViewController
causes the program to immediately exit from the loop it is executing - whether its for - while or do
35. In a class method you cannot access...
NSLog routine
the instance variables
calling code that does the instantiation for you
class
36. When an object is removed from an NSMutableArray - that object is sent the message release;...
Generic object wrapper for other non-object data types
setPossessionName
the array relinquishes ownership of that object and no longer has a pointer to it
you always return the newly initialized object(return self)
37. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
data
ready-made instances - instantiation from scratch - and nib based instantiation
collection of collections - NSArray of an NSArray
object
38. Use of class methods - there are three...
array[class - NSMutableArray]
attributes - behavior
alloc - singleton - informational utility method?
@synthesize
39. A UITableViewController can fill all three roles of...
data source - view controller and delegate
type - name and value
Hash table - Look up objects using a key to get a value.
references to objects
40. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
methods
creating an initializer
collection of collections - NSArray of an NSArray
class methods - initializers
41. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
group of global functions already assigned to this class
the array becomes an owner of that object and has a pointer to it.
first responder
42. UITableViewController is a subclass of...
self
UIViewController
retain
arguments[message]
43. If a break statement is executed from within a set of nested loops...
Data Encapsulation
Abstraction
NSCoder
only the innermost loop in which the break is executed is terminated
44. Object Oriented based analogue to a function is called a...
CGRect bounds - GCPoint center - CGRect frame
copy - retain
selector[message]
method
45. Defining variables - three parts...
upper
self
type - name and value
to give it someone else - or another object
46. Why properties?
safety - subclassability and makes code look more consistent with C structs
its dataSource
CGFloat
dealloc - is called on the object & the object's memory is returned to the heap
47. In general - class methods tend to be factory methods - that is...
methods for generating an instance
accessors - individually we call them 'getters' and 'setters'
@synthesize
Object wrapper around primitive types like int - float - double - BOOl
48. NSArray - class...
header files declare
Object wrapper around primitive types like int - float - double - BOOl
Data Encapsulation
ordered collection of objects - immutable
49. Name of the method to be executed
Used to find the time right now or to store past or future time/dates
alloc - singleton - informational utility method?
selector[message]
wait until the loop finishes processing the event - at the end release it
50. Core foundation classes are prefixed with _ and suffixed with _
is an instance of that class
CF - Ref
selector[message]
data