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. The integer prefix is...
rectangular
%d
CGFloat
view controller's initialization method
2. 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.
unordered collection of objects - objects must be unique
to get and set variables
a single-array can contain objects of different types
instance variables
3. Instance Variables by default are called @protected meaning...
type - name and value
only the class and subclasses can access
instance
pointers
4. Each class picks one _ as it's designated initializer....
class methods - initializers
Hash table - Look up objects using a key to get a value.
CGFloat
initializer
5. Class methods typically either create
for inheritance - adopting the superclasses implementation
new instances of the class or retrieve some global property of the class.
receiver - selector - arguments
subview(s)
6. A view represents a _ area
@interface ClassName:SuperClassName
array[class - NSMutableArray]
rectangular
calling code that does the instantiation for you
7. In Objective C arrays can hold only...
for inheritance - adopting the superclasses implementation
Data Encapsulation
references to objects
subview(s)
8. A message is always contained in square brackets - and has three parts
CGRect
receiver - selector - arguments
retain
Instantiation from scratch
9. Any individual object belonging to any class...
class's
references to objects
is an instance of that class
its dataSource
10. NSSet...
methods
unordered collection of objects - objects must be unique
Controller Objects[Managers]
group of global functions already assigned to this class
11. UIImageView is used to...
draw images
parentViewController
values
type - name and value
12. super - is used...
Generic object wrapper for other non-object data types
for inheritance - adopting the superclasses implementation
storage
receiver - selector - arguments
13. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
define it in the implemenation file
pointers
C Functionn
receiver
14. A callback is a function that is supplied in advance of an event - and...
initializers
is an instance of that class
is called every time the event occurs
data
15. Prefixing a character string with an @ symbol [specific - NSString class]...
receiver - selector - arguments
view controller
Is a placeholder object
creates an instance of NSString that holds the character string
16. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
dealloc - is called on the object & the object's memory is returned to the heap
the array relinquishes ownership of that object and no longer has a pointer to it
a single-array can contain objects of different types
17. 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
do so in viewDidLoad
Maintenance of state
pointers
first responder
18. Also if you send the NSObject the _ message - you own that object.
you always return the newly initialized object(return self)
%d
retain
delegates and dataSources
19. Reducing details to focus on the core concepts
selector[message]
calling code that does the instantiation for you
Abstraction
variable scope - if defined within a block
20. Center and frame are used to _ your view
position
dealloc - is called on the object & the object's memory is returned to the heap
size and position
superclass's
21. NSString *s = @'Hello - World'; is an example of...
creating an initializer
is an instance of that class
only the class and subclasses can access
declaration and initialization of a variable
22. initWithFrame: the designated initializer for UIView gives the view
define it in the implemenation file
self
size and position
message
23. NSString objects are usually sent _ rather than _...
copy - retain
position
object
instance variables
24. [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.
class
Is a placeholder object
CF - Ref
data
25. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
creates an instance of NSString that holds the character string
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Controller Objects[Managers]
a mechanism to enable specific callbacks
26. 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
27. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Ready-Made Instance
delegates and dataSources
class's
Instantiation from scratch
28. 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.
callbacks
creating an initializer
unordered collection of objects - objects must be unique
retain
29. id is a...
pointer to an object
collection of collections - NSArray of an NSArray
C Functionn
size and position
30. Core foundation classes are prefixed with _ and suffixed with _
UIView
CF - Ref
group of global functions already assigned to this class
Object wrapper around primitive types like int - float - double - BOOl
31. Class methods do not operate on an _ or have any access to _ variables....
pointers
instance
arguments[message]
CGFloat
32. Reference Counting...
data source - delegate and view controller
receiver[message]
CGFloat
You take ownership for an object you want to keep a pointer to
33. 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
parentViewController
'getters' and 'setters'
designated initializer
creating an initializer
34. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
subview(s)
designated initializer
You take ownership for an object you want to keep a pointer to
object
35. Delegation is an object oriented approach to
CGRect
attributes - behavior
callbacks
instance variables
36. Views have three properties related to their location and size: @property _ _;
the array becomes an owner of that object and has a pointer to it.
CGRect bounds - GCPoint center - CGRect frame
class
CF - Ref
37. 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
38. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
parentViewController
view
arguments[message]
39. A view is a subclass of _
You take ownership for an object you want to keep a pointer to
setPossessionName
Controller Objects[Managers]
UIView
40. Three ways instances are created...
they need to be defined in the implementation file
ready-made instances - instantiation from scratch - and nib based instantiation
in the dealloc - or when a Controller's view is 'unloaded'
declaration and initialization of a variable
41. Primitives and C Structures...
cannot be added to an array
first responder
CGRect
storage
42. Execution of the break statement...
copy - retain
wait until the loop finishes processing the event - at the end release it
causes the program to immediately exit from the loop it is executing - whether its for - while or do
initializer
43. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
view
Functions
class methods - initializers
instance variables
44. The class is responsible for what instance variables the instance has - but not the _ of those variables.
retain
wait until the loop finishes processing the event - at the end release it
lowercase - uppercase
values
45. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
a mechanism to enable specific callbacks
receiver[message]
instance
@interface ClassName:SuperClassName
46. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
view controller's initialization method
define it in the implemenation file
they need to be defined in the implementation file
47. The root view controller typically creates the next view controller - and the next _ creates the one after that
only the class and subclasses can access
delegates and dataSources
view controller
pointer - class
48. 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
Functions
values
implementation
superclass's
49. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
is an instance of that class
selector[message]
self
size and position
50. 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 _.
initializer
pointer - class
safety - subclassability and makes code look more consistent with C structs
UIViewController