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. 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.
memory leak
@interface
anonymous object
class object
2. This symbol denotes a method as being an instance method
-
event
framework
@implementation
3. 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
assignment
floating-point
id
synchronous message
4. _____ data types can be both positive and negative
Signed
developer intent
readonly
AppKit
5. 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
init
Smalltalk
strong
6. This symbol denotes a method as being a class method
+
properties
superset
assignment
7. The root class in Objective-C
NSObject
Unitary
%
namespace
8. An object that acts on behalf of another object.
Edit>Refactor>Convert to Objective-C ARC
developer intent
delegate
message expression
9. A set of method definitions that is segregated from the rest of the class definition.
delegate
compile time
runtime
category
10. In the Objective-C language the declaration of a group of methods not associated with any particular class.
formal protocol
Categories
protocol
asynchronous message
11. Xcode sequence to convert non-ARC apps to ARC
formal protocol
Edit>Refactor>Convert to Objective-C ARC
NSObject
informal protocol
12. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
framework
long long
superset
protocol
13. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
%@
weak
interface
deprecated
14. Square bracket syntax for calling a method
[receiver message];
%
object
delegate
15. 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
nonatomic
conform
properties
message expression
16. A variable that points to the memory address of another value
pointer
Product>Profile>Leaks>Profile
receiver
readonly
17. ____ provide a concise & elegant method for defining a discrete set of values
class method
runtime
dangling pointer
Enumerations
18. Objective-C's protocols are really about communicating _____ _______
heap
long long
inheritance
developer intent
19. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
instance method
-
comma-separated
precedence
20. A method that can operate on class objects rather than instances of the class.
class method
nonatomic
delegate
runtime
21. Initializer method traditionally begin with the _____ prefix
remote object
cannot
value
init
22. _____ 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'.
precedence
Unitary
static typing
Encapsulation
23. The first index in an array is valued at ____
null
zero
precedence
Protocols
24. To destroy an object set the variable that points to it to _____
nil
factory
Cocoa
pointers
25. ARC is susceptible to retain _____
AppKit
cycles
id
instance
26. 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
instance
implementation
assignment
27. Objective-C binds methods and arguments at _____ instead of compile time
runtime
delegate
dispatch table
message
28. Symbol used to denote a placeholder in a format string
adopt
%
cannot
superclass
29. In object-oriented programming the object that is sent a message.
remote message
AppKit
pointer
receiver
30. When creating a class header file you begin with the _____ keyword and close with the @end keyword
pointer
double
@interface
heap
31. Property attribute that causes the setter to store a copy of the assigned value
factory object
copy
superset
floating-point
32. Property attribute that synthesizes both a getter and setter for the property
strong
inheritance hierarchy
readwrite
binary
33. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
floating-point
Enumerations
Unsigned
class
34. a+b; is an example of using a _____ operator
designated
binary
init
+
35. 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
designated initializer
NSString
reference counting
category
36. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
attributes
pointers
value
+
37. In a format string the place holder for an object is ______
long long
heap
copy
%@
38. Property attribute that synthesizes accessors that are not thread safe
double
Unsigned
nonatomic
Edit>Refactor>Convert to Objective-C ARC
39. Three main categories of more complicated data structures:_______ - arrays and structs
heap
[receiver message];
link time
pointers
40. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
%
dereference (dereferencing)
selector
41. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
init
cannot
%
runtime
42. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
cannot
asterisk (*)
instance variable
remote message
43. Property attribute where the setter stores the assigned value but does not perform any memory management.
delegates
formal protocol
assign
ampersand (&)
44. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
dynamic binding
%
polymorphism
assignment
45. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
zero
copy
encapsulation
46. Property attribute that synthesizes only a getter for the property
dangling pointer
encapsulation
readonly
pointers
47. 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.
NSString
instance variable
factory
cannot
48. Instance variables are optional in iOS if ________ are used
object
properties
delegates
%@
49. 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
structures
Enumerations
distributed objects
%
50. Any class that's one step below another class in the inheritance hierarchy.
dynamic binding
cycles
subclass
memory leak