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. UIView - designated initializer...
superclass's
has one root view controller
(id)initWithFrame:(CGRect)aRect;
self
2. 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
3. UIImageView is used to...
draw images
creates an instance of NSString that holds the character string
superclass's
variable scope - if defined within a block
4. A responder is responsible for...
UIViewController
variable scope - if defined within a block
protocol
receiving and handling events that are associated with it
5. 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
cannot be added to an array
NSCoder
Controller Objects[Managers]
parentViewController
6. Object Oriented based analogue to a function is called a...
setPossessionName
ready-made instances - instantiation from scratch - and nib based instantiation
method
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
7. A method in a _ is required unless its preceded by an @optional.
the message release to all its entries
size and position
pointers
protocol
8. 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 _.
rectangular
references to objects
nil
CGRect bounds - GCPoint center - CGRect frame
9. Values to be supplied as the parameters to the method
class
you must import the header file of that class
arguments[message]
Maintenance of state
10. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
receiver
Controller Objects[Managers]
rectangular
instance variables
11. id is a...
a single-array can contain objects of different types
pointer to an object
type - name and value
message
12. When do you take ownership?...
instance variables
Anytime you call a method with new - alloc or copy. You own and must release that object.
initializers
class
13. In a class method you cannot access...
Encapsulation of functionality
data source - view controller and delegate
the instance variables
copy - retain
14. NSArray - class...
ordered collection of objects - immutable
Abstraction
data source - delegate and view controller
data source - view controller and delegate
15. 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
16. When an object is added to a NSMutableArray - that object is sent the message to retain;...
superclass's
its dataSource
copy - retain
the array becomes an owner of that object and has a pointer to it.
17. In the last line of an init method...
you always return the newly initialized object(return self)
instance of UIView or one of its subclasses
delegates and dataSources
do so in viewDidLoad
18. After accessors have been defined in the header file...
they need to be defined in the implementation file
data source - view controller and delegate
Anytime you call a method with new - alloc or copy. You own and must release that object.
first responder
19. if you implemented both the setter and getter - the @synthesize method...
will be ignored
super - self
protocol
NSBundle
20. A view is an...
pointers
header files declare
instance of UIView or one of its subclasses
values
21. What does autorelease mean?
header files declare
pointers
initializer
wait until the loop finishes processing the event - at the end release it
22. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Controller Objects[Managers]
Instantiation from scratch
selector[message]
data source - view controller and delegate
23. 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
24. Just a floating point number - but we always use it for graphics.
a mechanism to enable specific callbacks
parentViewController
CGFloat
instance
25. If you have extra work you want to do on the view...
ready-made instances - instantiation from scratch - and nib based instantiation
do so in viewDidLoad
NSCoder
Generic object wrapper for other non-object data types
26. A callback is a function that is supplied in advance of an event - and...
methods
is called every time the event occurs
'getters' and 'setters'
do so in viewDidLoad
27. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
(id)initWithFrame:(CGRect)aRect;
create a XIB file
CGRect
28. Class methods typically either create
nil
new instances of the class or retrieve some global property of the class.
CF - Ref
parentViewController
29. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
the instance variables
C Functionn
storage
for inheritance - adopting the superclasses implementation
30. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
you must import the header file of that class
receiver[message]
size and position
31. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
wait until the loop finishes processing the event - at the end release it
define it in the implemenation file
methods
32. Center and frame are used to _ your view
data source - view controller and delegate
initializers
receiver[message]
position
33. @property declares - and _ implements the setter and getter...
@synthesize
a mechanism to enable specific callbacks
ordered collection of objects - immutable
Controller Objects[Managers]
34. In any application with UINavigationController - the navigation controller...
has one root view controller
they need to be defined in the implementation file
methods
group of global functions already assigned to this class
35. super - is used...
accessors - individually we call them 'getters' and 'setters'
viewWillDissapear: and viewWillAppear:
only the class and subclasses can access
for inheritance - adopting the superclasses implementation
36. 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
37. To load a Xib file manually - you use _
alloc - singleton - informational utility method?
the array becomes an owner of that object and has a pointer to it.
You take ownership for an object you want to keep a pointer to
NSBundle
38. If the view has no subviews - create it programmatically; if it has subviews
header files declare
create a XIB file
cannot be added to an array
initializers
39. A message is always contained in square brackets - and has three parts
instance of UIView or one of its subclasses
declaration and initialization of a variable
receiver - selector - arguments
object
40. A command directed to an object is called an...
collection of collections - NSArray of an NSArray
creates an instance of NSString that holds the character string
message
type - name and value
41. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
Generic object wrapper for other non-object data types
class
Is a placeholder object
42. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
instance of UIView or one of its subclasses
receiver
you must import the header file of that class
43. 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
44. Whenever a UINavigationController is about to swap views - it sends out two messages
new instances of the class or retrieve some global property of the class.
a mechanism to enable specific callbacks
viewWillDissapear: and viewWillAppear:
data source - delegate and view controller
45. Reducing details to focus on the core concepts
has one root view controller
pointer - class
Abstraction
will be ignored
46. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
declaration and initialization of a variable
You take ownership for an object you want to keep a pointer to
to get and set variables
47. 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.
its dataSource
first responder
Is a placeholder object
Used to find the time right now or to store past or future time/dates
48. Execution of the break statement...
to get and set variables
cannot be added to an array
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Is a placeholder object
49. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
methods for generating an instance
wait until the loop finishes processing the event - at the end release it
(id)initWithFrame:(CGRect)aRect;
Ready-Made Instance
50. In Cocoa Touch - the table view asks another object _ what it should display...
creates an instance of NSString that holds the character string
its dataSource
in the dealloc - or when a Controller's view is 'unloaded'
data