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. Center and frame are used to _ your view
the instance variables
a single-array can contain objects of different types
Controller Objects[Managers]
position
2. NSArray - important methods...
Ready-Made Instance
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
rectangular
NSLog routine
3. NSString *s = @'Hello - World'; is an example of...
instance of UIView or one of its subclasses
declaration and initialization of a variable
message
pointers
4. At the top of any implementation file...
for inheritance - adopting the superclasses implementation
you must import the header file of that class
initializers
pointer - class
5. Asking a class or object to execute a method
message
data source - view controller and delegate
nil
receiver[message]
6. In a class method you cannot access...
references to objects
object
the instance variables
new instances of the class or retrieve some global property of the class.
7. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
class's
designated initializer
initializers
only the innermost loop in which the break is executed is terminated
8. initWithFrame: the designated initializer for UIView gives the view
pointers
Ready-Made Instance
size and position
ordered collection of objects - immutable
9. When making a tableView always...
header files declare
methods for generating an instance
CGRect bounds - GCPoint center - CGRect frame
reuse your cells
10. The root view controller typically creates the next view controller - and the next _ creates the one after that
first responder
causes the program to immediately exit from the loop it is executing - whether its for - while or do
view controller
initializers
11. Just a floating point number - but we always use it for graphics.
implementation
position
methods for generating an instance
CGFloat
12. A _ handles touch events.
delegates and dataSources
view
receiver
CGRect bounds
13. Primitives and C Structures...
cannot be added to an array
Model Objects[Factory Worker]
dealloc - is called on the object & the object's memory is returned to the heap
methods
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.
data
Maintenance of state
storage
arguments[message]
15. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
'getters' and 'setters'
@interface ClassName:SuperClassName
do so in viewDidLoad
instance of UIView or one of its subclasses
16. 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.
receiver
CGRect bounds - GCPoint center - CGRect frame
Data Encapsulation
Continue
17. Values to be supplied as the parameters to the method
@synthesize
self
arguments[message]
Controller Objects[Managers]
18. You use _ to implement the view
ready-made instances - instantiation from scratch - and nib based instantiation
type - name and value
selector[message]
CGRect bounds
19. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
the array relinquishes ownership of that object and no longer has a pointer to it
Anytime you call a method with new - alloc or copy. You own and must release that object.
@interface ClassName:SuperClassName
20. 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
21. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
Hash table - Look up objects using a key to get a value.
accessors - individually we call them 'getters' and 'setters'
CF - Ref
22. When an object is added to a NSMutableArray - that object is sent the message to retain;...
do so in viewDidLoad
its dataSource
instance variables
the array becomes an owner of that object and has a pointer to it.
23. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
Anytime you call a method with new - alloc or copy. You own and must release that object.
NSCoder
position
rectangular
24. The class is responsible for what instance variables the instance has - but not the _ of those variables.
draw images
class
instance variables
values
25. Three ways instances are created...
designated initializer
ready-made instances - instantiation from scratch - and nib based instantiation
values
initializers
26. Reducing details to focus on the core concepts
Is a placeholder object
has one root view controller
message
Abstraction
27. A callback is a function that is supplied in advance of an event - and...
callbacks
is called every time the event occurs
array[class - NSMutableArray]
variable scope - if defined within a block
28. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.
NSLog routine
subview(s)
upper
group of global functions already assigned to this class
29. NSSet...
unordered collection of objects - objects must be unique
class
is called every time the event occurs
pointers
30. NSValue - class...
Generic object wrapper for other non-object data types
instance variables
instance variables
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
31. 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
view
wait until the loop finishes processing the event - at the end release it
Maintenance of state
methods for generating an instance
32. A UITableViewController can fill all three roles of...
draw images
NSCoder
data source - view controller and delegate
do so in viewDidLoad
33. UIImageView is used to...
upper
retain
ordered collection of objects - immutable
draw images
34. Class methods do not operate on an _ or have any access to _ variables....
instance
new instances of the class or retrieve some global property of the class.
receiver
message
35. In any application with UINavigationController - the navigation controller...
only the class and subclasses can access
receiver
attributes - behavior
has one root view controller
36. 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 _.
creates an instance of NSString that holds the character string
define it in the implemenation file
pointer - class
Used to find the time right now or to store past or future time/dates
37. NSDictionary...
Hash table - Look up objects using a key to get a value.
reuse your cells
Model Objects[Factory Worker]
methods for generating an instance
38. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
a single-array can contain objects of different types
NSBundle
Controller Objects[Managers]
upper
39. When an object is removed from an NSMutableArray - that object is sent the message release;...
pointer - class
implementation
reuse your cells
the array relinquishes ownership of that object and no longer has a pointer to it
40. When a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller
parentViewController
selector[message]
Model Objects[Factory Worker]
view controller's initialization method
41. NSArray - class...
receiving and handling events that are associated with it
has one root view controller
UIViewController
ordered collection of objects - immutable
42. 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.
nil
CGFloat
view controller's initialization method
instance variables
43. Why properties?
safety - subclassability and makes code look more consistent with C structs
instance
view controller's initialization method
references to objects
44. super - is used...
class
accessors - individually we call them 'getters' and 'setters'
data source - delegate and view controller
for inheritance - adopting the superclasses implementation
45. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
setPossessionName
class
ready-made instances - instantiation from scratch - and nib based instantiation
46. A function in the objective c library that simply displays or logs it's argument
NSLog routine
values
to give it someone else - or another object
new instances of the class or retrieve some global property of the class.
47. 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
48. Property List...
receiver - selector - arguments
NSCoder
data source - view controller and delegate
collection of collections - NSArray of an NSArray
49. A command directed to an object is called an...
super - self
designated initializer
message
viewWillDissapear: and viewWillAppear:
50. 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 _.
Maintenance of state
position
instance variable of an object is valid
nil