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. Objective-C binds methods and arguments at _____ instead of compile time
delegates
nil
Encapsulation
runtime
2. Any method that can be used by an instance of a class rather than by the class object.
dereference (dereferencing)
heap
@interface
instance method
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
selector
synchronous message
C operators
-
4. Placing a ____ before a normal variable name gives it's address
null
+
Unitary
ampersand (&)
5. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
synchronous message
factory
value
remote object
6. Same as class object. (first way to say it.)
@interface
Cocoa
Interface Builder
factory
7. _____ data types can be both positive and negative
method
@implementation
Signed
NSString
8. 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.
instance variable
formal protocol
interface
9
9. 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.
C operators
conform
namespace
Binary
10. _____ allow indirect access and modification of a variable's value.
Pointers
ampersand (&)
static typing
Categories
11. An object that acts on behalf of another object.
Protocols
encapsulation
delegate
-
12. 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
category
Edit>Refactor>Convert to Objective-C ARC
NSObject
13. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
Unsigned
namespace
procedural programming language
superclass
14. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
9
copy
Smalltalk
C operators
15. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
unitary
value
Pointers
16. Same as class object. (second way to say it.)
abstract class
instance
strong
factory object
17. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
9
designated
reference counting
Cocoa
18. The most flexible C data type: ______
unitary
strong
struct
Enumerations
19. 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
deprecated
designated initializer
category
instance variable
20. 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
AppKit
NSString
delegate
9
21. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
dynamic allocation
class method
+
chars
22. Any class that's one step below another class in the inheritance hierarchy.
Product>Profile>Leaks>Profile
method
square brackets
subclass
23. C-style strings are stored in an array of _____
procedural programming language
superclass
readonly
chars
24. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
id
dynamic binding
Enumerations
interface
25. Objective-C objects should use strong or weak ______
attributes
remote message
designated initializer
strong
26. 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.
assignment
square brackets
outlet
doubles
27. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
[receiver message];
Encapsulation
abstract superclass
designated
28. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
Cocoa
cannot
precedence
AppKit
29. A struct may contain multiple ____ consisting of different data types
strong
fields
reference counting
Enumerations
30. 3 Common Float data types: float - _____ - CGFloat
double
printf( )
object
link time
31. An architecture that facilitates communication between objects in different address spaces.
procedural programming language
deprecated
distributed objects
asynchronous message
32. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
assign
id
polymorphism
33. An object in another application - one that's a potential receiver for a remote message.
distributed objects
remote object
nil
protocol
34. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
remote message
Protocols
class method
remote object
35. Three main categories of more complicated data structures:_______ - arrays and structs
NSString
pointers
protocol
readonly
36. A method that can operate on class objects rather than instances of the class.
class method
doubles
reference counting
interface
37. 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.
nil
dynamic typing
class
AppKit
38. In object-oriented programming the object that is sent a message.
ARC
receiver
readwrite
dynamic allocation
39. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
anonymous object
cycles
cannot
40. ____ provide a concise & elegant method for defining a discrete set of values
anonymous object
runtime
Enumerations
Unitary
41. Square bracket syntax for calling a method
[receiver message];
inheritance hierarchy
asterisk (*)
delegates
42. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
link time
nonatomic
instance method
43. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
superset
struct
class
Enumerations
44. Property attribute that causes the setter to store a copy of the assigned value
cannot
message expression
copy
assign
45. Property attribute where the setter stores the assigned value but does not perform any memory management.
category
polymorphism
assign
interface
46. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
runtime
procedural programming language
event
init
47. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
static typing
interface
compile time
link time
48. Xcode sequence to examine an app for memory leaks or retain cycles
doubles
double
mutex
Product>Profile>Leaks>Profile
49. An object id with a value of 0.
NSString
instance
anonymous object
nil
50. 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
ARC
Binary
strong