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. In any application with UINavigationController - the navigation controller...
Hash table - Look up objects using a key to get a value.
has one root view controller
parentViewController
view controller's initialization method
2. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
Functions
new instances of the class or retrieve some global property of the class.
you always return the newly initialized object(return self)
3. class methods...
creates an instance of NSString that holds the character string
superclass's
position
group of global functions already assigned to this class
4. What does autorelease mean?
attributes - behavior
causes the program to immediately exit from the loop it is executing - whether its for - while or do
a mechanism to enable specific callbacks
wait until the loop finishes processing the event - at the end release it
5. When an object is added to a NSMutableArray - that object is sent the message to retain;...
methods for generating an instance
accessors - individually we call them 'getters' and 'setters'
the array becomes an owner of that object and has a pointer to it.
pointer - class
6. To load a Xib file manually - you use _
NSBundle
collection of collections - NSArray of an NSArray
instance of UIView or one of its subclasses
nil
7. UIViewController has several methods that get called at certain times...
references to objects
create a XIB file
Data Encapsulation
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
8. Classes describe two things...
Generic object wrapper for other non-object data types
CGFloat
class
attributes - behavior
9. NSString *s = @'Hello - World'; is an example of...
has one root view controller
C Functionn
declaration and initialization of a variable
view controller
10. 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
declaration and initialization of a variable
Core Graphics Framework
Maintenance of state
rectangular
11. UIView - designated initializer...
define it in the implemenation file
reuse your cells
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
(id)initWithFrame:(CGRect)aRect;
12. UIImageView is used to...
draw images
viewWillDissapear: and viewWillAppear:
methods
the array becomes an owner of that object and has a pointer to it.
13. Also - because arrays only hold a pointer to an object...
UIView
a single-array can contain objects of different types
'getters' and 'setters'
Ready-Made Instance
14. 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
15. 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
16. In Objective C arrays can hold only...
Core Graphics Framework
references to objects
Maintenance of state
wait until the loop finishes processing the event - at the end release it
17. 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.
instance variable of an object is valid
implementation
alloc - singleton - informational utility method?
the message release to all its entries
18. Class methods typically either create
new instances of the class or retrieve some global property of the class.
lowercase - uppercase
calling code that does the instantiation for you
class
19. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
NSCoder
declaration and initialization of a variable
setPossessionName
Ready-Made Instance
20. Hold data and know nothing about the user interface
to get and set variables
Is a placeholder object
header files declare
Model Objects[Factory Worker]
21. Designated initializer makes sure that every...
Anytime you call a method with new - alloc or copy. You own and must release that object.
designated initializer
instance variable of an object is valid
@interface ClassName:SuperClassName
22. NSDictionary...
Hash table - Look up objects using a key to get a value.
NSBundle
ready-made instances - instantiation from scratch - and nib based instantiation
calling code that does the instantiation for you
23. 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
Is a placeholder object
'getters' and 'setters'
Encapsulation of functionality
the array becomes an owner of that object and has a pointer to it.
24. Only exists within the statement block there defined - outside of the block is fine
create a XIB file
instance variable of an object is valid
calling code that does the instantiation for you
variable scope - if defined within a block
25. A view is a subclass of _
C Functionn
CGRect bounds - GCPoint center - CGRect frame
UIView
Is a placeholder object
26. A message is always contained in square brackets - and has three parts
instance
super - self
arguments[message]
receiver - selector - arguments
27. 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
28. Prefixing a character string with an @ symbol [specific - NSString class]...
attributes - behavior
rectangular
reuse your cells
creates an instance of NSString that holds the character string
29. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
retain
initializer
%d
receiver
30. A UITableView usually needs three different pieces...
Hash table - Look up objects using a key to get a value.
do so in viewDidLoad
data source - delegate and view controller
storage
31. Number one use of protocols in iOS...
Instantiation from scratch
you must import the header file of that class
delegates and dataSources
UIView
32. An instance is a device for maintaining state. It's a box for _ of data.
UIViewController
view controller
storage
instance of UIView or one of its subclasses
33. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
do so in viewDidLoad
values
subview(s)
34. You use _ to implement the view
implementation
NSLog routine
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
CGRect bounds
35. A UITableViewController can fill all three roles of...
Data Encapsulation
Core Graphics Framework
the array becomes an owner of that object and has a pointer to it.
data source - view controller and delegate
36. 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.
method
receiver - selector - arguments
receiver
first responder
37. A pointer to the object being asked to execute a method
receiver[message]
methods
references to objects
CGRect
38. Typically the designated initializer has parameters for the most important and frequently used _ of an object
Core Graphics Framework
Object wrapper around primitive types like int - float - double - BOOl
instance variables
collection of collections - NSArray of an NSArray
39. Views have three properties related to their location and size: @property _ _;
instance variables
class methods - initializers
Functions
CGRect bounds - GCPoint center - CGRect frame
40. 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 _.
subview(s)
is called every time the event occurs
view controller
wait until the loop finishes processing the event - at the end release it
41. 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.
references to objects
Data Encapsulation
@synthesize
creating an initializer
42. Core foundation classes are prefixed with _ and suffixed with _
methods for generating an instance
references to objects
CF - Ref
a mechanism to enable specific callbacks
43. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
%d
a mechanism to enable specific callbacks
pointers
44. Any other initializer a class has calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
45. Just a floating point number - but we always use it for graphics.
class methods - initializers
CGFloat
Model Objects[Factory Worker]
Functions
46. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
upper
@synthesize
UIView
47. Reference Counting...
references to objects
upper
You take ownership for an object you want to keep a pointer to
lowercase - uppercase
48. Proceed through the loop - jump back to the top and check again
attributes - behavior
subview(s)
Continue
a single-array can contain objects of different types
49. A view represents a _ area
initializers
superclass's
rectangular
Object wrapper around primitive types like int - float - double - BOOl
50. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
new instances of the class or retrieve some global property of the class.
a mechanism to enable specific callbacks
class methods - initializers
NSLog routine