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. 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
2. class methods...
group of global functions already assigned to this class
pointers
type - name and value
to get and set variables
3. Center and frame are used to _ your view
C Functionn
position
view
implementation
4. NSDictionary...
instance
Hash table - Look up objects using a key to get a value.
instance variable of an object is valid
rectangular
5. Files Owner...
Object wrapper around primitive types like int - float - double - BOOl
references to objects
Is a placeholder object
Controller Objects[Managers]
6. 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
parentViewController
a mechanism to enable specific callbacks
NSLog routine
method
7. A view represents a _ area
is an instance of that class
rectangular
ordered collection of objects - immutable
superclass's
8. The class is responsible for what instance variables the instance has - but not the _ of those variables.
you always return the newly initialized object(return self)
values
Anytime you call a method with new - alloc or copy. You own and must release that object.
class methods - initializers
9. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
wait until the loop finishes processing the event - at the end release it
the array relinquishes ownership of that object and no longer has a pointer to it
values
10. The root view controller typically creates the next view controller - and the next _ creates the one after that
message
draw images
variable scope - if defined within a block
view controller
11. In general - class methods tend to be factory methods - that is...
to give it someone else - or another object
view
methods for generating an instance
collection of collections - NSArray of an NSArray
12. 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.
first responder
is an instance of that class
UIViewController
size and position
13. Each _ has a 'designated' initializer method....
C Functionn
Is a placeholder object
class
NSLog routine
14. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
draw images
view controller's initialization method
class methods - initializers
Encapsulation of functionality
15. All objects are accessed using...
pointers
is called every time the event occurs
CGRect bounds - GCPoint center - CGRect frame
rectangular
16. NSString objects are usually sent _ rather than _...
NSLog routine
object
copy - retain
position
17. 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
18. When an NSMutableArray is deallocated - it sends...
data source - view controller and delegate
has one root view controller
creating an initializer
the message release to all its entries
19. A pointer to the object being asked to execute a method
Core Graphics Framework
receiver[message]
message
a mechanism to enable specific callbacks
20. If you have extra work you want to do on the view...
unordered collection of objects - objects must be unique
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
do so in viewDidLoad
the instance variables
21. A _ handles touch events.
CGRect bounds - GCPoint center - CGRect frame
view
instance variables
creates an instance of NSString that holds the character string
22. In the last line of an init method...
you always return the newly initialized object(return self)
in the dealloc - or when a Controller's view is 'unloaded'
create a XIB file
for inheritance - adopting the superclasses implementation
23. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
receiver - selector - arguments
they need to be defined in the implementation file
pointers
24. 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.
callbacks
message
view controller's initialization method
25. Ready-made instances...
delegates and dataSources
calling code that does the instantiation for you
causes the program to immediately exit from the loop it is executing - whether its for - while or do
@synthesize
26. Why properties?
an object's property
instance
safety - subclassability and makes code look more consistent with C structs
parentViewController
27. 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
Core Graphics Framework
parentViewController
accessors - individually we call them 'getters' and 'setters'
they need to be defined in the implementation file
28. A collection object - an ordered list of objects that can be accesed by an index
message
array[class - NSMutableArray]
Maintenance of state
new instances of the class or retrieve some global property of the class.
29. If a break statement is executed from within a set of nested loops...
method
variable scope - if defined within a block
the array relinquishes ownership of that object and no longer has a pointer to it
only the innermost loop in which the break is executed is terminated
30. 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
31. 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...
storage
setPossessionName
'getters' and 'setters'
viewWillDissapear: and viewWillAppear:
32. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
attributes - behavior
header files declare
Core Graphics Framework
designated initializer
33. At the top of any implementation file...
you must import the header file of that class
unordered collection of objects - objects must be unique
CF - Ref
pointers
34. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
Functions
data source - view controller and delegate
pointer - class
35. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
instance variable of an object is valid
initializer
to get and set variables
36. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
protocol
alloc - singleton - informational utility method?
class methods - initializers
37. NSArray - important methods...
unordered collection of objects - objects must be unique
%d
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
a single-array can contain objects of different types
38. 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
Anytime you call a method with new - alloc or copy. You own and must release that object.
Maintenance of state
methods
nil
39. When an object is removed from an NSMutableArray - that object is sent the message release;...
object
safety - subclassability and makes code look more consistent with C structs
receiving and handling events that are associated with it
the array relinquishes ownership of that object and no longer has a pointer to it
40. When do we need to release our outlets?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
41. @property declares - and _ implements the setter and getter...
receiving and handling events that are associated with it
@synthesize
Used to find the time right now or to store past or future time/dates
for inheritance - adopting the superclasses implementation
42. Hold data and know nothing about the user interface
draw images
superclass's
to give it someone else - or another object
Model Objects[Factory Worker]
43. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
attributes - behavior
subview(s)
Used to find the time right now or to store past or future time/dates
44. 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
45. Origin of a view's coordinate system is _ left
upper
ordered collection of objects - immutable
pointers
view
46. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
collection of collections - NSArray of an NSArray
CGRect
references to objects
Continue
47. 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
48. NSString *s = @'Hello - World'; is an example of...
implementation
new instances of the class or retrieve some global property of the class.
declaration and initialization of a variable
type - name and value
49. 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....
only the class and subclasses can access
class's
Generic object wrapper for other non-object data types
define it in the implemenation file
50. 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 _.
You take ownership for an object you want to keep a pointer to
you always return the newly initialized object(return self)
Continue
nil
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