SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Objective C Programming Basics
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. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
ARC
designated initializer
heap
class
2. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.
fields
synchronous message
Encapsulation
ampersand (&)
3. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.
delegate
floating-point
inheritance hierarchy
reference counting
4. Property attribute that causes the setter to store a copy of the assigned value
informal protocol
class object
copy
method
5. Xcode sequence to examine an app for memory leaks or retain cycles
instance
strong
framework
Product>Profile>Leaks>Profile
6. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica
instance
synchronous message
conform
printf( )
7. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
Encapsulation
interface
conform
designated initializer
8. When creating a class header file you begin with the _____ keyword and close with the @end keyword
remote object
@interface
instance variable
value
9. This symbol denotes a method as being a class method
designated
remote object
+
abstract class
10. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
dynamic allocation
@implementation
Binary
[receiver message];
11. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
dangling pointer
procedures
binary
class
12. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
@interface
event
protocol
13. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
Edit>Refactor>Convert to Objective-C ARC
framework
@implementation
14. Same as class object. (second way to say it.)
nil
factory object
instance method
Pointers
15. Same as class object. (first way to say it.)
ARC
Protocols
weak
factory
16. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
synchronous message
instance
factory object
developer intent
17. Property attribute that synthesizes both a getter and setter for the property
ARC
anonymous object
readwrite
asynchronous message
18. A ____ _____ is where you forget to free up memory
synchronous message
outlet
memory leak
long long
19. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
structures
fields
readonly
20. A class is said to do this when it declares that it implements all the methods in the protocol.
@interface
link time
copy
adopt
21. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
+
%
null
22. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
long long
Signed
struct
selector
23. A compiler feature that provides automated memory management
Protocols
ARC
developer intent
Unitary
24. _____ operators take 2 operands
formal protocol
ampersand (&)
abstract superclass
Binary
25. a++; is an example of using a _____ operator
remote message
structures
properties
unitary
26. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.
delegates
formal protocol
id
+
27. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
ampersand (&)
Cocoa
value
%@
28. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.
designated initializer
readonly
encapsulation
link time
29. Symbol used to denote a placeholder in a format string
anonymous object
@implementation
Edit>Refactor>Convert to Objective-C ARC
%
30. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
9
%
precedence
copy
31. Property attribute that causes the setter to store a strong reference to the assigned value
strong
abstract superclass
Categories
event
32. _____ data types can be both positive and negative
Pointers
Signed
class method
floating-point
33. The process of setting or reading the value at an address pointed to by a pointer
nil
subclass
dereference (dereferencing)
Pointers
34. ______ operators take a single operand
instance
Unitary
9
Product>Profile>Leaks>Profile
35. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
dynamic allocation
@implementation
ARC
method
36. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
Protocols
9
implementation
id
37. In Objective-C floats are more commonly used than ______
doubles
synchronous message
Unitary
class
38. A method that can operate on class objects rather than instances of the class.
runtime
class method
delegate
Product>Profile>Leaks>Profile
39. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met
conform
anonymous object
NSObject
pointers
40. The most flexible C data type: ______
static typing
structures
NSString
struct
41. A set of method definitions that is segregated from the rest of the class definition.
strong
fields
category
interface
42. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
implementation
chars
comma-separated
43. There are ____ fundamental building blocks in Objective-C
dynamic allocation
ARC
9
strong
44. Initializer method traditionally begin with the _____ prefix
AppKit
static typing
init
ampersand (&)
45. Xcode sequence to convert non-ARC apps to ARC
compile time
runtime
Edit>Refactor>Convert to Objective-C ARC
inheritance hierarchy
46. Any method that can be used by an instance of a class rather than by the class object.
instance method
subclass
procedures
class
47. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
conform
AppKit
unitary
copy
48. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
assign
ARC
class
namespace
49. To destroy an object set the variable that points to it to _____
nil
formal protocol
floating-point
dispatch table
50. a+b; is an example of using a _____ operator
binary
NSObject
interface
nonatomic