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. Defining variables - three parts...
view controller
%d
type - name and value
receiver - selector - arguments
2. Why properties?
instance variable of an object is valid
safety - subclassability and makes code look more consistent with C structs
message
NSCoder
3. id is a...
Generic object wrapper for other non-object data types
NSCoder
(id)initWithFrame:(CGRect)aRect;
pointer to an object
4. 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...
(id)initWithFrame:(CGRect)aRect;
wait until the loop finishes processing the event - at the end release it
data source - view controller and delegate
setPossessionName
5. 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
self
receiving and handling events that are associated with it
cannot be added to an array
6. 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
7. You use _ to implement the view
selector[message]
header files declare
CGRect bounds
viewWillDissapear: and viewWillAppear:
8. 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
9. In the last line of an init method...
Encapsulation of functionality
pointer - class
they need to be defined in the implementation file
you always return the newly initialized object(return self)
10. Class methods do not operate on an _ or have any access to _ variables....
the array becomes an owner of that object and has a pointer to it.
instance
message
Generic object wrapper for other non-object data types
11. super - is used...
superclass's
view
has one root view controller
for inheritance - adopting the superclasses implementation
12. Number one use of protocols in iOS...
delegates and dataSources
NSLog routine
parentViewController
the array becomes an owner of that object and has a pointer to it.
13. Classes describe two things...
variable scope - if defined within a block
attributes - behavior
selector[message]
NSBundle
14. A view is a subclass of _
the message release to all its entries
unordered collection of objects - objects must be unique
UIView
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
15. 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.
message
upper
has one root view controller
Data Encapsulation
16. The only reason to temporarily own an object - is...
variable scope - if defined within a block
header files declare
to give it someone else - or another object
instance variables
17. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
@synthesize
C Functionn
callbacks
type - name and value
18. When an object is removed from an NSMutableArray - that object is sent the message release;...
receiver
will be ignored
the array relinquishes ownership of that object and no longer has a pointer to it
Core Graphics Framework
19. Primitives and C Structures...
storage
cannot be added to an array
Continue
data source - delegate and view controller
20. NSNumber - class...
a single-array can contain objects of different types
type - name and value
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Object wrapper around primitive types like int - float - double - BOOl
21. Use of class methods - there are three...
collection of collections - NSArray of an NSArray
alloc - singleton - informational utility method?
ordered collection of objects - immutable
class's
22. initWithFrame: the designated initializer for UIView gives the view
creating an initializer
NSBundle
reuse your cells
size and position
23. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
they need to be defined in the implementation file
Continue
protocol
24. After accessors have been defined in the header file...
they need to be defined in the implementation file
Maintenance of state
upper
unordered collection of objects - objects must be unique
25. Three ways instances are created...
subview(s)
ready-made instances - instantiation from scratch - and nib based instantiation
collection of collections - NSArray of an NSArray
receiver[message]
26. When making a tableView always...
initializer
reuse your cells
subview(s)
is an instance of that class
27. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
@synthesize
instance variable of an object is valid
pointer to an object
28. Only exists within the statement block there defined - outside of the block is fine
group of global functions already assigned to this class
Anytime you call a method with new - alloc or copy. You own and must release that object.
instance
variable scope - if defined within a block
29. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
cannot be added to an array
pointers
class's
30. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
protocol
to give it someone else - or another object
NSCoder
super - self
31. Property List...
(id)initWithFrame:(CGRect)aRect;
'getters' and 'setters'
values
collection of collections - NSArray of an NSArray
32. 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
a single-array can contain objects of different types
methods for generating an instance
the message release to all its entries
Functions
33. Any individual object belonging to any class...
implementation
is an instance of that class
message
Functions
34. @property - is using methods...
to get and set variables
draw images
upper
view controller's initialization method
35. Each class picks one _ as it's designated initializer....
initializer
dealloc - is called on the object & the object's memory is returned to the heap
storage
is called every time the event occurs
36. 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 _.
class's
cannot be added to an array
pointer - class
@interface ClassName:SuperClassName
37. A _ handles touch events.
instance
creating an initializer
Generic object wrapper for other non-object data types
view
38. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
instance variable of an object is valid
lowercase - uppercase
CGRect
pointer - class
39. Proceed through the loop - jump back to the top and check again
Continue
define it in the implemenation file
designated initializer
self
40. Class methods typically either create
CGRect bounds
in the dealloc - or when a Controller's view is 'unloaded'
callbacks
new instances of the class or retrieve some global property of the class.
41. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
calling code that does the instantiation for you
object
alloc - singleton - informational utility method?
super - self
42. If the view has no subviews - create it programmatically; if it has subviews
will be ignored
create a XIB file
Core Graphics Framework
callbacks
43. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.
%d
initializers
nil
a mechanism to enable specific callbacks
44. A pointer to the object being asked to execute a method
to give it someone else - or another object
variable scope - if defined within a block
initializers
receiver[message]
45. Origin of a view's coordinate system is _ left
methods
class
upper
to get and set variables
46. Designated initializer makes sure that every...
instance variable of an object is valid
the instance variables
class's
the array relinquishes ownership of that object and no longer has a pointer to it
47. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
Abstraction
message
references to objects
48. UITableViewController is a subclass of...
UIViewController
Is a placeholder object
data source - delegate and view controller
CGRect bounds
49. For view controllers that are closely related - like a table view controller and its detail view controller - you can simply give them _ that point to each other.
view
retain
C Functionn
instance variables
50. 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.
Abstraction
parentViewController
unordered collection of objects - objects must be unique
implementation