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. Ready-made instances...
Ready-Made Instance
'getters' and 'setters'
calling code that does the instantiation for you
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
2. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
parentViewController
class methods - initializers
causes the program to immediately exit from the loop it is executing - whether its for - while or do
data source - delegate and view controller
3. 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.
calling code that does the instantiation for you
creating an initializer
object
%d
4. NSNumber - class...
its dataSource
pointers
Object wrapper around primitive types like int - float - double - BOOl
Data Encapsulation
5. Class methods do not operate on an _ or have any access to _ variables....
instance
CF - Ref
create a XIB file
unordered collection of objects - objects must be unique
6. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
the message release to all its entries
selector[message]
Controller Objects[Managers]
rectangular
7. Use of class methods - there are three...
alloc - singleton - informational utility method?
Encapsulation of functionality
class's
receiving and handling events that are associated with it
8. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
creates an instance of NSString that holds the character string
CGRect bounds
pointer - class
CGRect
9. A UITableView usually needs three different pieces...
accessors - individually we call them 'getters' and 'setters'
data source - delegate and view controller
Is a placeholder object
safety - subclassability and makes code look more consistent with C structs
10. 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
11. Classes describe two things...
Instantiation from scratch
lowercase - uppercase
do so in viewDidLoad
attributes - behavior
12. Class methods typically either create
designated initializer
'getters' and 'setters'
Encapsulation of functionality
new instances of the class or retrieve some global property of the class.
13. UIView - designated initializer...
values
header files declare
in the dealloc - or when a Controller's view is 'unloaded'
(id)initWithFrame:(CGRect)aRect;
14. 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 _.
viewWillDissapear: and viewWillAppear:
parentViewController
pointer - class
Controller Objects[Managers]
15. When do you take ownership?...
%d
object
Anytime you call a method with new - alloc or copy. You own and must release that object.
superclass's
16. A message is always contained in square brackets - and has three parts
has one root view controller
receiver - selector - arguments
unordered collection of objects - objects must be unique
declaration and initialization of a variable
17. How do I implement my drawRect?
size and position
class methods - initializers
Core Graphics Framework
copy - retain
18. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
data source - delegate and view controller
a single-array can contain objects of different types
Ready-Made Instance
message
19. 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 _.
only the innermost loop in which the break is executed is terminated
subview(s)
Hash table - Look up objects using a key to get a value.
instance variables
20. Any individual object belonging to any class...
instance of UIView or one of its subclasses
safety - subclassability and makes code look more consistent with C structs
is an instance of that class
Controller Objects[Managers]
21. In the last line of an init method...
instance
methods
setPossessionName
you always return the newly initialized object(return self)
22. [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.
@synthesize
first responder
data
Instantiation from scratch
23. 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
24. 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
is an instance of that class
Model Objects[Factory Worker]
an object's property
25. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
Abstraction
cannot be added to an array
upper
NSCoder
26. @property declares - and _ implements the setter and getter...
instance variable of an object is valid
(id)initWithFrame:(CGRect)aRect;
@synthesize
arguments[message]
27. The only reason to temporarily own an object - is...
only the class and subclasses can access
first responder
retain
to give it someone else - or another object
28. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
data source - view controller and delegate
self
is called every time the event occurs
calling code that does the instantiation for you
29. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
Continue
for inheritance - adopting the superclasses implementation
lowercase - uppercase
30. A UITableViewController can fill all three roles of...
instance of UIView or one of its subclasses
class
for inheritance - adopting the superclasses implementation
data source - view controller and delegate
31. Delegation is an object oriented approach to
a mechanism to enable specific callbacks
callbacks
(id)initWithFrame:(CGRect)aRect;
pointer to an object
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
Instantiation from scratch
the instance variables
Generic object wrapper for other non-object data types
33. Only exists within the statement block there defined - outside of the block is fine
attributes - behavior
CF - Ref
variable scope - if defined within a block
do so in viewDidLoad
34. 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....
new instances of the class or retrieve some global property of the class.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
define it in the implemenation file
object
35. In Objective C arrays can hold only...
view controller
attributes - behavior
references to objects
initializer
36. Why properties?
methods for generating an instance
storage
safety - subclassability and makes code look more consistent with C structs
message
37. class methods...
group of global functions already assigned to this class
%d
Generic object wrapper for other non-object data types
instance variables
38. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
receiver - selector - arguments
first responder
to give it someone else - or another object
type - name and value
39. A view is a subclass of _
attributes - behavior
Abstraction
UIView
for inheritance - adopting the superclasses implementation
40. In general - class methods tend to be factory methods - that is...
Instantiation from scratch
Abstraction
selector[message]
methods for generating an instance
41. 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
42. NSString objects are usually sent _ rather than _...
designated initializer
ordered collection of objects - immutable
copy - retain
references to objects
43. Each class picks one _ as it's designated initializer....
view controller
calling code that does the instantiation for you
protocol
initializer
44. Property List...
subview(s)
receiver[message]
the instance variables
collection of collections - NSArray of an NSArray
45. NSSet...
upper
wait until the loop finishes processing the event - at the end release it
message
unordered collection of objects - objects must be unique
46. Defining variables - three parts...
you must import the header file of that class
methods for generating an instance
is called every time the event occurs
type - name and value
47. NSDate - class...
Used to find the time right now or to store past or future time/dates
UIViewController
callbacks
methods for generating an instance
48. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
initializer
callbacks
receiver
49. What does autorelease mean?
do so in viewDidLoad
wait until the loop finishes processing the event - at the end release it
superclass's
implementation
50. if you implemented both the setter and getter - the @synthesize method...
you always return the newly initialized object(return self)
method
will be ignored
references to objects