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. 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.
nil
accessors - individually we call them 'getters' and 'setters'
instance
Data Encapsulation
2. 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
3. Instance Variables by default are called @protected meaning...
selector[message]
Core Graphics Framework
only the class and subclasses can access
you must import the header file of that class
4. A responder is responsible for...
setPossessionName
message
receiving and handling events that are associated with it
the message release to all its entries
5. 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
6. [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.
you must import the header file of that class
receiving and handling events that are associated with it
data
receiver - selector - arguments
7. A function in the objective c library that simply displays or logs it's argument
message
to give it someone else - or another object
data source - view controller and delegate
NSLog routine
8. The only reason to temporarily own an object - is...
to give it someone else - or another object
protocol
methods for generating an instance
creates an instance of NSString that holds the character string
9. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
you always return the newly initialized object(return self)
a mechanism to enable specific callbacks
instance variable of an object is valid
10. 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.
Is a placeholder object
instance variables
message
view controller's initialization method
11. A view represents a _ area
CGRect bounds - GCPoint center - CGRect frame
ready-made instances - instantiation from scratch - and nib based instantiation
receiver - selector - arguments
rectangular
12. Just a floating point number - but we always use it for graphics.
CGFloat
calling code that does the instantiation for you
methods for generating an instance
C Functionn
13. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
instance variables
class methods - initializers
Core Graphics Framework
@synthesize
14. In general - class methods tend to be factory methods - that is...
(id)initWithFrame:(CGRect)aRect;
Encapsulation of functionality
retain
methods for generating an instance
15. 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
instance variables
to get and set variables
the instance variables
16. Property List...
group of global functions already assigned to this class
collection of collections - NSArray of an NSArray
method
Functions
17. Reducing details to focus on the core concepts
Abstraction
declaration and initialization of a variable
CGRect
designated initializer
18. A UITableView usually needs three different pieces...
unordered collection of objects - objects must be unique
data source - delegate and view controller
ready-made instances - instantiation from scratch - and nib based instantiation
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
19. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
methods
only the class and subclasses can access
selector[message]
20. NSDate - class...
instance variables
data
ready-made instances - instantiation from scratch - and nib based instantiation
Used to find the time right now or to store past or future time/dates
21. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
first responder
methods
CGRect bounds - GCPoint center - CGRect frame
header files declare
22. NSArray - class...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
ordered collection of objects - immutable
its dataSource
UIView
23. class methods...
new instances of the class or retrieve some global property of the class.
data source - view controller and delegate
group of global functions already assigned to this class
Used to find the time right now or to store past or future time/dates
24. If a break statement is executed from within a set of nested loops...
Data Encapsulation
only the innermost loop in which the break is executed is terminated
an object's property
alloc - singleton - informational utility method?
25. Object Oriented based analogue to a function is called a...
instance
pointers
method
storage
26. The class is responsible for what instance variables the instance has - but not the _ of those variables.
define it in the implemenation file
message
values
designated initializer
27. A pointer to the object being asked to execute a method
retain
receiver[message]
NSLog routine
Core Graphics Framework
28. NSDictionary...
is an instance of that class
the array relinquishes ownership of that object and no longer has a pointer to it
Hash table - Look up objects using a key to get a value.
methods
29. Use of class methods - there are three...
Instantiation from scratch
instance variables
alloc - singleton - informational utility method?
wait until the loop finishes processing the event - at the end release it
30. Number one use of protocols in iOS...
receiving and handling events that are associated with it
receiver
delegates and dataSources
CF - Ref
31. Any individual object belonging to any class...
delegates and dataSources
is an instance of that class
variable scope - if defined within a block
Instantiation from scratch
32. 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
@synthesize
only the class and subclasses can access
do so in viewDidLoad
33. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
pointer to an object
position
they need to be defined in the implementation file
34. Proceed through the loop - jump back to the top and check again
receiving and handling events that are associated with it
@interface ClassName:SuperClassName
Continue
do so in viewDidLoad
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
delegates and dataSources
CGRect bounds - GCPoint center - CGRect frame
type - name and value
Encapsulation of functionality
36. The root view controller typically creates the next view controller - and the next _ creates the one after that
initializers
self
view controller
methods for generating an instance
37. Designated initializer makes sure that every...
the instance variables
instance of UIView or one of its subclasses
reuse your cells
instance variable of an object is valid
38. Center and frame are used to _ your view
pointers
receiving and handling events that are associated with it
position
data source - delegate and view controller
39. Delegation is an object oriented approach to
array[class - NSMutableArray]
callbacks
@synthesize
NSLog routine
40. 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
41. UIViewController has several methods that get called at certain times...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
its dataSource
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Generic object wrapper for other non-object data types
42. NSString objects are usually sent _ rather than _...
you always return the newly initialized object(return self)
copy - retain
CF - Ref
receiver[message]
43. Reference Counting...
You take ownership for an object you want to keep a pointer to
retain
class
rectangular
44. The integer prefix is...
CGRect
%d
is called every time the event occurs
UIView
45. 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
46. Prefixing a character string with an @ symbol [specific - NSString class]...
UIViewController
creates an instance of NSString that holds the character string
first responder
group of global functions already assigned to this class
47. Asking a class or object to execute a method
setPossessionName
calling code that does the instantiation for you
message
define it in the implemenation file
48. Defining variables - three parts...
type - name and value
data source - delegate and view controller
Instantiation from scratch
callbacks
49. To load a Xib file manually - you use _
method
NSBundle
CGFloat
copy - retain
50. Why properties?
safety - subclassability and makes code look more consistent with C structs
class's
reuse your cells
Maintenance of state