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. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
first responder
Controller Objects[Managers]
its dataSource
calling code that does the instantiation for you
2. 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 _.
nil
CGRect bounds
class's
super - self
3. Origin of a view's coordinate system is _ left
array[class - NSMutableArray]
upper
receiver - selector - arguments
callbacks
4. UIView - designated initializer...
an object's property
Object wrapper around primitive types like int - float - double - BOOl
pointer to an object
(id)initWithFrame:(CGRect)aRect;
5. 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
rectangular
initializer
setPossessionName
6. Typically the designated initializer has parameters for the most important and frequently used _ of an object
callbacks
instance variables
C Functionn
@synthesize
7. 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 _.
subview(s)
header files declare
Controller Objects[Managers]
reuse your cells
8. UIImageView is used to...
draw images
ordered collection of objects - immutable
safety - subclassability and makes code look more consistent with C structs
view controller's initialization method
9. Number one use of protocols in iOS...
subview(s)
delegates and dataSources
unordered collection of objects - objects must be unique
the message release to all its entries
10. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
the message release to all its entries
Controller Objects[Managers]
initializer
11. A message is always contained in square brackets - and has three parts
is an instance of that class
Model Objects[Factory Worker]
Anytime you call a method with new - alloc or copy. You own and must release that object.
receiver - selector - arguments
12. When an NSMutableArray is deallocated - it sends...
CGRect bounds
the message release to all its entries
pointer to an object
NSCoder
13. If a break statement is executed from within a set of nested loops...
only the innermost loop in which the break is executed is terminated
Core Graphics Framework
@synthesize
the array relinquishes ownership of that object and no longer has a pointer to it
14. 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
15. To load a Xib file manually - you use _
pointer to an object
Object wrapper around primitive types like int - float - double - BOOl
pointer - class
NSBundle
16. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
class's
protocol
designated initializer
callbacks
17. @property declares - and _ implements the setter and getter...
references to objects
instance variables
@synthesize
variable scope - if defined within a block
18. Values to be supplied as the parameters to the method
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
arguments[message]
@interface ClassName:SuperClassName
NSLog routine
19. Center and frame are used to _ your view
view controller's initialization method
receiver
position
Used to find the time right now or to store past or future time/dates
20. NSNumber - class...
ready-made instances - instantiation from scratch - and nib based instantiation
they need to be defined in the implementation file
designated initializer
Object wrapper around primitive types like int - float - double - BOOl
21. After accessors have been defined in the header file...
receiver
they need to be defined in the implementation file
cannot be added to an array
nil
22. NSArray - class...
draw images
ordered collection of objects - immutable
view
class's
23. Prefixing a character string with an @ symbol [specific - NSString class]...
subview(s)
Abstraction
super - self
creates an instance of NSString that holds the character string
24. Reference Counting...
You take ownership for an object you want to keep a pointer to
the instance variables
position
upper
25. 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
26. 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
array[class - NSMutableArray]
define it in the implemenation file
instance
Functions
27. You use _ to implement the view
rectangular
parentViewController
new instances of the class or retrieve some global property of the class.
CGRect bounds
28. A function in the objective c library that simply displays or logs it's argument
cannot be added to an array
define it in the implemenation file
Maintenance of state
NSLog routine
29. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
header files declare
initializer
Core Graphics Framework
30. A view is a subclass of _
you must import the header file of that class
you always return the newly initialized object(return self)
the array becomes an owner of that object and has a pointer to it.
UIView
31. In the last line of an init method...
NSCoder
you always return the newly initialized object(return self)
receiver[message]
instance variables
32. A view is an...
parentViewController
class
size and position
instance of UIView or one of its subclasses
33. Class methods typically either create
new instances of the class or retrieve some global property of the class.
you must import the header file of that class
self
instance variables
34. A UITableView usually needs three different pieces...
dealloc - is called on the object & the object's memory is returned to the heap
an object's property
data source - delegate and view controller
CGRect bounds
35. Object Oriented based analogue to a function is called a...
lowercase - uppercase
method
group of global functions already assigned to this class
you must import the header file of that class
36. Designated initializer makes sure that every...
receiver - selector - arguments
pointer - class
class
instance variable of an object is valid
37. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
@synthesize
to give it someone else - or another object
38. Hold data and know nothing about the user interface
self
instance variables
Generic object wrapper for other non-object data types
Model Objects[Factory Worker]
39. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
callbacks
initializers
create a XIB file
lowercase - uppercase
40. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
accessors - individually we call them 'getters' and 'setters'
rectangular
creating an initializer
41. 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
42. Reducing details to focus on the core concepts
Abstraction
CGRect bounds - GCPoint center - CGRect frame
ordered collection of objects - immutable
setPossessionName
43. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
Used to find the time right now or to store past or future time/dates
variable scope - if defined within a block
CGRect
44. Class methods do not operate on an _ or have any access to _ variables....
in the dealloc - or when a Controller's view is 'unloaded'
instance of UIView or one of its subclasses
variable scope - if defined within a block
instance
45. NSString *s = @'Hello - World'; is an example of...
pointer to an object
declaration and initialization of a variable
new instances of the class or retrieve some global property of the class.
draw images
46. super - is used...
for inheritance - adopting the superclasses implementation
a mechanism to enable specific callbacks
self
parentViewController
47. Proceed through the loop - jump back to the top and check again
in the dealloc - or when a Controller's view is 'unloaded'
Continue
protocol
callbacks
48. Categories are an Objective C way to add _ to an existing class without subclassing
message
attributes - behavior
receiving and handling events that are associated with it
methods
49. 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
message
parentViewController
they need to be defined in the implementation file
50. Execution of the break statement...
Anytime you call a method with new - alloc or copy. You own and must release that object.
viewWillDissapear: and viewWillAppear:
UIViewController
causes the program to immediately exit from the loop it is executing - whether its for - while or do