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. Execution of the break statement...
class methods - initializers
method
retain
causes the program to immediately exit from the loop it is executing - whether its for - while or do
2. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
C Functionn
creating an initializer
header files declare
3. 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
alloc - singleton - informational utility method?
draw images
group of global functions already assigned to this class
4. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
references to objects
position
protocol
5. In the last line of an init method...
initializers
ready-made instances - instantiation from scratch - and nib based instantiation
you always return the newly initialized object(return self)
new instances of the class or retrieve some global property of the class.
6. 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
viewWillDissapear: and viewWillAppear:
Functions
methods for generating an instance
do so in viewDidLoad
7. Prefixing a character string with an @ symbol [specific - NSString class]...
header files declare
class methods - initializers
creates an instance of NSString that holds the character string
@synthesize
8. A view is an...
data source - delegate and view controller
reuse your cells
subview(s)
instance of UIView or one of its subclasses
9. 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
receiver - selector - arguments
storage
you must import the header file of that class
10. The integer prefix is...
receiver[message]
%d
a mechanism to enable specific callbacks
class's
11. You use _ to implement the view
group of global functions already assigned to this class
UIViewController
an object's property
CGRect bounds
12. Center and frame are used to _ your view
you always return the newly initialized object(return self)
array[class - NSMutableArray]
position
variable scope - if defined within a block
13. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
UIViewController
copy - retain
class's
14. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
implementation
CGRect bounds
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
15. NSDate - class...
method
only the class and subclasses can access
Used to find the time right now or to store past or future time/dates
is an instance of that class
16. 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
17. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Core Graphics Framework
storage
cannot be added to an array
Ready-Made Instance
18. A UITableView usually needs three different pieces...
instance
data source - delegate and view controller
receiver
instance of UIView or one of its subclasses
19. Asking a class or object to execute a method
message
storage
you must import the header file of that class
array[class - NSMutableArray]
20. Name of the method to be executed
protocol
retain
selector[message]
attributes - behavior
21. NSString objects are usually sent _ rather than _...
alloc - singleton - informational utility method?
methods for generating an instance
rectangular
copy - retain
22. super - is used...
Functions
for inheritance - adopting the superclasses implementation
Model Objects[Factory Worker]
Generic object wrapper for other non-object data types
23. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
ordered collection of objects - immutable
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
class methods - initializers
the array becomes an owner of that object and has a pointer to it.
24. Defining variables - three parts...
size and position
type - name and value
attributes - behavior
selector[message]
25. 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
26. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
class
Instantiation from scratch
self
CGRect bounds - GCPoint center - CGRect frame
27. Class methods do not operate on an _ or have any access to _ variables....
Core Graphics Framework
instance
the array becomes an owner of that object and has a pointer to it.
superclass's
28. How do I implement my drawRect?
CGFloat
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Core Graphics Framework
position
29. What does autorelease mean?
receiver - selector - arguments
Encapsulation of functionality
wait until the loop finishes processing the event - at the end release it
is an instance of that class
30. Instance Variables by default are called @protected meaning...
You take ownership for an object you want to keep a pointer to
Data Encapsulation
only the class and subclasses can access
new instances of the class or retrieve some global property of the class.
31. NSArray - class...
Core Graphics Framework
@interface ClassName:SuperClassName
a single-array can contain objects of different types
ordered collection of objects - immutable
32. Whenever a UINavigationController is about to swap views - it sends out two messages
@interface ClassName:SuperClassName
unordered collection of objects - objects must be unique
attributes - behavior
viewWillDissapear: and viewWillAppear:
33. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
declaration and initialization of a variable
first responder
view
34. After accessors have been defined in the header file...
they need to be defined in the implementation file
size and position
Maintenance of state
instance variable of an object is valid
35. NSSet...
type - name and value
unordered collection of objects - objects must be unique
define it in the implemenation file
CGRect bounds
36. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
arguments[message]
Encapsulation of functionality
UIView
37. @property - is using methods...
to get and set variables
the instance variables
Abstraction
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
38. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
parentViewController
methods for generating an instance
creates an instance of NSString that holds the character string
39. Ready-made instances...
receiving and handling events that are associated with it
declaration and initialization of a variable
Abstraction
calling code that does the instantiation for you
40. 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
41. In Objective C arrays can hold only...
unordered collection of objects - objects must be unique
@interface ClassName:SuperClassName
methods for generating an instance
references to objects
42. A UITableViewController can fill all three roles of...
Object wrapper around primitive types like int - float - double - BOOl
data source - view controller and delegate
the instance variables
the array becomes an owner of that object and has a pointer to it.
43. When an NSMutableArray is deallocated - it sends...
instance variables
the message release to all its entries
Used to find the time right now or to store past or future time/dates
class's
44. 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
@synthesize
a mechanism to enable specific callbacks
parentViewController
Used to find the time right now or to store past or future time/dates
45. 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
46. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
values
lowercase - uppercase
type - name and value
reuse your cells
47. 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.
Data Encapsulation
only the innermost loop in which the break is executed is terminated
upper
instance variables
48. In general - class methods tend to be factory methods - that is...
selector[message]
initializer
methods for generating an instance
Controller Objects[Managers]
49. Reducing details to focus on the core concepts
rectangular
view controller's initialization method
Abstraction
designated initializer
50. A collection object - an ordered list of objects that can be accesed by an index
retain
super - self
subview(s)
array[class - NSMutableArray]