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. An architecture that facilitates communication between objects in different address spaces.
distributed objects
anonymous object
class
namespace
2. Objective-C methods are called using ____ _____
square brackets
message
Pointers
dynamic typing
3. Any class that's one step below another class in the inheritance hierarchy.
receiver
instance
namespace
subclass
4. ______ data types are always zero or greate
informal protocol
@interface
receiver
Unsigned
5. Same as class object. (first way to say it.)
message
factory
class
inheritance
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
doubles
synchronous message
remote message
structures
7. An object id with a value of 0.
Unsigned
asynchronous message
nil
double
8. 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.
encapsulation
abstract superclass
message expression
Pointers
9. When creating a class header file you begin with the _____ keyword and close with the @end keyword
namespace
pointer
@interface
zero
10. The most flexible C data type: ______
runtime
namespace
readwrite
struct
11. Objective-C objects should use strong or weak ______
attributes
selector
framework
reference counting
12. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
dynamic typing
nil
+
13. In object-oriented programming a procedure that can be executed by an object.
cycles
%@
polymorphism
method
14. Another name for a class that's defined solely so that other classes can inherit from it.
superset
abstract superclass
selector
Enumerations
15. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
procedures
subclass
pointer
16. The root class in Objective-C
NSObject
@interface
heap
Protocols
17. A ____ ____ is a situation where you free memory and then accidentally continue to use it
-
event
assignment
dangling pointer
18. _____ allow you to add new methods to existing classes
abstract superclass
id
Categories
%@
19. 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.
selector
instance variable
delegates
instance
20. The process of setting or reading the value at an address pointed to by a pointer
message expression
dereference (dereferencing)
selector
procedures
21. Objective-C's protocols are really about communicating _____ _______
deprecated
Product>Profile>Leaks>Profile
developer intent
receiver
22. _____ allow indirect access and modification of a variable's value.
message
zero
heap
Pointers
23. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
instance method
+
class
24. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
dangling pointer
mutex
Cocoa
deprecated
25. Same as class object. (second way to say it.)
encapsulation
factory object
instance method
nonatomic
26. 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.
Smalltalk
procedural programming language
namespace
id
27. An object of unknown class. Interface is published through protocol declaration.
[receiver message];
Interface Builder
readwrite
anonymous object
28. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
runtime
Smalltalk
NSString
designated initializer
29. A ____ _____ is where you forget to free up memory
+
dangling pointer
category
memory leak
30. _____ data types can be both positive and negative
attributes
abstract superclass
precedence
Signed
31. C-style strings always end with a ____ character
NSString
dynamic typing
null
procedural programming language
32. ______ operators take a single operand
Unitary
superclass
init
null
33. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
dynamic binding
designated
%@
class object
34. Discovering the class of an object at runtime rather than at compile time.
copy
protocol
dynamic typing
namespace
35. _____ 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'.
Encapsulation
dynamic binding
nonatomic
implementation
36. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
floating-point
static typing
weak
printf( )
37. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
procedures
-
instance
Protocols
38. Objective-C binds methods and arguments at _____ instead of compile time
weak
copy
mutex
runtime
39. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
interface
@interface
mutex
heap
40. Property attribute that synthesizes both a getter and setter for the property
readwrite
strong
NSObject
properties
41. In object-oriented programming the object that is sent a message.
Cocoa
remote object
receiver
attributes
42. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
precedence
-
abstract superclass
43. 3 Common Float data types: float - _____ - CGFloat
+
asynchronous message
subclass
double
44. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.
abstract class
class method
Encapsulation
Pointers
45. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
readonly
factory object
informal protocol
46. a+b; is an example of using a _____ operator
Categories
implementation
conform
binary
47. 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.
interface
Categories
reference counting
pointers
48. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
double
procedural programming language
Cocoa
link time
49. Finding the method implementation to invoke in response to the message
dynamic binding
binary
abstract class
init
50. The first index in an array is valued at ____
factory
zero
@implementation
runtime