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 object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Abstraction
Encapsulation of functionality
array[class - NSMutableArray]
2. NSArray - class...
(id)initWithFrame:(CGRect)aRect;
ordered collection of objects - immutable
CGRect
dealloc - is called on the object & the object's memory is returned to the heap
3. A responder is responsible for...
methods for generating an instance
receiving and handling events that are associated with it
self
Maintenance of state
4. 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
designated initializer
creating an initializer
calling code that does the instantiation for you
5. A command directed to an object is called an...
message
Anytime you call a method with new - alloc or copy. You own and must release that object.
You take ownership for an object you want to keep a pointer to
has one root view controller
6. 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
7. The integer prefix is...
method
'getters' and 'setters'
Instantiation from scratch
%d
8. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
position
retain
Instantiation from scratch
9. Primitives and C Structures...
type - name and value
is an instance of that class
wait until the loop finishes processing the event - at the end release it
cannot be added to an array
10. Just a floating point number - but we always use it for graphics.
Maintenance of state
CGFloat
creating an initializer
size and position
11. Typically the designated initializer has parameters for the most important and frequently used _ of an object
collection of collections - NSArray of an NSArray
receiving and handling events that are associated with it
you must import the header file of that class
instance variables
12. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
is called every time the event occurs
receiving and handling events that are associated with it
'getters' and 'setters'
13. class methods...
arguments[message]
will be ignored
class methods - initializers
group of global functions already assigned to this class
14. Classes describe two things...
(id)initWithFrame:(CGRect)aRect;
arguments[message]
attributes - behavior
storage
15. UIImageView is used to...
instance variables
draw images
will be ignored
is an instance of that class
16. A message is always contained in square brackets - and has three parts
rectangular
attributes - behavior
receiver - selector - arguments
values
17. NSString *s = @'Hello - World'; is an example of...
copy - retain
declaration and initialization of a variable
upper
accessors - individually we call them 'getters' and 'setters'
18. Each class picks one _ as it's designated initializer....
group of global functions already assigned to this class
methods
initializer
class's
19. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
method
view controller's initialization method
attributes - behavior
initializers
20. Any individual object belonging to any class...
Core Graphics Framework
setPossessionName
is an instance of that class
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
21. Whenever a UINavigationController is about to swap views - it sends out two messages
You take ownership for an object you want to keep a pointer to
viewWillDissapear: and viewWillAppear:
in the dealloc - or when a Controller's view is 'unloaded'
is an instance of that class
22. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class's
the array relinquishes ownership of that object and no longer has a pointer to it
references to objects
class methods - initializers
23. A pointer to the object being asked to execute a method
to get and set variables
receiver[message]
superclass's
you must import the header file of that class
24. 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.
initializer
CGFloat
Generic object wrapper for other non-object data types
first responder
25. 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
26. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
Continue
'getters' and 'setters'
type - name and value
27. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
parentViewController
the array relinquishes ownership of that object and no longer has a pointer to it
Functions
designated initializer
28. Only exists within the statement block there defined - outside of the block is fine
group of global functions already assigned to this class
setPossessionName
variable scope - if defined within a block
NSLog routine
29. An instance is a device for maintaining state. It's a box for _ of data.
will be ignored
storage
class's
type - name and value
30. Object Oriented based analogue to a function is called a...
ready-made instances - instantiation from scratch - and nib based instantiation
only the innermost loop in which the break is executed is terminated
method
subview(s)
31. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
collection of collections - NSArray of an NSArray
ready-made instances - instantiation from scratch - and nib based instantiation
its dataSource
object
32. Class methods typically either create
pointer to an object
data
new instances of the class or retrieve some global property of the class.
instance variables
33. Reference Counting...
Data Encapsulation
You take ownership for an object you want to keep a pointer to
draw images
super - self
34. Values to be supplied as the parameters to the method
instance variable of an object is valid
Object wrapper around primitive types like int - float - double - BOOl
arguments[message]
the message release to all its entries
35. Core foundation classes are prefixed with _ and suffixed with _
UIView
CF - Ref
view controller
initializer
36. id is a...
alloc - singleton - informational utility method?
Functions
data source - delegate and view controller
pointer to an object
37. Defining variables - three parts...
initializer
Instantiation from scratch
type - name and value
declaration and initialization of a variable
38. 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.
CGRect bounds - GCPoint center - CGRect frame
to give it someone else - or another object
you must import the header file of that class
implementation
39. [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
receiver
%d
the array becomes an owner of that object and has a pointer to it.
40. initWithFrame: the designated initializer for UIView gives the view
data source - delegate and view controller
size and position
define it in the implemenation file
do so in viewDidLoad
41. Delegation is an object oriented approach to
'getters' and 'setters'
(id)initWithFrame:(CGRect)aRect;
an object's property
callbacks
42. A UITableView usually needs three different pieces...
data source - delegate and view controller
Core Graphics Framework
header files declare
'getters' and 'setters'
43. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
CF - Ref
will be ignored
subview(s)
NSCoder
44. When an object is removed from an NSMutableArray - that object is sent the message release;...
implementation
the array relinquishes ownership of that object and no longer has a pointer to it
Instantiation from scratch
pointers
45. A view is a subclass of _
UIView
Anytime you call a method with new - alloc or copy. You own and must release that object.
reuse your cells
parentViewController
46. Instance Variables by default are called @protected meaning...
is called every time the event occurs
@synthesize
class's
only the class and subclasses can access
47. A view represents a _ area
rectangular
instance variables
creates an instance of NSString that holds the character string
initializer
48. Name of the method to be executed
selector[message]
upper
create a XIB file
instance
49. NSString objects are usually sent _ rather than _...
copy - retain
class's
pointer to an object
collection of collections - NSArray of an NSArray
50. At the top of any implementation file...
CGFloat
declaration and initialization of a variable
array[class - NSMutableArray]
you must import the header file of that class