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. Property List...
has one root view controller
collection of collections - NSArray of an NSArray
define it in the implemenation file
UIViewController
2. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
declaration and initialization of a variable
receiver[message]
will be ignored
3. In general - class methods tend to be factory methods - that is...
safety - subclassability and makes code look more consistent with C structs
CGRect
instance variable of an object is valid
methods for generating an instance
4. 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
the array becomes an owner of that object and has a pointer to it.
values
parentViewController
(id)initWithFrame:(CGRect)aRect;
5. initWithFrame: the designated initializer for UIView gives the view
CF - Ref
values
size and position
only the innermost loop in which the break is executed is terminated
6. The only reason to temporarily own an object - is...
values
implementation
unordered collection of objects - objects must be unique
to give it someone else - or another object
7. In the last line of an init method...
(id)initWithFrame:(CGRect)aRect;
Abstraction
CGRect bounds
you always return the newly initialized object(return self)
8. A pointer to the object being asked to execute a method
message
causes the program to immediately exit from the loop it is executing - whether its for - while or do
methods for generating an instance
receiver[message]
9. Execution of the break statement...
view controller's initialization method
view
designated initializer
causes the program to immediately exit from the loop it is executing - whether its for - while or do
10. Each class picks one _ as it's designated initializer....
declaration and initialization of a variable
initializer
self
new instances of the class or retrieve some global property of the class.
11. A view is an...
instance of UIView or one of its subclasses
calling code that does the instantiation for you
Continue
attributes - behavior
12. A view is a subclass of _
a mechanism to enable specific callbacks
Functions
NSCoder
UIView
13. When an object is added to a NSMutableArray - that object is sent the message to retain;...
methods
storage
you always return the newly initialized object(return self)
the array becomes an owner of that object and has a pointer to it.
14. 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
view controller's initialization method
Maintenance of state
to get and set variables
Instantiation from scratch
15. UIViewController has several methods that get called at certain times...
delegates and dataSources
create a XIB file
super - self
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
16. 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.
Data Encapsulation
array[class - NSMutableArray]
setPossessionName
pointer to an object
17. Use of class methods - there are three...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
object
alloc - singleton - informational utility method?
pointer to an object
18. 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.
Instantiation from scratch
first responder
a single-array can contain objects of different types
you always return the newly initialized object(return self)
19. 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
20. 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
21. NSValue - class...
implementation
Generic object wrapper for other non-object data types
Model Objects[Factory Worker]
callbacks
22. A message is always contained in square brackets - and has three parts
Is a placeholder object
receiver - selector - arguments
data
Model Objects[Factory Worker]
23. A _ handles touch events.
references to objects
creates an instance of NSString that holds the character string
receiver[message]
view
24. You use _ to implement the view
method
CGRect bounds
they need to be defined in the implementation file
CGFloat
25. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
Controller Objects[Managers]
initializers
draw images
26. NSArray - important methods...
position
methods for generating an instance
parentViewController
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
27. After accessors have been defined in the header file...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
retain
CGRect bounds - GCPoint center - CGRect frame
they need to be defined in the implementation file
28. In a class method you cannot access...
ready-made instances - instantiation from scratch - and nib based instantiation
the instance variables
view
in the dealloc - or when a Controller's view is 'unloaded'
29. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
causes the program to immediately exit from the loop it is executing - whether its for - while or do
methods
copy - retain
receiver
30. 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
receiver - selector - arguments
dealloc - is called on the object & the object's memory is returned to the heap
size and position
31. @property - is using methods...
subview(s)
ordered collection of objects - immutable
message
to get and set variables
32. Classes describe two things...
an object's property
delegates and dataSources
receiving and handling events that are associated with it
attributes - behavior
33. Defining variables - three parts...
message
instance
type - name and value
only the innermost loop in which the break is executed is terminated
34. 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 _.
wait until the loop finishes processing the event - at the end release it
C Functionn
pointers
subview(s)
35. A responder is responsible for...
CGRect
receiving and handling events that are associated with it
Model Objects[Factory Worker]
methods
36. Just a floating point number - but we always use it for graphics.
CGFloat
instance variables
you must import the header file of that class
position
37. 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
copy - retain
they need to be defined in the implementation file
unordered collection of objects - objects must be unique
Encapsulation of functionality
38. Also if you send the NSObject the _ message - you own that object.
define it in the implemenation file
retain
@interface ClassName:SuperClassName
declaration and initialization of a variable
39. If a break statement is executed from within a set of nested loops...
pointers
Used to find the time right now or to store past or future time/dates
size and position
only the innermost loop in which the break is executed is terminated
40. [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.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
data
Model Objects[Factory Worker]
do so in viewDidLoad
41. Hold data and know nothing about the user interface
NSBundle
view controller's initialization method
Model Objects[Factory Worker]
UIViewController
42. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Core Graphics Framework
Controller Objects[Managers]
class
43. UIImageView is used to...
pointer - class
draw images
nil
Functions
44. To load a Xib file manually - you use _
declaration and initialization of a variable
NSBundle
upper
only the class and subclasses can access
45. id is a...
Ready-Made Instance
ready-made instances - instantiation from scratch - and nib based instantiation
parentViewController
pointer to an object
46. What does autorelease mean?
CF - Ref
arguments[message]
wait until the loop finishes processing the event - at the end release it
upper
47. UITableViewController is a subclass of...
UIViewController
designated initializer
pointer - class
instance of UIView or one of its subclasses
48. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
do so in viewDidLoad
pointer - class
delegates and dataSources
NSCoder
49. 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
50. A UITableView usually needs three different pieces...
message
is an instance of that class
only the innermost loop in which the break is executed is terminated
data source - delegate and view controller