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. Initializer method traditionally begin with the _____ prefix
init
-
copy
readwrite
2. An object that acts on behalf of another object.
delegate
dynamic typing
zero
interface
3. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
double
Cocoa
@implementation
protocol
4. 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.
abstract class
square brackets
outlet
Enumerations
5. 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.
reference counting
delegate
dynamic allocation
instance
6. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
protocol
category
delegate
7. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
strong
asynchronous message
assignment
namespace
8. 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.
Encapsulation
link time
Cocoa
@implementation
9. The _____ function can be used to print a message to the console
Binary
printf( )
selector
Product>Profile>Leaks>Profile
10. 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
synchronous message
remote object
heap
9
11. This symbol denotes a method as being a class method
+
anonymous object
struct
instance
12. C-style strings are stored in an array of _____
unitary
9
chars
long long
13. ARC is susceptible to retain _____
runtime
Signed
cycles
dispatch table
14. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.
runtime
abstract superclass
inheritance hierarchy
distributed objects
15. _____ allow indirect access and modification of a variable's value.
readwrite
square brackets
inheritance hierarchy
Pointers
16. To destroy an object set the variable that points to it to _____
assignment
nil
instance method
dereference (dereferencing)
17. 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.
doubles
zero
message expression
namespace
18. a++; is an example of using a _____ operator
binary
[receiver message];
distributed objects
unitary
19. _____ operators take 2 operands
class
Binary
dynamic binding
%
20. Property attribute where the setter stores the assigned value but does not perform any memory management.
zero
assign
memory leak
event
21. The first index in an array is valued at ____
Smalltalk
doubles
synchronous message
zero
22. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
heap
selector
nonatomic
deprecated
23. An architecture that facilitates communication between objects in different address spaces.
distributed objects
copy
remote message
Unitary
24. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
dynamic typing
delegates
Smalltalk
event
25. Any class that's one step below another class in the inheritance hierarchy.
polymorphism
subclass
synchronous message
category
26. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
NSObject
comma-separated
asynchronous message
27. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
event
C operators
implementation
Protocols
28. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
long long
Protocols
square brackets
delegate
29. ______ operators take a single operand
long long
Unitary
instance
binary
30. a+b; is an example of using a _____ operator
binary
printf( )
outlet
instance
31. 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.
cannot
compile time
instance variable
method
32. 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
Encapsulation
square brackets
informal protocol
structures
33. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
printf( )
event
long long
binary
34. 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.
Pointers
ampersand (&)
Enumerations
class object
35. Same as class object. (first way to say it.)
nil
@implementation
factory
designated
36. The most flexible C data type: ______
@interface
readonly
struct
long long
37. A ____ _____ is where you forget to free up memory
dynamic typing
selector
procedural programming language
memory leak
38. A struct may contain multiple ____ consisting of different data types
inheritance
fields
delegate
value
39. _____ allow you to add new methods to existing classes
Encapsulation
%@
selector
Categories
40. In object-oriented programming the object that is sent a message.
asterisk (*)
precedence
instance method
receiver
41. A class is said to do this when it declares that it implements all the methods in the protocol.
[receiver message];
assign
adopt
@implementation
42. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
pointers
abstract superclass
AppKit
factory
43. _____ data types can be both positive and negative
instance method
Edit>Refactor>Convert to Objective-C ARC
Signed
synchronous message
44. Objective-C objects should use strong or weak ______
class
attributes
heap
Encapsulation
45. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
class
dynamic typing
readwrite
interface
46. Property attribute that synthesizes accessors that are not thread safe
properties
instance method
nonatomic
conform
47. 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
dangling pointer
event
C operators
48. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
fields
@implementation
Interface Builder
remote object
49. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
dynamic allocation
compile time
instance
superclass
50. A method that can operate on class objects rather than instances of the class.
NSString
procedures
comma-separated
class method