SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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 method that can operate on class objects rather than instances of the class.
distributed objects
class method
procedures
structures
2. A class is said to do this when it declares that it implements all the methods in the protocol.
nonatomic
heap
precedence
adopt
3. a++; is an example of using a _____ operator
assignment
asterisk (*)
zero
unitary
4. 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
runtime
conform
zero
nil
5. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
factory object
attributes
init
cannot
6. _____ data types can be both positive and negative
square brackets
outlet
Signed
link time
7. A message sent from one application to an object in another application.
%@
instance variable
remote message
dynamic typing
8. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
outlet
link time
reference counting
9. In object-oriented programming a procedure that can be executed by an object.
method
fields
procedural programming language
message
10. An architecture that facilitates communication between objects in different address spaces.
implementation
structures
outlet
distributed objects
11. Another name for a class that's defined solely so that other classes can inherit from it.
instance variable
abstract superclass
memory leak
null
12. 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
Smalltalk
pointer
remote message
13. 3 Common Float data types: float - _____ - CGFloat
procedures
dangling pointer
double
@interface
14. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
class method
formal protocol
strong
15. 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.
object
readwrite
framework
abstract class
16. Any class that's one step below another class in the inheritance hierarchy.
subclass
dynamic binding
instance
readonly
17. 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.
static typing
%@
Protocols
abstract class
18. 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.
instance
+
class object
synchronous message
19. A struct may contain multiple ____ consisting of different data types
nil
mutex
fields
NSObject
20. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
class
zero
null
weak
21. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dereference (dereferencing)
dispatch table
comma-separated
+
22. A variable that points to the memory address of another value
class
cycles
pointer
weak
23. In object-oriented programming the object that is sent a message.
copy
receiver
Categories
cycles
24. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
id
comma-separated
Edit>Refactor>Convert to Objective-C ARC
%@
25. The most flexible C data type: ______
Unitary
%@
Smalltalk
struct
26. 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).
remote message
adopt
message expression
cannot
27. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
readwrite
procedural programming language
developer intent
abstract class
28. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
inheritance hierarchy
Protocols
superclass
reference counting
29. Objective-C methods are called using ____ _____
instance variable
square brackets
memory leak
abstract class
30. 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
AppKit
memory leak
NSString
readwrite
31. 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
cycles
copy
dynamic allocation
designated initializer
32. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
selector
procedures
heap
formal protocol
33. 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.
namespace
cannot
readwrite
receiver
34. 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.
heap
Product>Profile>Leaks>Profile
structures
id
35. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
pointers
message
assign
Cocoa
36. Objective-C's protocols are really about communicating _____ _______
conform
factory
developer intent
long long
37. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
printf( )
conform
delegates
message expression
38. Property attribute that synthesizes both a getter and setter for the property
readwrite
attributes
receiver
implementation
39. There are ____ fundamental building blocks in Objective-C
9
zero
mutex
factory object
40. Placing a ____ before a normal variable name gives it's address
mutex
formal protocol
ampersand (&)
Signed
41. An object that acts on behalf of another object.
abstract superclass
Cocoa
delegate
namespace
42. When creating a class header file you begin with the _____ keyword and close with the @end keyword
remote object
properties
NSString
@interface
43. Same as class object. (second way to say it.)
developer intent
factory object
printf( )
encapsulation
44. The process of setting or reading the value at an address pointed to by a pointer
informal protocol
method
instance variable
dereference (dereferencing)
45. Objective-C binds methods and arguments at _____ instead of compile time
runtime
pointers
Protocols
dispatch table
46. 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
inheritance
struct
framework
structures
47. The _____ function can be used to print a message to the console
printf( )
designated
dynamic binding
runtime
48. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
factory
remote object
anonymous object
selector
49. Property attribute where the setter stores the assigned value but does not perform any memory management.
method
Enumerations
-
assign
50. Property attribute that causes the setter to store a strong reference to the assigned value
attributes
delegates
class
strong