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. 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
2. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
CGFloat
in the dealloc - or when a Controller's view is 'unloaded'
methods
3. Values to be supplied as the parameters to the method
position
size and position
arguments[message]
only the class and subclasses can access
4. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
to get and set variables
receiver[message]
you must import the header file of that class
5. 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
6. In Objective C arrays can hold only...
creates an instance of NSString that holds the character string
references to objects
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
callbacks
7. An instance is a device for maintaining state. It's a box for _ of data.
CGRect
designated initializer
accessors - individually we call them 'getters' and 'setters'
storage
8. Center and frame are used to _ your view
position
instance variables
pointers
has one root view controller
9. In the last line of an init method...
do so in viewDidLoad
Generic object wrapper for other non-object data types
you always return the newly initialized object(return self)
will be ignored
10. Each _ has a 'designated' initializer method....
is an instance of that class
you must import the header file of that class
references to objects
class
11. If you have extra work you want to do on the view...
Core Graphics Framework
its dataSource
do so in viewDidLoad
alloc - singleton - informational utility method?
12. A function in the objective c library that simply displays or logs it's argument
instance variable of an object is valid
unordered collection of objects - objects must be unique
instance variables
NSLog routine
13. 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
14. 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.
@synthesize
designated initializer
implementation
self
15. Primitives and C Structures...
ordered collection of objects - immutable
@synthesize
cannot be added to an array
subview(s)
16. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
CGRect bounds - GCPoint center - CGRect frame
cannot be added to an array
You take ownership for an object you want to keep a pointer to
17. Designated initializer makes sure that every...
message
calling code that does the instantiation for you
in the dealloc - or when a Controller's view is 'unloaded'
instance variable of an object is valid
18. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
header files declare
instance variables
delegates and dataSources
19. Instance Variables by default are called @protected meaning...
the message release to all its entries
%d
only the class and subclasses can access
receiver[message]
20. Property List...
instance variables
collection of collections - NSArray of an NSArray
is an instance of that class
class methods - initializers
21. Views have three properties related to their location and size: @property _ _;
has one root view controller
method
for inheritance - adopting the superclasses implementation
CGRect bounds - GCPoint center - CGRect frame
22. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
(id)initWithFrame:(CGRect)aRect;
instance variables
values
class methods - initializers
23. When an object is removed from an NSMutableArray - that object is sent the message release;...
define it in the implemenation file
reuse your cells
Controller Objects[Managers]
the array relinquishes ownership of that object and no longer has a pointer to it
24. Files Owner...
Is a placeholder object
an object's property
CGFloat
NSBundle
25. class methods...
the array relinquishes ownership of that object and no longer has a pointer to it
Abstraction
alloc - singleton - informational utility method?
group of global functions already assigned to this class
26. Hold data and know nothing about the user interface
Core Graphics Framework
UIView
Model Objects[Factory Worker]
the array becomes an owner of that object and has a pointer to it.
27. The root view controller typically creates the next view controller - and the next _ creates the one after that
safety - subclassability and makes code look more consistent with C structs
view controller
UIView
class
28. 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
array[class - NSMutableArray]
cannot be added to an array
Encapsulation of functionality
29. NSString objects are usually sent _ rather than _...
viewWillDissapear: and viewWillAppear:
copy - retain
new instances of the class or retrieve some global property of the class.
calling code that does the instantiation for you
30. Prefixing a character string with an @ symbol [specific - NSString class]...
NSLog routine
UIViewController
creates an instance of NSString that holds the character string
@interface ClassName:SuperClassName
31. 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 _.
pointer - class
data
variable scope - if defined within a block
first responder
32. A view represents a _ area
dealloc - is called on the object & the object's memory is returned to the heap
C Functionn
cannot be added to an array
rectangular
33. A message is always contained in square brackets - and has three parts
CGFloat
Model Objects[Factory Worker]
receiver - selector - arguments
view controller
34. super - is used...
initializers
causes the program to immediately exit from the loop it is executing - whether its for - while or do
self
for inheritance - adopting the superclasses implementation
35. Use of class methods - there are three...
class's
setPossessionName
alloc - singleton - informational utility method?
accessors - individually we call them 'getters' and 'setters'
36. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
view
@interface ClassName:SuperClassName
Model Objects[Factory Worker]
Generic object wrapper for other non-object data types
37. 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
38. NSString *s = @'Hello - World'; is an example of...
size and position
data source - view controller and delegate
declaration and initialization of a variable
receiver
39. How do I implement my drawRect?
ordered collection of objects - immutable
Core Graphics Framework
nil
storage
40. NSArray - important methods...
will be ignored
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
wait until the loop finishes processing the event - at the end release it
class methods - initializers
41. id is a...
receiving and handling events that are associated with it
'getters' and 'setters'
pointer to an object
nil
42. NSNumber - class...
do so in viewDidLoad
cannot be added to an array
@synthesize
Object wrapper around primitive types like int - float - double - BOOl
43. 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....
CGRect
define it in the implemenation file
the array becomes an owner of that object and has a pointer to it.
the message release to all its entries
44. 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
45. Ready-made instances...
alloc - singleton - informational utility method?
safety - subclassability and makes code look more consistent with C structs
calling code that does the instantiation for you
message
46. Class methods typically either create
the array relinquishes ownership of that object and no longer has a pointer to it
'getters' and 'setters'
new instances of the class or retrieve some global property of the class.
storage
47. The class is responsible for what instance variables the instance has - but not the _ of those variables.
'getters' and 'setters'
Encapsulation of functionality
implementation
values
48. 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.
(id)initWithFrame:(CGRect)aRect;
self
49. What does autorelease mean?
Object wrapper around primitive types like int - float - double - BOOl
CGRect
declaration and initialization of a variable
wait until the loop finishes processing the event - at the end release it
50. All objects are accessed using...
selector[message]
is an instance of that class
collection of collections - NSArray of an NSArray
pointers