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. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
initializers
NSBundle
@interface ClassName:SuperClassName
values
2. Any individual object belonging to any class...
is an instance of that class
view controller
pointer - class
pointers
3. Ready-made instances...
protocol
implementation
Continue
calling code that does the instantiation for you
4. Values to be supplied as the parameters to the method
arguments[message]
references to objects
to get and set variables
object
5. 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
CGRect bounds
Functions
upper
view
6. Class methods typically either create
new instances of the class or retrieve some global property of the class.
CGRect bounds - GCPoint center - CGRect frame
designated initializer
pointers
7. Core foundation classes are prefixed with _ and suffixed with _
%d
Anytime you call a method with new - alloc or copy. You own and must release that object.
implementation
CF - Ref
8. When do you take ownership?...
copy - retain
nil
Anytime you call a method with new - alloc or copy. You own and must release that object.
NSLog routine
9. if you implemented both the setter and getter - the @synthesize method...
Used to find the time right now or to store past or future time/dates
Anytime you call a method with new - alloc or copy. You own and must release that object.
will be ignored
size and position
10. Just a floating point number - but we always use it for graphics.
super - self
CGFloat
position
copy - retain
11. Defining variables - three parts...
accessors - individually we call them 'getters' and 'setters'
CF - Ref
Anytime you call a method with new - alloc or copy. You own and must release that object.
type - name and value
12. Files Owner...
initializer
message
Is a placeholder object
collection of collections - NSArray of an NSArray
13. The root view controller typically creates the next view controller - and the next _ creates the one after that
ready-made instances - instantiation from scratch - and nib based instantiation
array[class - NSMutableArray]
creating an initializer
view controller
14. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
receiver
pointer to an object
data
15. NSValue - class...
do so in viewDidLoad
instance
Generic object wrapper for other non-object data types
nil
16. If you have extra work you want to do on the view...
protocol
do so in viewDidLoad
(id)initWithFrame:(CGRect)aRect;
@synthesize
17. 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
18. When making a tableView always...
reuse your cells
@synthesize
creates an instance of NSString that holds the character string
view controller
19. A command directed to an object is called an...
Anytime you call a method with new - alloc or copy. You own and must release that object.
'getters' and 'setters'
message
attributes - behavior
20. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
only the innermost loop in which the break is executed is terminated
Is a placeholder object
initializers
Core Graphics Framework
21. Classes describe two things...
draw images
unordered collection of objects - objects must be unique
data source - view controller and delegate
attributes - behavior
22. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
you must import the header file of that class
Functions
to get and set variables
23. 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...
Object wrapper around primitive types like int - float - double - BOOl
setPossessionName
accessors - individually we call them 'getters' and 'setters'
its dataSource
24. In Objective C arrays can hold only...
the instance variables
methods for generating an instance
references to objects
instance of UIView or one of its subclasses
25. NSNumber - class...
type - name and value
only the class and subclasses can access
Object wrapper around primitive types like int - float - double - BOOl
will be ignored
26. 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....
NSBundle
define it in the implemenation file
data source - delegate and view controller
only the class and subclasses can access
27. 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 _.
Instantiation from scratch
pointer - class
only the innermost loop in which the break is executed is terminated
in the dealloc - or when a Controller's view is 'unloaded'
28. Object Oriented based analogue to a function is called a...
view
@synthesize
method
header files declare
29. A message is always contained in square brackets - and has three parts
an object's property
position
values
receiver - selector - arguments
30. UIView - designated initializer...
lowercase - uppercase
Instantiation from scratch
(id)initWithFrame:(CGRect)aRect;
data
31. @property - is using methods...
designated initializer
class
storage
to get and set variables
32. In a class method you cannot access...
class's
accessors - individually we call them 'getters' and 'setters'
the instance variables
first responder
33. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
message
class's
you must import the header file of that class
receiver
34. All objects are accessed using...
pointers
reuse your cells
self
Anytime you call a method with new - alloc or copy. You own and must release that object.
35. UITableViewController is a subclass of...
UIViewController
instance
class
first responder
36. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
has one root view controller
arguments[message]
designated initializer
37. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
%d
NSCoder
view
variable scope - if defined within a block
38. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
the array becomes an owner of that object and has a pointer to it.
UIViewController
a mechanism to enable specific callbacks
39. 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.
you always return the newly initialized object(return self)
@synthesize
instance variables
class methods - initializers
40. Designated initializer makes sure that every...
the array relinquishes ownership of that object and no longer has a pointer to it
instance variable of an object is valid
C Functionn
pointer - class
41. id is a...
'getters' and 'setters'
initializer
is called every time the event occurs
pointer to an object
42. Categories are an Objective C way to add _ to an existing class without subclassing
draw images
methods
CGRect
the message release to all its entries
43. Property List...
Used to find the time right now or to store past or future time/dates
CGRect bounds - GCPoint center - CGRect frame
collection of collections - NSArray of an NSArray
superclass's
44. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
you always return the newly initialized object(return self)
parentViewController
lowercase - uppercase
45. 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
46. 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
47. A UITableViewController can fill all three roles of...
ready-made instances - instantiation from scratch - and nib based instantiation
new instances of the class or retrieve some global property of the class.
class methods - initializers
data source - view controller and delegate
48. Only exists within the statement block there defined - outside of the block is fine
copy - retain
reuse your cells
data source - delegate and view controller
variable scope - if defined within a block
49. Prefixing a character string with an @ symbol [specific - NSString class]...
Instantiation from scratch
position
instance variable of an object is valid
creates an instance of NSString that holds the character string
50. A _ handles touch events.
Object wrapper around primitive types like int - float - double - BOOl
unordered collection of objects - objects must be unique
Continue
view
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