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 root class in Objective-C
floating-point
delegates
NSObject
receiver
2. Property attribute that synthesizes accessors that are not thread safe
receiver
framework
nonatomic
ARC
3. a+b; is an example of using a _____ operator
encapsulation
structures
doubles
binary
4. a++; is an example of using a _____ operator
unitary
square brackets
fields
superset
5. 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
object
synchronous message
mutex
dereference (dereferencing)
6. Property attribute that causes the setter to store a copy of the assigned value
copy
class
Unitary
C operators
7. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
method
adopt
deprecated
precedence
8. ARC is susceptible to retain _____
dangling pointer
comma-separated
cycles
abstract superclass
9. Same as class object. (first way to say it.)
superclass
factory
assign
long long
10. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
instance method
NSString
deprecated
readonly
11. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
null
@implementation
NSObject
readonly
12. Any class that's one step below another class in the inheritance hierarchy.
Protocols
subclass
instance
9
13. Square bracket syntax for calling a method
[receiver message];
C operators
namespace
selector
14. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
struct
link time
Unsigned
inheritance
15. All objects are created on the _____
heap
anonymous object
nil
@implementation
16. 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.
event
asynchronous message
id
subclass
17. The _____ function can be used to print a message to the console
nil
printf( )
method
dynamic allocation
18. 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.
cannot
encapsulation
memory leak
Interface Builder
19. A set of method definitions that is segregated from the rest of the class definition.
weak
abstract class
category
namespace
20. 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.
deprecated
designated
precedence
dynamic allocation
21. 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.
class object
instance variable
Categories
factory
22. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
cannot
compile time
init
assign
23. 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
zero
binary
inheritance hierarchy
designated initializer
24. 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
Unsigned
NSString
mutex
dispatch table
25. Property attribute that synthesizes both a getter and setter for the property
method
floating-point
readwrite
designated initializer
26. 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).
protocol
implementation
properties
remote object
27. An object of unknown class. Interface is published through protocol declaration.
Edit>Refactor>Convert to Objective-C ARC
Protocols
anonymous object
heap
28. Data types are divided into two main categories: integer and ______
category
selector
floating-point
init
29. Objective-C objects should use strong or weak ______
Smalltalk
NSObject
C operators
attributes
30. 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.
deprecated
+
static typing
reference counting
31. 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).
Encapsulation
message expression
zero
instance
32. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
method
mutex
instance variable
instance
33. Xcode sequence to convert non-ARC apps to ARC
+
readwrite
properties
Edit>Refactor>Convert to Objective-C ARC
34. 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.
abstract class
long long
instance variable
properties
35. Initializer method traditionally begin with the _____ prefix
long long
readonly
printf( )
init
36. A message sent from one application to an object in another application.
asterisk (*)
mutex
instance
remote message
37. There are ____ fundamental building blocks in Objective-C
properties
Edit>Refactor>Convert to Objective-C ARC
developer intent
9
38. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
event
implementation
Unsigned
Cocoa
39. To destroy an object set the variable that points to it to _____
developer intent
nil
attributes
procedures
40. 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.
Signed
asterisk (*)
formal protocol
object
41. Another name for a class that's defined solely so that other classes can inherit from it.
class object
abstract superclass
comma-separated
Encapsulation
42. In a home building analogy a ____ is the blueprint and the object is the house
comma-separated
dangling pointer
class
precedence
43. Placing a ____ before a normal variable name gives it's address
Encapsulation
polymorphism
synchronous message
ampersand (&)
44. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
Edit>Refactor>Convert to Objective-C ARC
NSString
mutex
45. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
pointers
%@
method
46. C-style strings are stored in an array of _____
chars
Smalltalk
Pointers
developer intent
47. 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.
link time
pointers
Encapsulation
class method
48. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
Product>Profile>Leaks>Profile
procedural programming language
event
nil
49. The process of setting or reading the value at an address pointed to by a pointer
informal protocol
cannot
dereference (dereferencing)
binary
50. A ____ ____ is a situation where you free memory and then accidentally continue to use it
comma-separated
dangling pointer
static typing
instance