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. Origin of a view's coordinate system is _ left
attributes - behavior
upper
cannot be added to an array
receiver
2. UIImageView is used to...
Instantiation from scratch
Used to find the time right now or to store past or future time/dates
draw images
the message release to all its entries
3. NSSet...
unordered collection of objects - objects must be unique
data
collection of collections - NSArray of an NSArray
an object's property
4. class methods...
receiver
group of global functions already assigned to this class
selector[message]
ready-made instances - instantiation from scratch - and nib based instantiation
5. If you have extra work you want to do on the view...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
do so in viewDidLoad
CGRect bounds
pointer - class
6. When an object is added to a NSMutableArray - that object is sent the message to retain;...
@synthesize
You take ownership for an object you want to keep a pointer to
rectangular
the array becomes an owner of that object and has a pointer to it.
7. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
is called every time the event occurs
UIView
cannot be added to an array
8. Use of class methods - there are three...
instance variable of an object is valid
ready-made instances - instantiation from scratch - and nib based instantiation
draw images
alloc - singleton - informational utility method?
9. NSNumber - class...
values
Instantiation from scratch
Object wrapper around primitive types like int - float - double - BOOl
size and position
10. Number one use of protocols in iOS...
methods for generating an instance
@synthesize
delegates and dataSources
creating an initializer
11. 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...
message
alloc - singleton - informational utility method?
setPossessionName
causes the program to immediately exit from the loop it is executing - whether its for - while or do
12. Any individual object belonging to any class...
position
lowercase - uppercase
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
is an instance of that class
13. A view is a subclass of _
parentViewController
'getters' and 'setters'
UIView
has one root view controller
14. UIViewController has several methods that get called at certain times...
data source - view controller and delegate
Anytime you call a method with new - alloc or copy. You own and must release that object.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
values
15. Hold data and know nothing about the user interface
accessors - individually we call them 'getters' and 'setters'
alloc - singleton - informational utility method?
Model Objects[Factory Worker]
Controller Objects[Managers]
16. UIView - designated initializer...
implementation
a mechanism to enable specific callbacks
(id)initWithFrame:(CGRect)aRect;
setPossessionName
17. Center and frame are used to _ your view
values
NSLog routine
pointer to an object
position
18. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
Controller Objects[Managers]
view
object
'getters' and 'setters'
19. Property List...
collection of collections - NSArray of an NSArray
you always return the newly initialized object(return self)
instance of UIView or one of its subclasses
methods
20. In a class method you cannot access...
the instance variables
CGRect
in the dealloc - or when a Controller's view is 'unloaded'
'getters' and 'setters'
21. An instance is a device for maintaining state. It's a box for _ of data.
type - name and value
storage
@synthesize
Object wrapper around primitive types like int - float - double - BOOl
22. A view is an...
an object's property
class methods - initializers
instance of UIView or one of its subclasses
UIViewController
23. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
they need to be defined in the implementation file
@synthesize
group of global functions already assigned to this class
24. When an object is removed from an NSMutableArray - that object is sent the message release;...
values
arguments[message]
retain
the array relinquishes ownership of that object and no longer has a pointer to it
25. A pointer to the object being asked to execute a method
receiver[message]
nil
they need to be defined in the implementation file
creating an initializer
26. All objects are accessed using...
collection of collections - NSArray of an NSArray
pointers
ordered collection of objects - immutable
view controller
27. Why properties?
declaration and initialization of a variable
instance variable of an object is valid
super - self
safety - subclassability and makes code look more consistent with C structs
28. 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
29. Asking a class or object to execute a method
CGRect
message
methods
causes the program to immediately exit from the loop it is executing - whether its for - while or do
30. 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.
lowercase - uppercase
instance variables
%d
type - name and value
31. 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
instance variables
data
parentViewController
32. Ready-made instances...
dealloc - is called on the object & the object's memory is returned to the heap
calling code that does the instantiation for you
delegates and dataSources
subview(s)
33. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
@synthesize
initializers
its dataSource
34. [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.
references to objects
data
Generic object wrapper for other non-object data types
a mechanism to enable specific callbacks
35. If the view has no subviews - create it programmatically; if it has subviews
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
position
Maintenance of state
create a XIB file
36. 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
37. Class methods typically either create
first responder
new instances of the class or retrieve some global property of the class.
message
values
38. In Objective C arrays can hold only...
Is a placeholder object
references to objects
position
initializer
39. A callback is a function that is supplied in advance of an event - and...
delegates and dataSources
receiver
the message release to all its entries
is called every time the event occurs
40. Designated initializer makes sure that every...
has one root view controller
size and position
instance variable of an object is valid
Instantiation from scratch
41. 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
Functions
array[class - NSMutableArray]
Abstraction
42. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
view controller's initialization method
NSCoder
Object wrapper around primitive types like int - float - double - BOOl
instance
43. NSDictionary...
Hash table - Look up objects using a key to get a value.
Continue
initializers
in the dealloc - or when a Controller's view is 'unloaded'
44. A command directed to an object is called an...
header files declare
message
references to objects
(id)initWithFrame:(CGRect)aRect;
45. In general - class methods tend to be factory methods - that is...
copy - retain
Abstraction
instance
methods for generating an instance
46. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
%d
You take ownership for an object you want to keep a pointer to
type - name and value
47. Execution of the break statement...
NSLog routine
the array becomes an owner of that object and has a pointer to it.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
for inheritance - adopting the superclasses implementation
48. A message is always contained in square brackets - and has three parts
class's
Anytime you call a method with new - alloc or copy. You own and must release that object.
receiver - selector - arguments
is called every time the event occurs
49. super - is used...
Data Encapsulation
instance
for inheritance - adopting the superclasses implementation
do so in viewDidLoad
50. Files Owner...
subview(s)
Is a placeholder object
will be ignored
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
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