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. NSValue - class...
a single-array can contain objects of different types
you always return the newly initialized object(return self)
an object's property
Generic object wrapper for other non-object data types
2. What does autorelease mean?
C Functionn
variable scope - if defined within a block
values
wait until the loop finishes processing the event - at the end release it
3. A function in the objective c library that simply displays or logs it's argument
@interface ClassName:SuperClassName
receiver
calling code that does the instantiation for you
NSLog routine
4. 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
5. 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
Encapsulation of functionality
viewWillDissapear: and viewWillAppear:
in the dealloc - or when a Controller's view is 'unloaded'
you must import the header file of that class
6. NSString objects are usually sent _ rather than _...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Continue
pointer - class
copy - retain
7. 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 _.
references to objects
subview(s)
Controller Objects[Managers]
pointer - class
8. The integer prefix is...
%d
ready-made instances - instantiation from scratch - and nib based instantiation
C Functionn
Abstraction
9. id is a...
pointer to an object
method
(id)initWithFrame:(CGRect)aRect;
instance variable of an object is valid
10. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
accessors - individually we call them 'getters' and 'setters'
super - self
Core Graphics Framework
create a XIB file
11. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
they need to be defined in the implementation file
Instantiation from scratch
message
receiving and handling events that are associated with it
12. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
delegates and dataSources
message
receiver
a single-array can contain objects of different types
13. @property - is using methods...
wait until the loop finishes processing the event - at the end release it
instance
super - self
to get and set variables
14. To load a Xib file manually - you use _
delegates and dataSources
NSCoder
NSBundle
cannot be added to an array
15. 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
16. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
instance
creates an instance of NSString that holds the character string
'getters' and 'setters'
17. Each class picks one _ as it's designated initializer....
variable scope - if defined within a block
class methods - initializers
accessors - individually we call them 'getters' and 'setters'
initializer
18. 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....
define it in the implemenation file
instance
Instantiation from scratch
(id)initWithFrame:(CGRect)aRect;
19. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
data source - delegate and view controller
class methods - initializers
data
references to objects
20. @property declares - and _ implements the setter and getter...
Functions
@synthesize
instance variable of an object is valid
do so in viewDidLoad
21. 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.
instance variables
designated initializer
lowercase - uppercase
calling code that does the instantiation for you
22. 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
23. 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 _.
methods
nil
class methods - initializers
C Functionn
24. A view is an...
Continue
variable scope - if defined within a block
instance of UIView or one of its subclasses
references to objects
25. A method in a _ is required unless its preceded by an @optional.
protocol
accessors - individually we call them 'getters' and 'setters'
is called every time the event occurs
for inheritance - adopting the superclasses implementation
26. class methods...
collection of collections - NSArray of an NSArray
group of global functions already assigned to this class
class methods - initializers
message
27. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
receiver[message]
Abstraction
safety - subclassability and makes code look more consistent with C structs
28. Proceed through the loop - jump back to the top and check again
view controller's initialization method
Functions
Generic object wrapper for other non-object data types
Continue
29. In Cocoa Touch - the table view asks another object _ what it should display...
NSLog routine
C Functionn
Functions
its dataSource
30. In Objective C arrays can hold only...
Used to find the time right now or to store past or future time/dates
references to objects
'getters' and 'setters'
retain
31. Also if you send the NSObject the _ message - you own that object.
data source - view controller and delegate
retain
NSCoder
receiving and handling events that are associated with it
32. NSSet...
unordered collection of objects - objects must be unique
object
designated initializer
receiver - selector - arguments
33. 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
34. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
UIViewController
only the innermost loop in which the break is executed is terminated
nil
35. 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.
implementation
message
Maintenance of state
causes the program to immediately exit from the loop it is executing - whether its for - while or do
36. Hold data and know nothing about the user interface
data source - view controller and delegate
Model Objects[Factory Worker]
(id)initWithFrame:(CGRect)aRect;
only the class and subclasses can access
37. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
data
@interface ClassName:SuperClassName
self
values
38. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
lowercase - uppercase
selector[message]
message
39. Each _ has a 'designated' initializer method....
rectangular
the array relinquishes ownership of that object and no longer has a pointer to it
header files declare
class
40. Prefixing a character string with an @ symbol [specific - NSString class]...
pointer - class
they need to be defined in the implementation file
to get and set variables
creates an instance of NSString that holds the character string
41. A view represents a _ area
copy - retain
Controller Objects[Managers]
rectangular
an object's property
42. Use of class methods - there are three...
alloc - singleton - informational utility method?
array[class - NSMutableArray]
its dataSource
ordered collection of objects - immutable
43. Instance Variables by default are called @protected meaning...
pointer - class
is called every time the event occurs
only the class and subclasses can access
delegates and dataSources
44. UIView - designated initializer...
view controller
parentViewController
(id)initWithFrame:(CGRect)aRect;
retain
45. 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
46. NSDictionary...
setPossessionName
attributes - behavior
protocol
Hash table - Look up objects using a key to get a value.
47. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
implementation
setPossessionName
@synthesize
48. When an object is removed from an NSMutableArray - that object is sent the message release;...
define it in the implemenation file
'getters' and 'setters'
the array relinquishes ownership of that object and no longer has a pointer to it
subview(s)
49. super - is used...
object
for inheritance - adopting the superclasses implementation
data source - delegate and view controller
accessors - individually we call them 'getters' and 'setters'
50. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
only the innermost loop in which the break is executed is terminated
header files declare
@interface ClassName:SuperClassName
selector[message]
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