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. Values to be supplied as the parameters to the method
arguments[message]
You take ownership for an object you want to keep a pointer to
data
Core Graphics Framework
2. A function in the objective c library that simply displays or logs it's argument
self
selector[message]
Used to find the time right now or to store past or future time/dates
NSLog routine
3. Execution of the break statement...
UIViewController
NSCoder
NSLog routine
causes the program to immediately exit from the loop it is executing - whether its for - while or do
4. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Encapsulation of functionality
causes the program to immediately exit from the loop it is executing - whether its for - while or do
setPossessionName
Instantiation from scratch
5. NSDate - class...
retain
Used to find the time right now or to store past or future time/dates
%d
selector[message]
6. Also - because arrays only hold a pointer to an object...
instance variables
position
a single-array can contain objects of different types
wait until the loop finishes processing the event - at the end release it
7. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
to get and set variables
object
new instances of the class or retrieve some global property of the class.
setPossessionName
8. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
ordered collection of objects - immutable
declaration and initialization of a variable
accessors - individually we call them 'getters' and 'setters'
9. 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 _.
view controller's initialization method
subview(s)
data
instance of UIView or one of its subclasses
10. Name of the method to be executed
selector[message]
@synthesize
only the class and subclasses can access
class methods - initializers
11. 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.
storage
size and position
implementation
viewWillDissapear: and viewWillAppear:
12. Each class picks one _ as it's designated initializer....
UIViewController
methods
has one root view controller
initializer
13. 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
data source - view controller and delegate
parentViewController
Object wrapper around primitive types like int - float - double - BOOl
CF - Ref
14. If a break statement is executed from within a set of nested loops...
instance of UIView or one of its subclasses
only the innermost loop in which the break is executed is terminated
unordered collection of objects - objects must be unique
a mechanism to enable specific callbacks
15. What does autorelease mean?
methods for generating an instance
wait until the loop finishes processing the event - at the end release it
you always return the newly initialized object(return self)
designated initializer
16. 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
17. Files Owner...
Is a placeholder object
define it in the implemenation file
receiving and handling events that are associated with it
NSLog routine
18. You use _ to implement the view
Controller Objects[Managers]
CGRect bounds
CGRect bounds - GCPoint center - CGRect frame
alloc - singleton - informational utility method?
19. Whenever a UINavigationController is about to swap views - it sends out two messages
to give it someone else - or another object
Hash table - Look up objects using a key to get a value.
viewWillDissapear: and viewWillAppear:
methods
20. NSArray - important methods...
message
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
implementation
receiver[message]
21. Typically the designated initializer has parameters for the most important and frequently used _ of an object
pointers
to give it someone else - or another object
'getters' and 'setters'
instance variables
22. To load a Xib file manually - you use _
NSBundle
Is a placeholder object
an object's property
dealloc - is called on the object & the object's memory is returned to the heap
23. UITableViewController is a subclass of...
@synthesize
UIViewController
self
declaration and initialization of a variable
24. In any application with UINavigationController - the navigation controller...
CGRect
has one root view controller
view
array[class - NSMutableArray]
25. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
retain
designated initializer
C Functionn
26. Only exists within the statement block there defined - outside of the block is fine
data source - view controller and delegate
Abstraction
its dataSource
variable scope - if defined within a block
27. Use of class methods - there are three...
calling code that does the instantiation for you
view controller's initialization method
alloc - singleton - informational utility method?
has one root view controller
28. Center and frame are used to _ your view
retain
data source - delegate and view controller
NSLog routine
position
29. Defining variables - three parts...
draw images
CGRect bounds - GCPoint center - CGRect frame
header files declare
type - name and value
30. In a class method you cannot access...
@interface ClassName:SuperClassName
Encapsulation of functionality
declaration and initialization of a variable
the instance variables
31. A view represents a _ area
rectangular
creates an instance of NSString that holds the character string
define it in the implemenation file
collection of collections - NSArray of an NSArray
32. if you implemented both the setter and getter - the @synthesize method...
a single-array can contain objects of different types
only the innermost loop in which the break is executed is terminated
will be ignored
they need to be defined in the implementation file
33. 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
34. Three ways instances are created...
(id)initWithFrame:(CGRect)aRect;
rectangular
ready-made instances - instantiation from scratch - and nib based instantiation
only the class and subclasses can access
35. class methods...
references to objects
group of global functions already assigned to this class
nil
an object's property
36. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
%d
for inheritance - adopting the superclasses implementation
declaration and initialization of a variable
lowercase - uppercase
37. An instance is a device for maintaining state. It's a box for _ of data.
copy - retain
alloc - singleton - informational utility method?
instance variable of an object is valid
storage
38. A callback is a function that is supplied in advance of an event - and...
callbacks
is called every time the event occurs
accessors - individually we call them 'getters' and 'setters'
methods for generating an instance
39. Classes describe two things...
Used to find the time right now or to store past or future time/dates
you must import the header file of that class
attributes - behavior
data source - delegate and view controller
40. NSArray - class...
ordered collection of objects - immutable
object
instance
collection of collections - NSArray of an NSArray
41. Designated initializer makes sure that every...
instance variable of an object is valid
data source - view controller and delegate
designated initializer
NSLog routine
42. A message is always contained in square brackets - and has three parts
wait until the loop finishes processing the event - at the end release it
data source - delegate and view controller
receiver - selector - arguments
callbacks
43. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
CGRect bounds
they need to be defined in the implementation file
Functions
Ready-Made Instance
44. A command directed to an object is called an...
Abstraction
data
message
draw images
45. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
create a XIB file
Ready-Made Instance
an object's property
Controller Objects[Managers]
46. Property List...
collection of collections - NSArray of an NSArray
data
nil
view
47. A responder is responsible for...
Data Encapsulation
dealloc - is called on the object & the object's memory is returned to the heap
Object wrapper around primitive types like int - float - double - BOOl
receiving and handling events that are associated with it
48. The root view controller typically creates the next view controller - and the next _ creates the one after that
an object's property
you always return the newly initialized object(return self)
view controller
type - name and value
49. NSValue - class...
size and position
data source - delegate and view controller
NSCoder
Generic object wrapper for other non-object data types
50. A collection object - an ordered list of objects that can be accesed by an index
%d
Instantiation from scratch
CF - Ref
array[class - NSMutableArray]