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...
array[class - NSMutableArray]
you must import the header file of that class
C Functionn
cannot be added to an array
2. To load a Xib file manually - you use _
CGFloat
selector[message]
NSBundle
size and position
3. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
storage
pointers
C Functionn
dealloc - is called on the object & the object's memory is returned to the heap
4. If a break statement is executed from within a set of nested loops...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
protocol
Model Objects[Factory Worker]
only the innermost loop in which the break is executed is terminated
5. Class methods typically either create
to get and set variables
the instance variables
new instances of the class or retrieve some global property of the class.
object
6. 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 _.
to get and set variables
pointer - class
the array relinquishes ownership of that object and no longer has a pointer to it
Functions
7. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
NSCoder
view controller
is an instance of that class
8. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
instance variable of an object is valid
initializer
reuse your cells
9. NSDictionary...
subview(s)
creating an initializer
Hash table - Look up objects using a key to get a value.
Data Encapsulation
10. 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
11. 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 _.
Generic object wrapper for other non-object data types
nil
pointer - class
Functions
12. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
method
storage
calling code that does the instantiation for you
13. 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.
for inheritance - adopting the superclasses implementation
instance variables
draw images
data source - view controller and delegate
14. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
methods
wait until the loop finishes processing the event - at the end release it
data
15. A collection object - an ordered list of objects that can be accesed by an index
message
a single-array can contain objects of different types
receiving and handling events that are associated with it
array[class - NSMutableArray]
16. Classes describe two things...
storage
attributes - behavior
CGRect
ready-made instances - instantiation from scratch - and nib based instantiation
17. If the view has no subviews - create it programmatically; if it has subviews
is an instance of that class
Encapsulation of functionality
define it in the implemenation file
create a XIB file
18. 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 _.
NSBundle
instance variables
subview(s)
copy - retain
19. Values to be supplied as the parameters to the method
Continue
arguments[message]
Model Objects[Factory Worker]
Controller Objects[Managers]
20. 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.
new instances of the class or retrieve some global property of the class.
methods
Data Encapsulation
the instance variables
21. 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
has one root view controller
unordered collection of objects - objects must be unique
implementation
parentViewController
22. A UITableViewController can fill all three roles of...
NSLog routine
CGFloat
Model Objects[Factory Worker]
data source - view controller and delegate
23. Execution of the break statement...
subview(s)
header files declare
Used to find the time right now or to store past or future time/dates
causes the program to immediately exit from the loop it is executing - whether its for - while or do
24. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
group of global functions already assigned to this class
is an instance of that class
create a XIB file
25. @property - is using methods...
to get and set variables
variable scope - if defined within a block
header files declare
pointers
26. 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
draw images
values
an object's property
27. Only exists within the statement block there defined - outside of the block is fine
pointers
alloc - singleton - informational utility method?
attributes - behavior
variable scope - if defined within a block
28. Delegation is an object oriented approach to
message
Ready-Made Instance
callbacks
Object wrapper around primitive types like int - float - double - BOOl
29. When making a tableView always...
you must import the header file of that class
attributes - behavior
reuse your cells
Functions
30. In Cocoa Touch - the table view asks another object _ what it should display...
will be ignored
Continue
callbacks
its dataSource
31. Prefixing a character string with an @ symbol [specific - NSString class]...
position
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
Hash table - Look up objects using a key to get a value.
32. Object Oriented based analogue to a function is called a...
data source - delegate and view controller
Continue
callbacks
method
33. Property List...
a mechanism to enable specific callbacks
collection of collections - NSArray of an NSArray
CGRect bounds
attributes - behavior
34. Each class picks one _ as it's designated initializer....
pointer - class
initializer
group of global functions already assigned to this class
dealloc - is called on the object & the object's memory is returned to the heap
35. In any application with UINavigationController - the navigation controller...
the message release to all its entries
has one root view controller
ready-made instances - instantiation from scratch - and nib based instantiation
dealloc - is called on the object & the object's memory is returned to the heap
36. 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
37. A view is an...
instance of UIView or one of its subclasses
class's
parentViewController
to get and set variables
38. Ready-made instances...
calling code that does the instantiation for you
receiving and handling events that are associated with it
receiver - selector - arguments
UIView
39. A UITableView usually needs three different pieces...
a mechanism to enable specific callbacks
methods
has one root view controller
data source - delegate and view controller
40. NSValue - class...
C Functionn
delegates and dataSources
Generic object wrapper for other non-object data types
Controller Objects[Managers]
41. The only reason to temporarily own an object - is...
to give it someone else - or another object
position
pointer - class
selector[message]
42. When do we need to release our outlets?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
43. You use _ to implement the view
a mechanism to enable specific callbacks
position
CGRect bounds
@synthesize
44. Name of the method to be executed
selector[message]
viewWillDissapear: and viewWillAppear:
view controller
initializer
45. A function in the objective c library that simply displays or logs it's argument
header files declare
values
NSLog routine
storage
46. Files Owner...
Is a placeholder object
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
NSBundle
values
47. What does autorelease mean?
UIView
view controller
wait until the loop finishes processing the event - at the end release it
unordered collection of objects - objects must be unique
48. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
its dataSource
calling code that does the instantiation for you
you must import the header file of that class
receiver
49. class methods...
will be ignored
lowercase - uppercase
group of global functions already assigned to this class
receiving and handling events that are associated with it
50. 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.
view controller
Is a placeholder object
first responder
setPossessionName