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 the last line of an init method...
super - self
you always return the newly initialized object(return self)
safety - subclassability and makes code look more consistent with C structs
will be ignored
2. In any application with UINavigationController - the navigation controller...
has one root view controller
message
CGRect
UIViewController
3. UIImageView is used to...
instance of UIView or one of its subclasses
draw images
header files declare
size and position
4. How do I implement my drawRect?
Core Graphics Framework
method
create a XIB file
object
5. A _ handles touch events.
methods
NSBundle
view
receiver[message]
6. Reference Counting...
designated initializer
You take ownership for an object you want to keep a pointer to
attributes - behavior
NSBundle
7. 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
lowercase - uppercase
Encapsulation of functionality
accessors - individually we call them 'getters' and 'setters'
@synthesize
8. 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
the instance variables
parentViewController
its dataSource
the array becomes an owner of that object and has a pointer to it.
9. All objects are accessed using...
Model Objects[Factory Worker]
creates an instance of NSString that holds the character string
pointers
in the dealloc - or when a Controller's view is 'unloaded'
10. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
Generic object wrapper for other non-object data types
C Functionn
lowercase - uppercase
unordered collection of objects - objects must be unique
11. Origin of a view's coordinate system is _ left
upper
viewWillDissapear: and viewWillAppear:
arguments[message]
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
12. super - is used...
CGRect
for inheritance - adopting the superclasses implementation
C Functionn
%d
13. Proceed through the loop - jump back to the top and check again
declaration and initialization of a variable
collection of collections - NSArray of an NSArray
only the class and subclasses can access
Continue
14. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
Data Encapsulation
instance variable of an object is valid
pointer - class
15. Typically the designated initializer has parameters for the most important and frequently used _ of an object
collection of collections - NSArray of an NSArray
@synthesize
method
instance variables
16. When making a tableView always...
array[class - NSMutableArray]
Used to find the time right now or to store past or future time/dates
reuse your cells
Encapsulation of functionality
17. A function in the objective c library that simply displays or logs it's argument
super - self
instance
NSLog routine
only the class and subclasses can access
18. Each class picks one _ as it's designated initializer....
pointers
setPossessionName
to give it someone else - or another object
initializer
19. Just a floating point number - but we always use it for graphics.
initializer
CGFloat
view controller's initialization method
NSLog routine
20. Reducing details to focus on the core concepts
Abstraction
designated initializer
draw images
NSCoder
21. NSDictionary...
superclass's
class
Abstraction
Hash table - Look up objects using a key to get a value.
22. class methods...
UIView
unordered collection of objects - objects must be unique
group of global functions already assigned to this class
NSBundle
23. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
size and position
the message release to all its entries
initializers
24. Property List...
nil
method
only the class and subclasses can access
collection of collections - NSArray of an NSArray
25. [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.
retain
C Functionn
data
CGFloat
26. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
header files declare
in the dealloc - or when a Controller's view is 'unloaded'
the array becomes an owner of that object and has a pointer to it.
27. A view is a subclass of _
arguments[message]
setPossessionName
Generic object wrapper for other non-object data types
UIView
28. The class is responsible for what instance variables the instance has - but not the _ of those variables.
Object wrapper around primitive types like int - float - double - BOOl
Ready-Made Instance
data
values
29. If a break statement is executed from within a set of nested loops...
group of global functions already assigned to this class
accessors - individually we call them 'getters' and 'setters'
only the innermost loop in which the break is executed is terminated
setPossessionName
30. To load a Xib file manually - you use _
retain
declaration and initialization of a variable
the array becomes an owner of that object and has a pointer to it.
NSBundle
31. A collection object - an ordered list of objects that can be accesed by an index
upper
array[class - NSMutableArray]
draw images
callbacks
32. Defining variables - three parts...
arguments[message]
you always return the newly initialized object(return self)
type - name and value
(id)initWithFrame:(CGRect)aRect;
33. 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 _.
class
Continue
nil
pointer - class
34. 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
Maintenance of state
superclass's
retain
you must import the header file of that class
35. 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.
references to objects
creating an initializer
position
receiver[message]
36. In a class method you cannot access...
collection of collections - NSArray of an NSArray
references to objects
create a XIB file
the instance variables
37. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
Ready-Made Instance
new instances of the class or retrieve some global property of the class.
will be ignored
38. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Used to find the time right now or to store past or future time/dates
ready-made instances - instantiation from scratch - and nib based instantiation
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Ready-Made Instance
39. if you implemented both the setter and getter - the @synthesize method...
accessors - individually we call them 'getters' and 'setters'
Ready-Made Instance
You take ownership for an object you want to keep a pointer to
will be ignored
40. 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....
define it in the implemenation file
a single-array can contain objects of different types
values
receiver
41. initWithFrame: the designated initializer for UIView gives the view
array[class - NSMutableArray]
to give it someone else - or another object
'getters' and 'setters'
size and position
42. 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.
@synthesize
Hash table - Look up objects using a key to get a value.
Instantiation from scratch
implementation
43. Delegation is an object oriented approach to
to give it someone else - or another object
CGRect
callbacks
the message release to all its entries
44. 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)
copy - retain
CF - Ref
they need to be defined in the implementation file
45. At the top of any implementation file...
superclass's
you must import the header file of that class
its dataSource
wait until the loop finishes processing the event - at the end release it
46. Each _ has a 'designated' initializer method....
header files declare
wait until the loop finishes processing the event - at the end release it
class
type - name and value
47. An instance is a device for maintaining state. It's a box for _ of data.
do so in viewDidLoad
its dataSource
instance variables
storage
48. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
instance variables
rectangular
UIViewController
49. Primitives and C Structures...
Is a placeholder object
cannot be added to an array
ready-made instances - instantiation from scratch - and nib based instantiation
Maintenance of state
50. Why properties?
safety - subclassability and makes code look more consistent with C structs
the array becomes an owner of that object and has a pointer to it.
do so in viewDidLoad
Anytime you call a method with new - alloc or copy. You own and must release that object.
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests