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 object that acts on behalf of another object.
delegate
cannot
receiver
Enumerations
2. 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.
reference counting
Protocols
pointers
distributed objects
3. This symbol denotes a method as being a class method
runtime
inheritance
+
class method
4. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
procedural programming language
Interface Builder
compile time
floating-point
5. An object id with a value of 0.
link time
doubles
nil
Protocols
6. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
inheritance hierarchy
asynchronous message
weak
7. 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
implementation
Pointers
instance method
8. The _____ function can be used to print a message to the console
runtime
printf( )
%@
class method
9. Property attribute that causes the setter to store a strong reference to the assigned value
weak
static typing
structures
strong
10. Property attribute that synthesizes accessors that are not thread safe
nonatomic
Smalltalk
instance
binary
11. Placing a ____ before a normal variable name gives it's address
copy
ampersand (&)
instance
encapsulation
12. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).
message expression
nil
Pointers
Unitary
13. _____ 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'.
ARC
NSString
synchronous message
Encapsulation
14. _____ allow you to add new methods to existing classes
conform
Categories
class
Pointers
15. In object-oriented programming a procedure that can be executed by an object.
designated initializer
method
comma-separated
cycles
16. A protocol declared as a category usually as a category of the NSObject class.
reference counting
informal protocol
@implementation
static typing
17. ____ provide a concise & elegant method for defining a discrete set of values
null
Smalltalk
instance method
Enumerations
18. 3 Common Float data types: float - _____ - CGFloat
Categories
@interface
interface
double
19. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
ampersand (&)
Product>Profile>Leaks>Profile
assign
20. A compiler feature that provides automated memory management
formal protocol
ARC
interface
instance
21. A class is said to do this when it declares that it implements all the methods in the protocol.
formal protocol
dispatch table
adopt
superset
22. Objective-C objects should use strong or weak ______
mutex
asynchronous message
adopt
attributes
23. 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
Cocoa
implementation
copy
NSString
24. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
ARC
runtime
inheritance hierarchy
long long
25. ______ data types are always zero or greate
+
Unsigned
conform
Binary
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.
designated
namespace
strong
Smalltalk
27. A method that can operate on class objects rather than instances of the class.
ARC
class method
encapsulation
mutex
28. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
memory leak
delegates
class method
link time
29. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
abstract superclass
anonymous object
nil
assignment
30. Finding the method implementation to invoke in response to the message
asynchronous message
dynamic binding
interface
Unsigned
31. Objective-C's protocols are really about communicating _____ _______
developer intent
readwrite
message
comma-separated
32. Initializer method traditionally begin with the _____ prefix
message
init
asynchronous message
subclass
33. In Objective-C floats are more commonly used than ______
namespace
binary
doubles
developer intent
34. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
category
procedural programming language
binary
Signed
35. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
assign
NSString
implementation
cannot
36. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
printf( )
instance
Categories
formal protocol
37. All objects are created on the _____
message
+
heap
square brackets
38. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
[receiver message];
id
protocol
C operators
39. Xcode sequence to convert non-ARC apps to ARC
runtime
Edit>Refactor>Convert to Objective-C ARC
structures
strong
40. 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
reference counting
9
printf( )
conform
41. The root class in Objective-C
NSObject
receiver
category
attributes
42. Square bracket syntax for calling a method
runtime
dispatch table
[receiver message];
heap
43. Data types are divided into two main categories: integer and ______
floating-point
interface
zero
ARC
44. Objective-C methods are called using ____ _____
square brackets
link time
@interface
factory object
45. 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.
polymorphism
instance variable
ARC
attributes
46. 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.
factory object
formal protocol
NSString
attributes
47. 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.
Interface Builder
compile time
delegate
printf( )
48. 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.
outlet
remote object
message expression
abstract class
49. 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
remote object
factory
designated initializer
informal protocol
50. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
Product>Profile>Leaks>Profile
Signed
instance
mutex