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.
event
class
instance variable
[receiver message];
2. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
interface
subclass
cannot
designated
3. The root class in Objective-C
readwrite
[receiver message];
NSObject
compile time
4. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
%@
%
dynamic typing
5. C-style strings are stored in an array of _____
abstract class
static typing
chars
outlet
6. 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.
comma-separated
readwrite
Encapsulation
class object
7. To destroy an object set the variable that points to it to _____
remote message
dangling pointer
nil
C operators
8. Property attribute that synthesizes accessors that are not thread safe
instance variable
Categories
NSObject
nonatomic
9. A set of method definitions that is segregated from the rest of the class definition.
readonly
asynchronous message
category
value
10. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
-
procedural programming language
readwrite
11. An object id with a value of 0.
floating-point
nil
dynamic typing
informal protocol
12. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
class
selector
heap
C operators
13. A message sent from one application to an object in another application.
unitary
Product>Profile>Leaks>Profile
remote message
category
14. 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.
encapsulation
message expression
Interface Builder
instance
15. ______ data types are always zero or greate
message expression
link time
comma-separated
Unsigned
16. Discovering the class of an object at runtime rather than at compile time.
square brackets
C operators
dynamic typing
formal protocol
17. This symbol denotes a method as being an instance method
delegates
-
instance
assignment
18. An object that acts on behalf of another object.
synchronous message
asynchronous message
delegate
dangling pointer
19. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
properties
selector
weak
distributed objects
20. A compiler feature that provides automated memory management
ARC
Edit>Refactor>Convert to Objective-C ARC
pointer
dereference (dereferencing)
21. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
abstract superclass
+
designated
instance method
22. 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
unitary
conform
inheritance hierarchy
abstract superclass
23. 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.
Edit>Refactor>Convert to Objective-C ARC
asterisk (*)
runtime
nil
24. The _____ function can be used to print a message to the console
formal protocol
Protocols
printf( )
comma-separated
25. In a home building analogy a ____ is the blueprint and the object is the house
fields
Categories
nonatomic
class
26. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
Signed
value
init
Enumerations
27. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
procedural programming language
double
interface
deprecated
28. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
Protocols
asynchronous message
class
-
29. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
structures
@implementation
message
30. An architecture that facilitates communication between objects in different address spaces.
distributed objects
class object
formal protocol
readwrite
31. Any class that's one step below another class in the inheritance hierarchy.
subclass
asynchronous message
null
dispatch table
32. 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
superset
dereference (dereferencing)
[receiver message];
33. A struct may contain multiple ____ consisting of different data types
event
runtime
init
fields
34. A protocol declared as a category usually as a category of the NSObject class.
dangling pointer
informal protocol
message expression
runtime
35. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
inheritance
Signed
link time
long long
36. 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.
adopt
AppKit
Unsigned
static typing
37. 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.
memory leak
9
namespace
%@
38. Data types are divided into two main categories: integer and ______
floating-point
namespace
conform
Cocoa
39. 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.
static typing
link time
Smalltalk
square brackets
40. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.
reference counting
dispatch table
developer intent
delegate
41. 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).
compile time
implementation
chars
floating-point
42. _____ operators take 2 operands
delegate
+
Unsigned
Binary
43. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
inheritance hierarchy
zero
event
44. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
binary
comma-separated
object
45. _____ 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'.
Encapsulation
struct
selector
Protocols
46. 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.
NSObject
method
conform
outlet
47. Property attribute that causes the setter to store a strong reference to the assigned value
strong
precedence
class
remote object
48. 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).
mutex
outlet
message expression
instance
49. Any method that can be used by an instance of a class rather than by the class object.
readwrite
zero
precedence
instance method
50. Objective-C methods are called using ____ _____
dynamic typing
square brackets
procedures
developer intent