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 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 _.
for inheritance - adopting the superclasses implementation
pointer - class
instance
wait until the loop finishes processing the event - at the end release it
2. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
Ready-Made Instance
Abstraction
C Functionn
self
3. A view is an...
receiver[message]
reuse your cells
super - self
instance of UIView or one of its subclasses
4. NSString objects are usually sent _ rather than _...
header files declare
copy - retain
Encapsulation of functionality
designated initializer
5. If the view has no subviews - create it programmatically; if it has subviews
the instance variables
only the class and subclasses can access
create a XIB file
cannot be added to an array
6. 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...
setPossessionName
an object's property
'getters' and 'setters'
CF - Ref
7. To load a Xib file manually - you use _
NSBundle
Abstraction
the array relinquishes ownership of that object and no longer has a pointer to it
instance variables
8. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
dealloc - is called on the object & the object's memory is returned to the heap
object
methods for generating an instance
lowercase - uppercase
9. 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
10. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
instance
alloc - singleton - informational utility method?
you must import the header file of that class
initializers
11. Also - because arrays only hold a pointer to an object...
instance variables
UIViewController
CGRect
a single-array can contain objects of different types
12. 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
self
has one root view controller
parentViewController
for inheritance - adopting the superclasses implementation
13. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
Controller Objects[Managers]
CGRect
receiving and handling events that are associated with it
14. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.
is called every time the event occurs
viewWillDissapear: and viewWillAppear:
nil
will be ignored
15. Property List...
copy - retain
is called every time the event occurs
collection of collections - NSArray of an NSArray
attributes - behavior
16. @property - is using methods...
@interface ClassName:SuperClassName
storage
to get and set variables
instance variable of an object is valid
17. Whenever a UINavigationController is about to swap views - it sends out two messages
implementation
method
viewWillDissapear: and viewWillAppear:
receiving and handling events that are associated with it
18. Execution of the break statement...
view controller
is called every time the event occurs
causes the program to immediately exit from the loop it is executing - whether its for - while or do
attributes - behavior
19. UIViewController has several methods that get called at certain times...
selector[message]
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Core Graphics Framework
delegates and dataSources
20. NSValue - class...
Generic object wrapper for other non-object data types
NSCoder
'getters' and 'setters'
Object wrapper around primitive types like int - float - double - BOOl
21. A view is a subclass of _
Core Graphics Framework
UIView
Used to find the time right now or to store past or future time/dates
subview(s)
22. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
ready-made instances - instantiation from scratch - and nib based instantiation
receiver
callbacks
object
23. All objects are accessed using...
lowercase - uppercase
methods for generating an instance
pointers
callbacks
24. If a break statement is executed from within a set of nested loops...
Abstraction
CGFloat
only the innermost loop in which the break is executed is terminated
superclass's
25. Ready-made instances...
method
first responder
is an instance of that class
calling code that does the instantiation for you
26. The only reason to temporarily own an object - is...
to give it someone else - or another object
UIViewController
Model Objects[Factory Worker]
superclass's
27. NSDate - class...
data source - view controller and delegate
Used to find the time right now or to store past or future time/dates
initializer
size and position
28. Number one use of protocols in iOS...
unordered collection of objects - objects must be unique
dealloc - is called on the object & the object's memory is returned to the heap
delegates and dataSources
the message release to all its entries
29. @property declares - and _ implements the setter and getter...
@synthesize
causes the program to immediately exit from the loop it is executing - whether its for - while or do
receiving and handling events that are associated with it
its dataSource
30. NSNumber - class...
Generic object wrapper for other non-object data types
Object wrapper around primitive types like int - float - double - BOOl
Maintenance of state
UIViewController
31. Prefixing a character string with an @ symbol [specific - NSString class]...
ready-made instances - instantiation from scratch - and nib based instantiation
array[class - NSMutableArray]
new instances of the class or retrieve some global property of the class.
creates an instance of NSString that holds the character string
32. NSSet...
view controller
the array relinquishes ownership of that object and no longer has a pointer to it
unordered collection of objects - objects must be unique
safety - subclassability and makes code look more consistent with C structs
33. 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.
instance of UIView or one of its subclasses
creating an initializer
the instance variables
to get and set variables
34. Origin of a view's coordinate system is _ left
upper
Generic object wrapper for other non-object data types
Abstraction
copy - retain
35. When an object is removed from an NSMutableArray - that object is sent the message release;...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
the array relinquishes ownership of that object and no longer has a pointer to it
create a XIB file
C Functionn
36. When do you take ownership?...
Maintenance of state
Anytime you call a method with new - alloc or copy. You own and must release that object.
retain
object
37. 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
38. In object oriented languages - we call methods that get and set instance variables
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
39. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
receiver
self
you always return the newly initialized object(return self)
selector[message]
40. In general - class methods tend to be factory methods - that is...
view controller's initialization method
storage
methods for generating an instance
is called every time the event occurs
41. Core foundation classes are prefixed with _ and suffixed with _
instance
CF - Ref
Generic object wrapper for other non-object data types
C Functionn
42. 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
class methods - initializers
object
(id)initWithFrame:(CGRect)aRect;
43. id is a...
create a XIB file
pointer to an object
Model Objects[Factory Worker]
self
44. UIView - designated initializer...
its dataSource
only the innermost loop in which the break is executed is terminated
subview(s)
(id)initWithFrame:(CGRect)aRect;
45. In any application with UINavigationController - the navigation controller...
instance variables
cannot be added to an array
has one root view controller
Hash table - Look up objects using a key to get a value.
46. When an NSMutableArray is deallocated - it sends...
first responder
new instances of the class or retrieve some global property of the class.
the message release to all its entries
the array becomes an owner of that object and has a pointer to it.
47. 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
48. A view represents a _ area
super - self
receiver - selector - arguments
rectangular
array[class - NSMutableArray]
49. Only exists within the statement block there defined - outside of the block is fine
causes the program to immediately exit from the loop it is executing - whether its for - while or do
variable scope - if defined within a block
UIViewController
'getters' and 'setters'
50. NSDictionary...
Anytime you call a method with new - alloc or copy. You own and must release that object.
Hash table - Look up objects using a key to get a value.
ready-made instances - instantiation from scratch - and nib based instantiation
parentViewController
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