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. Each _ has a 'designated' initializer method....
creating an initializer
You take ownership for an object you want to keep a pointer to
Is a placeholder object
class
2. UITableViewController is a subclass of...
header files declare
UIViewController
UIView
create a XIB file
3. Any individual object belonging to any class...
Ready-Made Instance
is an instance of that class
only the class and subclasses can access
implementation
4. [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.
Object wrapper around primitive types like int - float - double - BOOl
message
create a XIB file
data
5. Only exists within the statement block there defined - outside of the block is fine
method
receiver[message]
%d
variable scope - if defined within a block
6. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
position
accessors - individually we call them 'getters' and 'setters'
instance variable of an object is valid
7. If you have extra work you want to do on the view...
do so in viewDidLoad
self
instance variables
they need to be defined in the implementation file
8. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
protocol
callbacks
Controller Objects[Managers]
class methods - initializers
9. super - is used...
draw images
type - name and value
for inheritance - adopting the superclasses implementation
the array becomes an owner of that object and has a pointer to it.
10. 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
receiver - selector - arguments
(id)initWithFrame:(CGRect)aRect;
causes the program to immediately exit from the loop it is executing - whether its for - while or do
11. You use _ to implement the view
copy - retain
superclass's
Generic object wrapper for other non-object data types
CGRect bounds
12. Ready-made instances...
size and position
C Functionn
receiver - selector - arguments
calling code that does the instantiation for you
13. Center and frame are used to _ your view
variable scope - if defined within a block
receiving and handling events that are associated with it
data source - view controller and delegate
position
14. 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
15. A UITableView usually needs three different pieces...
pointers
data source - delegate and view controller
is called every time the event occurs
Data Encapsulation
16. Asking a class or object to execute a method
You take ownership for an object you want to keep a pointer to
calling code that does the instantiation for you
Hash table - Look up objects using a key to get a value.
message
17. 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...
UIView
UIViewController
group of global functions already assigned to this class
setPossessionName
18. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
ordered collection of objects - immutable
C Functionn
parentViewController
references to objects
19. Property List...
wait until the loop finishes processing the event - at the end release it
only the class and subclasses can access
collection of collections - NSArray of an NSArray
draw images
20. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
viewWillDissapear: and viewWillAppear:
Functions
super - self
CGRect
21. A block of statements identified by a name that can accept one or more arguments passed to it by value and can optionally return a value
Functions
parentViewController
@synthesize
creating an initializer
22. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
type - name and value
array[class - NSMutableArray]
reuse your cells
23. How do I implement my drawRect?
(id)initWithFrame:(CGRect)aRect;
super - self
ready-made instances - instantiation from scratch - and nib based instantiation
Core Graphics Framework
24. 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.
message
superclass's
first responder
its dataSource
25. 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.
super - self
safety - subclassability and makes code look more consistent with C structs
instance of UIView or one of its subclasses
implementation
26. What does autorelease mean?
to give it someone else - or another object
view controller's initialization method
the array becomes an owner of that object and has a pointer to it.
wait until the loop finishes processing the event - at the end release it
27. NSValue - class...
initializers
data
Generic object wrapper for other non-object data types
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
28. Delegation is an object oriented approach to
callbacks
accessors - individually we call them 'getters' and 'setters'
new instances of the class or retrieve some global property of the class.
Generic object wrapper for other non-object data types
29. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
callbacks
instance variables
CGRect bounds
30. Object Oriented based analogue to a function is called a...
instance variable of an object is valid
method
Is a placeholder object
Instantiation from scratch
31. Classes describe two things...
view controller's initialization method
attributes - behavior
CGRect
pointers
32. If a break statement is executed from within a set of nested loops...
CGFloat
only the innermost loop in which the break is executed is terminated
view controller's initialization method
group of global functions already assigned to this class
33. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
You take ownership for an object you want to keep a pointer to
setPossessionName
super - self
CF - Ref
34. 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
35. Number one use of protocols in iOS...
array[class - NSMutableArray]
upper
the array relinquishes ownership of that object and no longer has a pointer to it
delegates and dataSources
36. At the top of any implementation file...
do so in viewDidLoad
values
parentViewController
you must import the header file of that class
37. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
references to objects
receiver
pointer to an object
38. NSDate - class...
array[class - NSMutableArray]
to give it someone else - or another object
Used to find the time right now or to store past or future time/dates
accessors - individually we call them 'getters' and 'setters'
39. Class methods do not operate on an _ or have any access to _ variables....
Instantiation from scratch
instance
callbacks
upper
40. A UITableViewController can fill all three roles of...
data source - view controller and delegate
group of global functions already assigned to this class
references to objects
unordered collection of objects - objects must be unique
41. A collection object - an ordered list of objects that can be accesed by an index
creates an instance of NSString that holds the character string
Abstraction
array[class - NSMutableArray]
message
42. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
Anytime you call a method with new - alloc or copy. You own and must release that object.
super - self
they need to be defined in the implementation file
43. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.
instance of UIView or one of its subclasses
Data Encapsulation
class methods - initializers
nil
44. When an object is added to a NSMutableArray - that object is sent the message to retain;...
for inheritance - adopting the superclasses implementation
the array becomes an owner of that object and has a pointer to it.
array[class - NSMutableArray]
Object wrapper around primitive types like int - float - double - BOOl
45. In general - class methods tend to be factory methods - that is...
instance of UIView or one of its subclasses
declaration and initialization of a variable
methods for generating an instance
creates an instance of NSString that holds the character string
46. NSString objects are usually sent _ rather than _...
copy - retain
Encapsulation of functionality
nil
NSBundle
47. initWithFrame: the designated initializer for UIView gives the view
Maintenance of state
%d
size and position
to give it someone else - or another object
48. 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
Instantiation from scratch
CGFloat
CGRect bounds
a mechanism to enable specific callbacks
49. When making a tableView always...
will be ignored
reuse your cells
first responder
instance variables
50. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
superclass's
wait until the loop finishes processing the event - at the end release it
lowercase - uppercase
data
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