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. Each class picks one _ as it's designated initializer....
attributes - behavior
initializer
safety - subclassability and makes code look more consistent with C structs
will be ignored
2. NSValue - class...
the array becomes an owner of that object and has a pointer to it.
Is a placeholder object
Core Graphics Framework
Generic object wrapper for other non-object data types
3. 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....
define it in the implemenation file
@synthesize
accessors - individually we call them 'getters' and 'setters'
to get and set variables
4. 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
5. 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 _.
CF - Ref
will be ignored
copy - retain
pointer - class
6. @property - is using methods...
creates an instance of NSString that holds the character string
Data Encapsulation
to get and set variables
view controller's initialization method
7. Class methods do not operate on an _ or have any access to _ variables....
CF - Ref
the message release to all its entries
NSBundle
instance
8. 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 _.
variable scope - if defined within a block
copy - retain
creating an initializer
subview(s)
9. 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.
CGRect
creating an initializer
viewWillDissapear: and viewWillAppear:
Is a placeholder object
10. Center and frame are used to _ your view
subview(s)
position
receiving and handling events that are associated with it
%d
11. Values to be supplied as the parameters to the method
super - self
arguments[message]
message
Used to find the time right now or to store past or future time/dates
12. Views have three properties related to their location and size: @property _ _;
selector[message]
parentViewController
CGRect bounds - GCPoint center - CGRect frame
object
13. You use _ to implement the view
You take ownership for an object you want to keep a pointer to
protocol
ordered collection of objects - immutable
CGRect bounds
14. Classes describe two things...
data
attributes - behavior
Anytime you call a method with new - alloc or copy. You own and must release that object.
'getters' and 'setters'
15. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
receiving and handling events that are associated with it
storage
causes the program to immediately exit from the loop it is executing - whether its for - while or do
16. NSSet...
@synthesize
class methods - initializers
pointers
unordered collection of objects - objects must be unique
17. When an NSMutableArray is deallocated - it sends...
data source - delegate and view controller
causes the program to immediately exit from the loop it is executing - whether its for - while or do
the message release to all its entries
message
18. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
pointer to an object
Controller Objects[Managers]
Ready-Made Instance
define it in the implemenation file
19. Origin of a view's coordinate system is _ left
CGRect
method
upper
storage
20. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
initializers
array[class - NSMutableArray]
object
only the class and subclasses can access
21. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
You take ownership for an object you want to keep a pointer to
array[class - NSMutableArray]
designated initializer
receiver
22. 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
callbacks
Maintenance of state
CGFloat
to give it someone else - or another object
23. Execution of the break statement...
designated initializer
is called every time the event occurs
Functions
causes the program to immediately exit from the loop it is executing - whether its for - while or do
24. 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
25. 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...
initializers
CGRect
setPossessionName
a single-array can contain objects of different types
26. When an object is added to a NSMutableArray - that object is sent the message to retain;...
draw images
the array becomes an owner of that object and has a pointer to it.
values
UIView
27. NSString *s = @'Hello - World'; is an example of...
the array relinquishes ownership of that object and no longer has a pointer to it
unordered collection of objects - objects must be unique
declaration and initialization of a variable
copy - retain
28. In general - class methods tend to be factory methods - that is...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
methods for generating an instance
reuse your cells
CGFloat
29. After accessors have been defined in the header file...
selector[message]
they need to be defined in the implementation file
draw images
pointers
30. 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
31. NSDictionary...
object
Hash table - Look up objects using a key to get a value.
the array relinquishes ownership of that object and no longer has a pointer to it
setPossessionName
32. Defining variables - three parts...
type - name and value
CGRect bounds - GCPoint center - CGRect frame
data source - view controller and delegate
array[class - NSMutableArray]
33. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
implementation
initializers
ordered collection of objects - immutable
its dataSource
34. The class is responsible for what instance variables the instance has - but not the _ of those variables.
CGRect bounds - GCPoint center - CGRect frame
arguments[message]
values
receiving and handling events that are associated with it
35. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
only the class and subclasses can access
declaration and initialization of a variable
pointer - class
Controller Objects[Managers]
36. In a class method you cannot access...
the instance variables
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
has one root view controller
to give it someone else - or another object
37. How do I implement my drawRect?
Continue
callbacks
Core Graphics Framework
@synthesize
38. In any application with UINavigationController - the navigation controller...
You take ownership for an object you want to keep a pointer to
copy - retain
header files declare
has one root view controller
39. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
Object wrapper around primitive types like int - float - double - BOOl
group of global functions already assigned to this class
a single-array can contain objects of different types
receiver
40. Object Oriented based analogue to a function is called a...
ready-made instances - instantiation from scratch - and nib based instantiation
Encapsulation of functionality
method
do so in viewDidLoad
41. The integer prefix is...
rectangular
a single-array can contain objects of different types
%d
calling code that does the instantiation for you
42. 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
43. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
data source - delegate and view controller
header files declare
draw images
causes the program to immediately exit from the loop it is executing - whether its for - while or do
44. A collection object - an ordered list of objects that can be accesed by an index
self
array[class - NSMutableArray]
group of global functions already assigned to this class
only the innermost loop in which the break is executed is terminated
45. A _ handles touch events.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
collection of collections - NSArray of an NSArray
methods for generating an instance
view
46. Asking a class or object to execute a method
receiving and handling events that are associated with it
calling code that does the instantiation for you
message
class
47. Reducing details to focus on the core concepts
pointer to an object
Abstraction
methods for generating an instance
they need to be defined in the implementation file
48. If you have extra work you want to do on the view...
do so in viewDidLoad
Object wrapper around primitive types like int - float - double - BOOl
CGFloat
You take ownership for an object you want to keep a pointer to
49. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
size and position
methods for generating an instance
instance variables
50. 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