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 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.
superclass
class method
reference counting
+
2. All objects are created on the _____
outlet
heap
encapsulation
designated initializer
3. ______ data types are always zero or greate
Unsigned
factory object
delegate
runtime
4. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
dynamic binding
assignment
Categories
superclass
5. Property attribute that causes the setter to store a copy of the assigned value
copy
formal protocol
instance
framework
6. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
readwrite
adopt
superclass
7. Any class that's one step below another class in the inheritance hierarchy.
event
instance
precedence
subclass
8. _____ 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'.
NSString
Encapsulation
Smalltalk
anonymous object
9. 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.
nonatomic
implementation
encapsulation
@implementation
10. A variable that points to the memory address of another value
informal protocol
instance method
pointer
assign
11. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
printf( )
id
assign
object
12. 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.
formal protocol
dynamic typing
category
receiver
13. 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.
category
synchronous message
runtime
dynamic allocation
14. 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.
%@
formal protocol
dynamic binding
object
15. ______ operators take a single operand
Unitary
remote object
id
developer intent
16. C-style strings are stored in an array of _____
dangling pointer
protocol
chars
instance
17. Objective-C is a _____ of the C language
static typing
superset
Unitary
comma-separated
18. When creating a class header file you begin with the _____ keyword and close with the @end keyword
outlet
@interface
heap
class method
19. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
inheritance
class object
instance variable
20. In object-oriented programming the object that is sent a message.
encapsulation
receiver
doubles
assign
21. Discovering the class of an object at runtime rather than at compile time.
factory object
asynchronous message
dynamic typing
designated initializer
22. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance method
instance
-
long long
23. In Objective-C floats are more commonly used than ______
doubles
ARC
encapsulation
binary
24. A ____ ____ is a situation where you free memory and then accidentally continue to use it
ampersand (&)
dangling pointer
properties
precedence
25. 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.
designated
Interface Builder
weak
formal protocol
26. A struct may contain multiple ____ consisting of different data types
namespace
fields
printf( )
nil
27. Xcode sequence to convert non-ARC apps to ARC
%@
Encapsulation
factory
Edit>Refactor>Convert to Objective-C ARC
28. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects
developer intent
selector
%
structures
29. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
abstract class
@interface
cannot
asterisk (*)
30. Same as class object. (second way to say it.)
factory object
Unsigned
adopt
category
31. 3 Common Float data types: float - _____ - CGFloat
class method
NSObject
double
structures
32. An architecture that facilitates communication between objects in different address spaces.
binary
strong
distributed objects
designated initializer
33. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
outlet
remote object
printf( )
34. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
%
class
asterisk (*)
cannot
35. The most flexible C data type: ______
%
fields
instance
struct
36. 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.
cycles
properties
remote object
link time
37. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
adopt
mutex
encapsulation
cannot
38. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
implementation
asterisk (*)
abstract superclass
39. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
abstract superclass
Cocoa
designated initializer
runtime
40. This symbol denotes a method as being an instance method
subclass
superclass
-
copy
41. Instance variables are optional in iOS if ________ are used
instance
Encapsulation
%
properties
42. _____ allow indirect access and modification of a variable's value.
polymorphism
deprecated
init
Pointers
43. Objective-C methods are called using ____ _____
square brackets
Signed
Unitary
abstract class
44. 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
pointers
Signed
nonatomic
NSString
45. The first index in an array is valued at ____
readwrite
zero
anonymous object
event
46. _____ data types can be both positive and negative
id
value
Signed
cannot
47. 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
delegate
cannot
designated initializer
Enumerations
48. Property attribute that synthesizes both a getter and setter for the property
Encapsulation
selector
category
readwrite
49. 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
class method
50. An object that acts on behalf of another object.
ARC
long long
delegate
@interface