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. NSDate - class...
data source - view controller and delegate
self
C Functionn
Used to find the time right now or to store past or future time/dates
2. Each class picks one _ as it's designated initializer....
initializer
view
the array relinquishes ownership of that object and no longer has a pointer to it
only the class and subclasses can access
3. Each _ has a 'designated' initializer method....
viewWillDissapear: and viewWillAppear:
class
methods
Controller Objects[Managers]
4. The only reason to temporarily own an object - is...
message
Encapsulation of functionality
Anytime you call a method with new - alloc or copy. You own and must release that object.
to give it someone else - or another object
5. The class is responsible for what instance variables the instance has - but not the _ of those variables.
data source - view controller and delegate
protocol
values
lowercase - uppercase
6. 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
variable scope - if defined within a block
instance variables
Encapsulation of functionality
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
7. A method in a _ is required unless its preceded by an @optional.
protocol
methods for generating an instance
initializer
variable scope - if defined within a block
8. In the last line of an init method...
is an instance of that class
you always return the newly initialized object(return self)
methods
object
9. When an object is removed from an NSMutableArray - that object is sent the message release;...
for inheritance - adopting the superclasses implementation
the array relinquishes ownership of that object and no longer has a pointer to it
selector[message]
instance variables
10. id is a...
pointer to an object
message
draw images
alloc - singleton - informational utility method?
11. 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
12. Execution of the break statement...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Ready-Made Instance
accessors - individually we call them 'getters' and 'setters'
causes the program to immediately exit from the loop it is executing - whether its for - while or do
13. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
view controller
header files declare
the message release to all its entries
14. Files Owner...
superclass's
Is a placeholder object
class
type - name and value
15. Use of class methods - there are three...
'getters' and 'setters'
data
alloc - singleton - informational utility method?
CF - Ref
16. 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
17. 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
18. Only exists within the statement block there defined - outside of the block is fine
do so in viewDidLoad
receiver
variable scope - if defined within a block
Object wrapper around primitive types like int - float - double - BOOl
19. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
self
in the dealloc - or when a Controller's view is 'unloaded'
is called every time the event occurs
20. Core foundation classes are prefixed with _ and suffixed with _
instance variables
CF - Ref
NSCoder
message
21. A UITableView usually needs three different pieces...
C Functionn
alloc - singleton - informational utility method?
a single-array can contain objects of different types
data source - delegate and view controller
22. A view is a subclass of _
data source - view controller and delegate
UIView
subview(s)
rectangular
23. A message is always contained in square brackets - and has three parts
pointer - class
superclass's
receiver - selector - arguments
arguments[message]
24. When making a tableView always...
arguments[message]
lowercase - uppercase
reuse your cells
only the innermost loop in which the break is executed is terminated
25. NSValue - class...
alloc - singleton - informational utility method?
CF - Ref
the instance variables
Generic object wrapper for other non-object data types
26. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
upper
Encapsulation of functionality
Instantiation from scratch
declaration and initialization of a variable
27. Delegation is an object oriented approach to
callbacks
class's
instance variable of an object is valid
method
28. In a class method you cannot access...
ordered collection of objects - immutable
C Functionn
data
the instance variables
29. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
callbacks
in the dealloc - or when a Controller's view is 'unloaded'
self
C Functionn
30. Origin of a view's coordinate system is _ left
attributes - behavior
creates an instance of NSString that holds the character string
Abstraction
upper
31. What does autorelease mean?
@synthesize
wait until the loop finishes processing the event - at the end release it
methods for generating an instance
%d
32. Asking a class or object to execute a method
message
alloc - singleton - informational utility method?
object
you always return the newly initialized object(return self)
33. When do you take ownership?...
'getters' and 'setters'
C Functionn
first responder
Anytime you call a method with new - alloc or copy. You own and must release that object.
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
the array becomes an owner of that object and has a pointer to it.
methods for generating an instance
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Maintenance of state
35. Object Oriented based analogue to a function is called a...
method
nil
Instantiation from scratch
view controller's initialization method
36. The root view controller typically creates the next view controller - and the next _ creates the one after that
methods
view controller
instance variables
copy - retain
37. A pointer to the object being asked to execute a method
you always return the newly initialized object(return self)
receiver[message]
object
selector[message]
38. @property - is using methods...
define it in the implemenation file
to get and set variables
nil
instance variables
39. super - is used...
you must import the header file of that class
ready-made instances - instantiation from scratch - and nib based instantiation
(id)initWithFrame:(CGRect)aRect;
for inheritance - adopting the superclasses implementation
40. A _ handles touch events.
Encapsulation of functionality
new instances of the class or retrieve some global property of the class.
alloc - singleton - informational utility method?
view
41. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
its dataSource
receiver
array[class - NSMutableArray]
42. UIViewController has several methods that get called at certain times...
group of global functions already assigned to this class
message
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
do so in viewDidLoad
43. 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)
Model Objects[Factory Worker]
Instantiation from scratch
Continue
44. 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...
dealloc - is called on the object & the object's memory is returned to the heap
instance
setPossessionName
viewWillDissapear: and viewWillAppear:
45. Just a floating point number - but we always use it for graphics.
first responder
CGFloat
methods for generating an instance
the instance variables
46. Class methods do not operate on an _ or have any access to _ variables....
instance
for inheritance - adopting the superclasses implementation
reuse your cells
its dataSource
47. Also if you send the NSObject the _ message - you own that object.
the array relinquishes ownership of that object and no longer has a pointer to it
collection of collections - NSArray of an NSArray
initializers
retain
48. Whenever a UINavigationController is about to swap views - it sends out two messages
references to objects
reuse your cells
selector[message]
viewWillDissapear: and viewWillAppear:
49. 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 _.
nil
ordered collection of objects - immutable
upper
designated initializer
50. Reducing details to focus on the core concepts
Abstraction
an object's property
receiver[message]
do so in viewDidLoad
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