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. A set of method definitions that is segregated from the rest of the class definition.
category
dynamic allocation
namespace
factory object
2. 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
abstract superclass
conform
designated initializer
cannot
3. Objective-C methods are called using ____ _____
ARC
square brackets
Interface Builder
comma-separated
4. Square bracket syntax for calling a method
id
NSObject
[receiver message];
abstract superclass
5. The process of setting or reading the value at an address pointed to by a pointer
synchronous message
dereference (dereferencing)
object
informal protocol
6. 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
NSObject
copy
dangling pointer
7. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
ampersand (&)
printf( )
struct
@implementation
8. Property attribute that synthesizes accessors that are not thread safe
%@
nonatomic
object
square brackets
9. _____ 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
namespace
mutex
developer intent
10. Property attribute that synthesizes both a getter and setter for the property
dynamic binding
link time
readwrite
class object
11. 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.
Categories
abstract class
Binary
doubles
12. C-style strings always end with a ____ character
null
distributed objects
message
polymorphism
13. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
heap
Categories
fields
asterisk (*)
14. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
Protocols
procedures
formal protocol
informal protocol
15. An object id with a value of 0.
class method
nil
abstract class
remote object
16. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
Interface Builder
value
Binary
-
17. Objective-C's protocols are really about communicating _____ _______
square brackets
instance variable
developer intent
nil
18. 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.
polymorphism
formal protocol
@interface
attributes
19. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
strong
delegates
instance
20. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
weak
receiver
Interface Builder
null
21. Same as class object. (first way to say it.)
Encapsulation
factory
event
Cocoa
22. Property attribute that synthesizes only a getter for the property
message
factory object
abstract class
readonly
23. In object-oriented programming a procedure that can be executed by an object.
Interface Builder
id
null
method
24. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
dispatch table
weak
instance
remote message
25. An object of unknown class. Interface is published through protocol declaration.
Product>Profile>Leaks>Profile
factory
weak
anonymous object
26. Objective-C is a _____ of the C language
category
superset
polymorphism
factory object
27. In the Objective-C language the declaration of a group of methods not associated with any particular class.
pointer
protocol
double
object
28. Property attribute that causes the setter to store a strong reference to the assigned value
strong
double
framework
conform
29. There are ____ fundamental building blocks in Objective-C
abstract class
assign
9
runtime
30. ______ data types are always zero or greate
Cocoa
interface
%@
Unsigned
31. Discovering the class of an object at runtime rather than at compile time.
properties
dynamic typing
superclass
Protocols
32. A struct may contain multiple ____ consisting of different data types
fields
implementation
conform
struct
33. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
properties
superclass
outlet
runtime
34. 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.
fields
encapsulation
doubles
protocol
35. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
inheritance hierarchy
remote message
dereference (dereferencing)
superclass
36. a+b; is an example of using a _____ operator
printf( )
binary
nil
remote message
37. Finding the method implementation to invoke in response to the message
fields
dynamic binding
@interface
pointer
38. 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).
runtime
weak
implementation
category
39. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
synchronous message
asterisk (*)
method
object
40. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
cycles
Encapsulation
structures
41. Another name for a class that's defined solely so that other classes can inherit from it.
deprecated
weak
abstract superclass
id
42. When creating a class header file you begin with the _____ keyword and close with the @end keyword
Signed
encapsulation
@interface
Protocols
43. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
instance variable
asterisk (*)
remote object
designated
44. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
init
fields
C operators
square brackets
45. 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.
namespace
inheritance
floating-point
Smalltalk
46. 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
readonly
abstract class
class method
synchronous message
47. An object that acts on behalf of another object.
namespace
delegate
structures
abstract superclass
48. A ____ ____ is a situation where you free memory and then accidentally continue to use it
message expression
@implementation
dangling pointer
outlet
49. 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
NSString
Binary
instance variable
nil
50. Data types are divided into two main categories: integer and ______
floating-point
superset
Unitary
pointers