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. A view represents a _ area
rectangular
variable scope - if defined within a block
viewWillDissapear: and viewWillAppear:
Is a placeholder object
2. NSString *s = @'Hello - World'; is an example of...
class's
accessors - individually we call them 'getters' and 'setters'
declaration and initialization of a variable
variable scope - if defined within a block
3. Property List...
parentViewController
collection of collections - NSArray of an NSArray
a single-array can contain objects of different types
header files declare
4. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
%d
Ready-Made Instance
UIView
view
5. In the last line of an init method...
@interface ClassName:SuperClassName
CGRect bounds
data
you always return the newly initialized object(return self)
6. Use of class methods - there are three...
Maintenance of state
alloc - singleton - informational utility method?
calling code that does the instantiation for you
group of global functions already assigned to this class
7. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
reuse your cells
designated initializer
do so in viewDidLoad
8. Also - because arrays only hold a pointer to an object...
they need to be defined in the implementation file
define it in the implemenation file
Data Encapsulation
a single-array can contain objects of different types
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 _.
copy - retain
subview(s)
%d
creates an instance of NSString that holds the character string
10. At the top of any implementation file...
draw images
you must import the header file of that class
C Functionn
the array becomes an owner of that object and has a pointer to it.
11. Just a floating point number - but we always use it for graphics.
ordered collection of objects - immutable
CGFloat
define it in the implemenation file
%d
12. A method in a _ is required unless its preceded by an @optional.
arguments[message]
receiver[message]
protocol
NSCoder
13. Why properties?
class's
UIView
position
safety - subclassability and makes code look more consistent with C structs
14. 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....
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
the message release to all its entries
define it in the implemenation file
Controller Objects[Managers]
15. If a break statement is executed from within a set of nested loops...
only the innermost loop in which the break is executed is terminated
you always return the newly initialized object(return self)
Is a placeholder object
you must import the header file of that class
16. A UITableView usually needs three different pieces...
data source - delegate and view controller
size and position
type - name and value
CGFloat
17. 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
a single-array can contain objects of different types
object
will be ignored
18. Origin of a view's coordinate system is _ left
message
position
upper
selector[message]
19. 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
20. 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
21. NSArray - important methods...
first responder
do so in viewDidLoad
has one root view controller
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
22. Any individual object belonging to any class...
is an instance of that class
subview(s)
Continue
CGRect
23. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
group of global functions already assigned to this class
instance variables
attributes - behavior
24. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
methods
array[class - NSMutableArray]
Instantiation from scratch
first responder
25. In Objective C arrays can hold only...
will be ignored
header files declare
references to objects
a single-array can contain objects of different types
26. Asking a class or object to execute a method
Functions
super - self
message
you must import the header file of that class
27. Core foundation classes are prefixed with _ and suffixed with _
references to objects
they need to be defined in the implementation file
CF - Ref
subview(s)
28. Designated initializer makes sure that every...
Functions
lowercase - uppercase
creates an instance of NSString that holds the character string
instance variable of an object is valid
29. NSString objects are usually sent _ rather than _...
attributes - behavior
instance variables
copy - retain
instance
30. You use _ to implement the view
calling code that does the instantiation for you
Data Encapsulation
CGRect bounds
CGRect
31. NSDictionary...
Hash table - Look up objects using a key to get a value.
delegates and dataSources
class
size and position
32. Instance Variables by default are called @protected meaning...
retain
alloc - singleton - informational utility method?
implementation
only the class and subclasses can access
33. The only reason to temporarily own an object - is...
Continue
position
receiver[message]
to give it someone else - or another object
34. Object Oriented based analogue to a function is called a...
first responder
method
NSLog routine
instance
35. 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
you always return the newly initialized object(return self)
instance of UIView or one of its subclasses
protocol
36. Name of the method to be executed
Encapsulation of functionality
wait until the loop finishes processing the event - at the end release it
Abstraction
selector[message]
37. How do I implement my drawRect?
Core Graphics Framework
class
cannot be added to an array
data source - delegate and view controller
38. When do you take ownership?...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
is an instance of that class
Anytime you call a method with new - alloc or copy. You own and must release that object.
%d
39. Center and frame are used to _ your view
Functions
Generic object wrapper for other non-object data types
position
superclass's
40. 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
41. [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.
data
array[class - NSMutableArray]
safety - subclassability and makes code look more consistent with C structs
Maintenance of state
42. A collection object - an ordered list of objects that can be accesed by an index
retain
Is a placeholder object
array[class - NSMutableArray]
receiver - selector - arguments
43. super - is used...
CGRect bounds
superclass's
declaration and initialization of a variable
for inheritance - adopting the superclasses implementation
44. Class methods typically either create
instance variables
receiver
CGFloat
new instances of the class or retrieve some global property of the class.
45. A UITableViewController can fill all three roles of...
viewWillDissapear: and viewWillAppear:
unordered collection of objects - objects must be unique
reuse your cells
data source - view controller and delegate
46. 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
subview(s)
UIViewController
Functions
you always return the newly initialized object(return self)
47. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
for inheritance - adopting the superclasses implementation
you always return the newly initialized object(return self)
pointer to an object
48. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
class methods - initializers
header files declare
the instance variables
nil
49. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
group of global functions already assigned to this class
only the class and subclasses can access
position
50. A function in the objective c library that simply displays or logs it's argument
Hash table - Look up objects using a key to get a value.
lowercase - uppercase
NSLog routine
size and position