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 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
floating-point
9
namespace
assignment
2. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
Enumerations
procedures
value
method
3. Placing a ____ before a normal variable name gives it's address
Binary
instance method
developer intent
ampersand (&)
4. Property attribute that causes the setter to store a copy of the assigned value
copy
class
remote message
cycles
5. An architecture that facilitates communication between objects in different address spaces.
heap
distributed objects
runtime
factory object
6. Symbol used to denote a placeholder in a format string
precedence
runtime
%
protocol
7. 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
designated initializer
outlet
assignment
cannot
8. The first index in an array is valued at ____
implementation
assign
zero
interface
9. 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
value
mutex
nil
conform
10. A message sent from one application to an object in another application.
remote message
superclass
runtime
%
11. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
copy
doubles
delegates
Cocoa
12. 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
informal protocol
runtime
Protocols
13. 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
attributes
object
informal protocol
14. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
strong
null
synchronous message
15. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
zero
factory object
message
Protocols
16. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
static typing
memory leak
runtime
class
17. Property attribute that causes the setter to store a strong reference to the assigned value
strong
superset
Edit>Refactor>Convert to Objective-C ARC
object
18. Finding the method implementation to invoke in response to the message
printf( )
dynamic binding
floating-point
NSObject
19. 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.
asynchronous message
delegate
remote message
implementation
20. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
nil
runtime
assignment
21. _____ operators take 2 operands
Binary
runtime
class method
dynamic typing
22. 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
struct
printf( )
weak
23. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
dynamic binding
class
procedural programming language
24. _____ 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'.
%@
factory
Encapsulation
comma-separated
25. Objective-C binds methods and arguments at _____ instead of compile time
Interface Builder
runtime
NSObject
null
26. a+b; is an example of using a _____ operator
anonymous object
instance variable
dispatch table
binary
27. Same as class object. (second way to say it.)
unitary
factory object
ARC
NSObject
28. Property attribute that synthesizes both a getter and setter for the property
AppKit
readwrite
Pointers
nil
29. An object that acts on behalf of another object.
heap
asterisk (*)
properties
delegate
30. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
%
message
remote message
AppKit
31. All objects are created on the _____
precedence
heap
cycles
Smalltalk
32. 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
event
class
Unitary
33. A class is said to do this when it declares that it implements all the methods in the protocol.
delegate
adopt
comma-separated
init
34. An object in another application - one that's a potential receiver for a remote message.
Interface Builder
message expression
weak
remote object
35. 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.
precedence
runtime
outlet
polymorphism
36. 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.
encapsulation
Smalltalk
readonly
class object
37. 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.
Encapsulation
receiver
abstract superclass
id
38. Initializer method traditionally begin with the _____ prefix
strong
Encapsulation
instance
init
39. A compiler feature that provides automated memory management
ARC
chars
attributes
pointer
40. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
developer intent
readonly
designated
C operators
41. A struct may contain multiple ____ consisting of different data types
precedence
Enumerations
fields
static typing
42. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
static typing
class object
class method
deprecated
43. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
message expression
encapsulation
pointer
static typing
44. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
compile time
readonly
namespace
45. 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
ARC
[receiver message];
synchronous message
readwrite
46. _____ data types can be both positive and negative
square brackets
Binary
Protocols
Signed
47. The most flexible C data type: ______
selector
init
@implementation
struct
48. Objective-C is a _____ of the C language
instance variable
asterisk (*)
superset
dynamic binding
49. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
Protocols
fields
Enumerations
50. C-style strings always end with a ____ character
assignment
+
null
nil