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. An architecture that facilitates communication between objects in different address spaces.
instance method
polymorphism
distributed objects
factory object
2. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
instance
event
object
factory
3. Objective-C methods are called using ____ _____
instance variable
square brackets
inheritance
abstract class
4. When creating a class header file you begin with the _____ keyword and close with the @end keyword
delegates
[receiver message];
@interface
compile time
5. Any class that's one step below another class in the inheritance hierarchy.
NSObject
encapsulation
subclass
synchronous message
6. C-style strings always end with a ____ character
Smalltalk
superset
null
developer intent
7. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
ARC
conform
developer intent
inheritance hierarchy
8. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
runtime
framework
encapsulation
9. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
conform
properties
long long
synchronous message
10. A ____ _____ is where you forget to free up memory
memory leak
Edit>Refactor>Convert to Objective-C ARC
binary
Smalltalk
11. Objective-C is a _____ of the C language
nonatomic
NSObject
dynamic typing
superset
12. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
link time
category
nonatomic
compile time
13. This symbol denotes a method as being an instance method
method
-
Binary
precedence
14. A protocol declared as a category usually as a category of the NSObject class.
deprecated
zero
informal protocol
dynamic allocation
15. Another name for a class that's defined solely so that other classes can inherit from it.
heap
abstract superclass
@interface
anonymous object
16. ______ operators take a single operand
binary
instance variable
Unitary
strong
17. The _____ function can be used to print a message to the console
printf( )
assignment
subclass
pointers
18. 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
mutex
developer intent
Smalltalk
synchronous message
19. _____ allow indirect access and modification of a variable's value.
9
Pointers
double
@implementation
20. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
NSString
class
compile time
dangling pointer
21. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
NSObject
remote message
weak
deprecated
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.
strong
copy
comma-separated
link time
23. 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
procedures
superset
nil
24. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
synchronous message
receiver
designated
delegates
25. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
abstract class
instance variable
@implementation
mutex
26. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
class
Categories
interface
cannot
27. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
@implementation
Categories
selector
superclass
28. Finding the method implementation to invoke in response to the message
instance
Protocols
dynamic binding
factory object
29. The root class in Objective-C
designated initializer
NSObject
outlet
nil
30. 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.
subclass
procedural programming language
-
namespace
31. 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.
ampersand (&)
outlet
event
polymorphism
32. a+b; is an example of using a _____ operator
abstract superclass
@implementation
-
binary
33. In a format string the place holder for an object is ______
readwrite
%@
procedures
Signed
34. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
chars
Encapsulation
double
assignment
35. Property attribute that causes the setter to store a strong reference to the assigned value
assign
strong
receiver
double
36. ARC is susceptible to retain _____
designated
implementation
cycles
superclass
37. Property attribute that synthesizes both a getter and setter for the property
deprecated
asynchronous message
readwrite
%@
38. Discovering the class of an object at runtime rather than at compile time.
struct
dynamic typing
Unitary
Pointers
39. 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
runtime
designated initializer
+
floating-point
40. 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).
class
message expression
Categories
fields
41. Objective-C's protocols are really about communicating _____ _______
class object
developer intent
id
weak
42. 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.
Unsigned
strong
instance variable
dynamic binding
43. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
designated
chars
AppKit
Cocoa
44. Objective-C binds methods and arguments at _____ instead of compile time
procedural programming language
nil
runtime
square brackets
45. Same as class object. (second way to say it.)
factory object
abstract class
9
chars
46. In the Objective-C language the declaration of a group of methods not associated with any particular class.
Signed
protocol
runtime
Binary
47. 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.
Protocols
selector
instance method
@implementation
48. 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).
implementation
9
nil
abstract class
49. Objective-C objects should use strong or weak ______
attributes
%
chars
deprecated
50. Instance variables are optional in iOS if ________ are used
remote message
mutex
properties
Product>Profile>Leaks>Profile