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. All objects are created on the _____
delegate
C operators
reference counting
heap
2. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
ampersand (&)
Categories
-
3. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
Unitary
binary
init
4. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
inheritance
struct
mutex
5. A compiler feature that provides automated memory management
Pointers
properties
doubles
ARC
6. Data types are divided into two main categories: integer and ______
compile time
floating-point
adopt
deprecated
7. 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
developer intent
Protocols
dereference (dereferencing)
8. _____ 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'.
readwrite
value
inheritance
Encapsulation
9. 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
struct
receiver
encapsulation
10. a++; is an example of using a _____ operator
unitary
superset
event
receiver
11. 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.
cannot
asynchronous message
superset
ampersand (&)
12. An architecture that facilitates communication between objects in different address spaces.
interface
distributed objects
dynamic typing
double
13. Discovering the class of an object at runtime rather than at compile time.
selector
informal protocol
dynamic typing
encapsulation
14. 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
dispatch table
runtime
structures
15. Objective-C's protocols are really about communicating _____ _______
delegates
developer intent
mutex
assign
16. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
long long
%
%@
event
17. Finding the method implementation to invoke in response to the message
compile time
fields
dynamic binding
ARC
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.
factory object
Categories
assign
abstract class
19. _____ allow indirect access and modification of a variable's value.
Enumerations
Pointers
long long
instance variable
20. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
implementation
@implementation
class method
Cocoa
21. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
init
message
Encapsulation
dispatch table
22. In object-oriented programming a procedure that can be executed by an object.
Encapsulation
method
procedures
ARC
23. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
cannot
Binary
heap
deprecated
24. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
binary
dangling pointer
procedural programming language
25. 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
anonymous object
unitary
pointer
26. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
readwrite
protocol
Signed
27. 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
floating-point
square brackets
receiver
conform
28. The first index in an array is valued at ____
mutex
zero
formal protocol
polymorphism
29. 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.
inheritance
instance variable
zero
deprecated
30. Objective-C methods are called using ____ _____
square brackets
@interface
NSObject
Smalltalk
31. 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.
pointers
inheritance hierarchy
Signed
null
32. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
nil
cannot
square brackets
compile time
33. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
class
Smalltalk
memory leak
Edit>Refactor>Convert to Objective-C ARC
34. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
value
polymorphism
class
remote object
35. ______ operators take a single operand
encapsulation
designated
static typing
Unitary
36. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
interface
implementation
precedence
Interface Builder
37. Three main categories of more complicated data structures:_______ - arrays and structs
[receiver message];
pointers
AppKit
inheritance hierarchy
38. a+b; is an example of using a _____ operator
binary
delegates
zero
synchronous message
39. Property attribute that synthesizes accessors that are not thread safe
superset
nonatomic
unitary
9
40. 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
@implementation
readwrite
deprecated
structures
41. 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).
C operators
message expression
assignment
dynamic binding
42. A message sent from one application to an object in another application.
inheritance hierarchy
remote message
class
remote object
43. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
strong
assignment
precedence
instance
44. This symbol denotes a method as being an instance method
anonymous object
-
%
chars
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
event
reference counting
instance method
synchronous message
46. _____ operators take 2 operands
remote object
printf( )
NSString
Binary
47. 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.
static typing
class object
AppKit
-
48. An object that acts on behalf of another object.
delegate
struct
superclass
+
49. 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
Pointers
distributed objects
delegates
designated initializer
50. Same as class object. (first way to say it.)
Unsigned
dangling pointer
factory
runtime