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. Primitives and C Structures...
has one root view controller
arguments[message]
cannot be added to an array
receiver[message]
2. Origin of a view's coordinate system is _ left
class
alloc - singleton - informational utility method?
message
upper
3. An instance is a device for maintaining state. It's a box for _ of data.
CGFloat
in the dealloc - or when a Controller's view is 'unloaded'
class methods - initializers
storage
4. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
alloc - singleton - informational utility method?
CGFloat
NSCoder
5. In Objective C arrays can hold only...
arguments[message]
instance variable of an object is valid
NSLog routine
references to objects
6. You use _ to implement the view
a single-array can contain objects of different types
receiver
CGRect bounds
viewWillDissapear: and viewWillAppear:
7. UIImageView is used to...
for inheritance - adopting the superclasses implementation
initializers
draw images
the array becomes an owner of that object and has a pointer to it.
8. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
NSBundle
subview(s)
draw images
9. To load a Xib file manually - you use _
collection of collections - NSArray of an NSArray
data source - delegate and view controller
class's
NSBundle
10. We can use dot notation to reference...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
11. Three ways instances are created...
pointer to an object
unordered collection of objects - objects must be unique
ready-made instances - instantiation from scratch - and nib based instantiation
rectangular
12. Reference Counting...
You take ownership for an object you want to keep a pointer to
to give it someone else - or another object
first responder
initializers
13. Categories are an Objective C way to add _ to an existing class without subclassing
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
size and position
data source - delegate and view controller
methods
14. A callback is a function that is supplied in advance of an event - and...
its dataSource
is called every time the event occurs
NSCoder
collection of collections - NSArray of an NSArray
15. Ready-made instances...
calling code that does the instantiation for you
Functions
instance variables
causes the program to immediately exit from the loop it is executing - whether its for - while or do
16. A UITableViewController can fill all three roles of...
methods
a single-array can contain objects of different types
NSBundle
data source - view controller and delegate
17. 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.
instance variables
the array becomes an owner of that object and has a pointer to it.
receiving and handling events that are associated with it
only the class and subclasses can access
18. A view is an...
instance variables
self
instance of UIView or one of its subclasses
size and position
19. Each _ has a 'designated' initializer method....
causes the program to immediately exit from the loop it is executing - whether its for - while or do
collection of collections - NSArray of an NSArray
class
they need to be defined in the implementation file
20. @property declares - and _ implements the setter and getter...
safety - subclassability and makes code look more consistent with C structs
instance variables
data source - view controller and delegate
@synthesize
21. 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.
setPossessionName
alloc - singleton - informational utility method?
implementation
receiver[message]
22. In any application with UINavigationController - the navigation controller...
has one root view controller
header files declare
type - name and value
the instance variables
23. Designated initializer makes sure that every...
viewWillDissapear: and viewWillAppear:
instance variable of an object is valid
receiver[message]
you always return the newly initialized object(return self)
24. If the view has no subviews - create it programmatically; if it has subviews
calling code that does the instantiation for you
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
create a XIB file
view controller
25. Defining variables - three parts...
new instances of the class or retrieve some global property of the class.
they need to be defined in the implementation file
type - name and value
Controller Objects[Managers]
26. NSString objects are usually sent _ rather than _...
you always return the newly initialized object(return self)
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
copy - retain
nil
27. 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
Generic object wrapper for other non-object data types
creating an initializer
UIViewController
Functions
28. Classes describe two things...
@synthesize
attributes - behavior
position
data source - delegate and view controller
29. Class methods do not operate on an _ or have any access to _ variables....
a mechanism to enable specific callbacks
methods for generating an instance
instance
an object's property
30. 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
31. 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
32. When an NSMutableArray is deallocated - it sends...
new instances of the class or retrieve some global property of the class.
the message release to all its entries
subview(s)
Ready-Made Instance
33. 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
'getters' and 'setters'
cannot be added to an array
Encapsulation of functionality
CGRect
34. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
Encapsulation of functionality
receiver
creating an initializer
storage
35. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
ready-made instances - instantiation from scratch - and nib based instantiation
viewWillDissapear: and viewWillAppear:
(id)initWithFrame:(CGRect)aRect;
Ready-Made Instance
36. A function in the objective c library that simply displays or logs it's argument
you always return the newly initialized object(return self)
Ready-Made Instance
CGRect
NSLog routine
37. 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 _.
cannot be added to an array
C Functionn
group of global functions already assigned to this class
nil
38. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.
Ready-Made Instance
for inheritance - adopting the superclasses implementation
subview(s)
data
39. 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.
creating an initializer
NSCoder
the array becomes an owner of that object and has a pointer to it.
retain
40. A view represents a _ area
designated initializer
Is a placeholder object
instance variables
rectangular
41. 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....
setPossessionName
define it in the implemenation file
array[class - NSMutableArray]
nil
42. Property List...
C Functionn
collection of collections - NSArray of an NSArray
class
first responder
43. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
new instances of the class or retrieve some global property of the class.
lowercase - uppercase
an object's property
the instance variables
44. 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
'getters' and 'setters'
Continue
Controller Objects[Managers]
parentViewController
45. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
variable scope - if defined within a block
instance variable of an object is valid
they need to be defined in the implementation file
46. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
is an instance of that class
in the dealloc - or when a Controller's view is 'unloaded'
position
47. If you have extra work you want to do on the view...
do so in viewDidLoad
Generic object wrapper for other non-object data types
Is a placeholder object
accessors - individually we call them 'getters' and 'setters'
48. What does autorelease mean?
initializers
wait until the loop finishes processing the event - at the end release it
%d
you must import the header file of that class
49. 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
50. Also if you send the NSObject the _ message - you own that object.
protocol
data source - delegate and view controller
retain
they need to be defined in the implementation file