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. 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.
anonymous object
instance variable
Signed
Unitary
2. Objective-C objects should use strong or weak ______
receiver
attributes
dangling pointer
dereference (dereferencing)
3. The process of setting or reading the value at an address pointed to by a pointer
Smalltalk
dynamic allocation
dereference (dereferencing)
comma-separated
4. 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
remote message
dynamic allocation
Encapsulation
5. An object in another application - one that's a potential receiver for a remote message.
remote object
precedence
dispatch table
9
6. Discovering the class of an object at runtime rather than at compile time.
memory leak
dynamic typing
asterisk (*)
superset
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
factory object
nonatomic
designated initializer
encapsulation
8. In object-oriented programming the object that is sent a message.
precedence
instance
receiver
event
9. The root class in Objective-C
Edit>Refactor>Convert to Objective-C ARC
NSObject
init
delegate
10. 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.
adopt
dispatch table
nil
encapsulation
11. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
assign
pointer
factory
12. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
null
C operators
Categories
Binary
13. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
dispatch table
framework
instance variable
14. 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.
readwrite
designated initializer
link time
delegates
15. Another name for a class that's defined solely so that other classes can inherit from it.
@interface
abstract superclass
instance variable
conform
16. 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
conform
%
subclass
17. A compiler feature that provides automated memory management
cycles
struct
ARC
zero
18. 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.
abstract class
Cocoa
instance method
inheritance
19. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.
formal protocol
instance method
Categories
Signed
20. _____ allow indirect access and modification of a variable's value.
polymorphism
strong
instance
Pointers
21. A struct may contain multiple ____ consisting of different data types
+
fields
double
remote message
22. A class is said to do this when it declares that it implements all the methods in the protocol.
asynchronous message
adopt
id
fields
23. An object that acts on behalf of another object.
Unsigned
chars
cycles
delegate
24. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
id
assignment
synchronous message
assign
25. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
struct
designated
framework
interface
26. A variable that points to the memory address of another value
runtime
delegate
null
pointer
27. This symbol denotes a method as being a class method
doubles
%@
+
synchronous message
28. 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).
doubles
square brackets
message expression
designated
29. ______ operators take a single operand
Unitary
binary
readwrite
superclass
30. In a home building analogy a ____ is the blueprint and the object is the house
factory
asynchronous message
class
object
31. The most flexible C data type: ______
+
struct
event
Smalltalk
32. _____ 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'.
runtime
Encapsulation
value
Unsigned
33. Square bracket syntax for calling a method
binary
[receiver message];
%
doubles
34. 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
pointers
conform
outlet
abstract class
35. To destroy an object set the variable that points to it to _____
nil
dynamic binding
designated
readonly
36. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
chars
interface
runtime
37. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
+
id
factory
38. ARC is susceptible to retain _____
static typing
reference counting
cycles
precedence
39. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
square brackets
weak
precedence
interface
40. Finding the method implementation to invoke in response to the message
dynamic binding
runtime
method
weak
41. The _____ function can be used to print a message to the console
class method
dynamic allocation
Pointers
printf( )
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.
distributed objects
designated initializer
id
AppKit
43. Same as class object. (first way to say it.)
ARC
%@
outlet
factory
44. Any method that can be used by an instance of a class rather than by the class object.
encapsulation
interface
instance method
%
45. 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
unitary
NSString
floating-point
assign
46. a+b; is an example of using a _____ operator
binary
instance
assignment
Unitary
47. C-style strings always end with a ____ character
null
procedural programming language
instance
dynamic binding
48. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
framework
dispatch table
doubles
49. Property attribute that synthesizes only a getter for the property
runtime
readonly
Binary
Enumerations
50. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
NSString
inheritance
Pointers
procedural programming language