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. @property declares - and _ implements the setter and getter...
will be ignored
@synthesize
%d
wait until the loop finishes processing the event - at the end release it
2. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
@synthesize
first responder
pointer to an object
C Functionn
3. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
CGRect bounds
C Functionn
size and position
@interface ClassName:SuperClassName
4. Center and frame are used to _ your view
for inheritance - adopting the superclasses implementation
Anytime you call a method with new - alloc or copy. You own and must release that object.
position
Abstraction
5. Proceed through the loop - jump back to the top and check again
designated initializer
data source - view controller and delegate
Continue
the array relinquishes ownership of that object and no longer has a pointer to it
6. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
'getters' and 'setters'
is an instance of that class
NSBundle
7. 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
view controller's initialization method
parentViewController
references to objects
you always return the newly initialized object(return self)
8. The integer prefix is...
%d
array[class - NSMutableArray]
message
has one root view controller
9. Number one use of protocols in iOS...
only the class and subclasses can access
(id)initWithFrame:(CGRect)aRect;
view controller
delegates and dataSources
10. Property List...
collection of collections - NSArray of an NSArray
array[class - NSMutableArray]
will be ignored
receiving and handling events that are associated with it
11. What does autorelease mean?
upper
wait until the loop finishes processing the event - at the end release it
a single-array can contain objects of different types
'getters' and 'setters'
12. @property - is using methods...
to get and set variables
Object wrapper around primitive types like int - float - double - BOOl
wait until the loop finishes processing the event - at the end release it
Ready-Made Instance
13. A view is an...
a single-array can contain objects of different types
instance of UIView or one of its subclasses
CF - Ref
receiver[message]
14. 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
cannot be added to an array
protocol
Functions
storage
15. Each class picks one _ as it's designated initializer....
initializer
arguments[message]
receiver - selector - arguments
superclass's
16. The root view controller typically creates the next view controller - and the next _ creates the one after that
variable scope - if defined within a block
view controller
viewWillDissapear: and viewWillAppear:
Abstraction
17. 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.
they need to be defined in the implementation file
Data Encapsulation
group of global functions already assigned to this class
its dataSource
18. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
rectangular
%d
setPossessionName
19. Views have three properties related to their location and size: @property _ _;
UIView
receiver
CGRect bounds - GCPoint center - CGRect frame
a single-array can contain objects of different types
20. Why properties?
Continue
message
safety - subclassability and makes code look more consistent with C structs
view
21. NSDictionary...
pointer - class
Hash table - Look up objects using a key to get a value.
nil
will be ignored
22. 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
23. A callback is a function that is supplied in advance of an event - and...
UIViewController
Core Graphics Framework
parentViewController
is called every time the event occurs
24. If you have extra work you want to do on the view...
superclass's
do so in viewDidLoad
designated initializer
copy - retain
25. A function in the objective c library that simply displays or logs it's argument
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
a single-array can contain objects of different types
pointer - class
NSLog routine
26. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Used to find the time right now or to store past or future time/dates
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
27. Class methods typically either create
a single-array can contain objects of different types
Generic object wrapper for other non-object data types
an object's property
new instances of the class or retrieve some global property of the class.
28. 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....
alloc - singleton - informational utility method?
to get and set variables
define it in the implemenation file
its dataSource
29. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
implementation
causes the program to immediately exit from the loop it is executing - whether its for - while or do
position
the instance variables
30. super - is used...
Maintenance of state
protocol
for inheritance - adopting the superclasses implementation
the array relinquishes ownership of that object and no longer has a pointer to it
31. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
class's
NSBundle
NSCoder
%d
32. UITableViewController is a subclass of...
is called every time the event occurs
UIView
variable scope - if defined within a block
UIViewController
33. Each _ has a 'designated' initializer method....
class
has one root view controller
UIViewController
causes the program to immediately exit from the loop it is executing - whether its for - while or do
34. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
superclass's
NSBundle
reuse your cells
35. A method in a _ is required unless its preceded by an @optional.
Object wrapper around primitive types like int - float - double - BOOl
copy - retain
the instance variables
protocol
36. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
pointer - class
Continue
Controller Objects[Managers]
Anytime you call a method with new - alloc or copy. You own and must release that object.
37. UIImageView is used to...
Generic object wrapper for other non-object data types
draw images
is called every time the event occurs
creates an instance of NSString that holds the character string
38. Designated initializer makes sure that every...
Generic object wrapper for other non-object data types
accessors - individually we call them 'getters' and 'setters'
Data Encapsulation
instance variable of an object is valid
39. 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.
first responder
you always return the newly initialized object(return self)
Functions
data source - delegate and view controller
40. A UITableViewController can fill all three roles of...
pointer to an object
they need to be defined in the implementation file
data source - view controller and delegate
CGRect bounds
41. Primitives and C Structures...
is called every time the event occurs
the array relinquishes ownership of that object and no longer has a pointer to it
view controller
cannot be added to an array
42. Files Owner...
you must import the header file of that class
UIViewController
unordered collection of objects - objects must be unique
Is a placeholder object
43. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
@synthesize
Ready-Made Instance
declaration and initialization of a variable
to get and set variables
44. In general - class methods tend to be factory methods - that is...
only the innermost loop in which the break is executed is terminated
upper
accessors - individually we call them 'getters' and 'setters'
methods for generating an instance
45. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
safety - subclassability and makes code look more consistent with C structs
the array relinquishes ownership of that object and no longer has a pointer to it
arguments[message]
46. 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
47. Never access a view controller's view in that...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
48. After accessors have been defined in the header file...
calling code that does the instantiation for you
they need to be defined in the implementation file
instance variables
receiver - selector - arguments
49. Ready-made instances...
the array becomes an owner of that object and has a pointer to it.
calling code that does the instantiation for you
has one root view controller
define it in the implemenation file
50. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
instance
Instantiation from scratch
instance variable of an object is valid
setPossessionName