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. Object Oriented based analogue to a function is called a...
pointer to an object
creating an initializer
method
view controller's initialization method
2. NSSet...
unordered collection of objects - objects must be unique
calling code that does the instantiation for you
only the class and subclasses can access
declaration and initialization of a variable
3. 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
4. @property declares - and _ implements the setter and getter...
superclass's
Object wrapper around primitive types like int - float - double - BOOl
NSCoder
@synthesize
5. Instance Variables by default are called @protected meaning...
define it in the implemenation file
instance
only the class and subclasses can access
CGFloat
6. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
instance variables
is called every time the event occurs
position
C Functionn
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 do not operate on an _ or have any access to _ variables....
accessors - individually we call them 'getters' and 'setters'
Is a placeholder object
CGRect bounds - GCPoint center - CGRect frame
instance
9. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
a single-array can contain objects of different types
@synthesize
nil
10. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
class's
Instantiation from scratch
they need to be defined in the implementation file
(id)initWithFrame:(CGRect)aRect;
11. A responder is responsible for...
receiving and handling events that are associated with it
CGRect bounds
data
they need to be defined in the implementation file
12. if you implemented both the setter and getter - the @synthesize method...
will be ignored
storage
group of global functions already assigned to this class
Model Objects[Factory Worker]
13. The class is responsible for what instance variables the instance has - but not the _ of those variables.
header files declare
you always return the newly initialized object(return self)
creates an instance of NSString that holds the character string
values
14. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
Functions
Controller Objects[Managers]
message
15. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
designated initializer
CGRect
C Functionn
16. How do I implement my drawRect?
delegates and dataSources
instance variable of an object is valid
Core Graphics Framework
create a XIB file
17. To load a Xib file manually - you use _
NSBundle
attributes - behavior
%d
only the innermost loop in which the break is executed is terminated
18. A view is a subclass of _
variable scope - if defined within a block
UIView
delegates and dataSources
data
19. The integer prefix is...
is an instance of that class
Core Graphics Framework
its dataSource
%d
20. Ready-made instances...
copy - retain
pointer to an object
calling code that does the instantiation for you
method
21. Delegation is an object oriented approach to
Ready-Made Instance
only the innermost loop in which the break is executed is terminated
Continue
callbacks
22. NSValue - class...
create a XIB file
Generic object wrapper for other non-object data types
the message release to all its entries
attributes - behavior
23. [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
You take ownership for an object you want to keep a pointer to
CGRect
view
24. In a class method you cannot access...
the array becomes an owner of that object and has a pointer to it.
storage
the instance variables
implementation
25. Proceed through the loop - jump back to the top and check again
alloc - singleton - informational utility method?
the array becomes an owner of that object and has a pointer to it.
superclass's
Continue
26. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
collection of collections - NSArray of an NSArray
message
is an instance of that class
27. Origin of a view's coordinate system is _ left
self
upper
array[class - NSMutableArray]
implementation
28. 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.
you always return the newly initialized object(return self)
class
array[class - NSMutableArray]
Data Encapsulation
29. 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
30. You use _ to implement the view
CGRect bounds
CF - Ref
instance variables
superclass's
31. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
NSLog routine
creating an initializer
is an instance of that class
32. What does autorelease mean?
CGRect bounds
wait until the loop finishes processing the event - at the end release it
copy - retain
protocol
33. Reducing details to focus on the core concepts
to give it someone else - or another object
viewWillDissapear: and viewWillAppear:
new instances of the class or retrieve some global property of the class.
Abstraction
34. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
CGRect bounds
view controller
instance variables
35. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
lowercase - uppercase
only the innermost loop in which the break is executed is terminated
position
36. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
view controller
pointer to an object
create a XIB file
37. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
callbacks
Model Objects[Factory Worker]
array[class - NSMutableArray]
header files declare
38. A message is always contained in square brackets - and has three parts
instance of UIView or one of its subclasses
creating an initializer
receiver - selector - arguments
Generic object wrapper for other non-object data types
39. Use of class methods - there are three...
creating an initializer
reuse your cells
header files declare
alloc - singleton - informational utility method?
40. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the instance variables
first responder
methods
the array becomes an owner of that object and has a pointer to it.
41. 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 _.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
pointer - class
unordered collection of objects - objects must be unique
Ready-Made Instance
42. 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
object
Controller Objects[Managers]
NSCoder
43. Defining variables - three parts...
callbacks
position
type - name and value
is an instance of that class
44. In Objective C arrays can hold only...
references to objects
C Functionn
calling code that does the instantiation for you
instance variables
45. 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....
position
protocol
define it in the implemenation file
data source - view controller and delegate
46. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
NSLog routine
alloc - singleton - informational utility method?
its dataSource
47. A function in the objective c library that simply displays or logs it's argument
create a XIB file
class's
NSLog routine
has one root view controller
48. Property List...
Is a placeholder object
collection of collections - NSArray of an NSArray
NSLog routine
reuse your cells
49. A UITableViewController can fill all three roles of...
data source - view controller and delegate
references to objects
protocol
Generic object wrapper for other non-object data types
50. 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