SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. The first index in an array is valued at ____
zero
binary
framework
assignment
2. All objects are created on the _____
Unitary
inheritance hierarchy
Signed
heap
3. 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
@interface
NSString
anonymous object
dereference (dereferencing)
4. 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.
remote message
implementation
reference counting
long long
5. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
superset
ampersand (&)
asterisk (*)
procedures
6. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
dereference (dereferencing)
implementation
pointer
7. A method that can operate on class objects rather than instances of the class.
class method
readwrite
Protocols
Smalltalk
8. To destroy an object set the variable that points to it to _____
nil
superclass
null
readonly
9. 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.
asterisk (*)
link time
object
long long
10. A class is said to do this when it declares that it implements all the methods in the protocol.
Binary
adopt
+
link time
11. Symbol used to denote a placeholder in a format string
Smalltalk
%
square brackets
floating-point
12. Property attribute that causes the setter to store a strong reference to the assigned value
inheritance hierarchy
delegates
strong
instance method
13. In a format string the place holder for an object is ______
init
message
%@
dynamic typing
14. 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.
instance
AppKit
dangling pointer
binary
15. A compiler feature that provides automated memory management
factory object
instance
zero
ARC
16. 3 Common Float data types: float - _____ - CGFloat
dispatch table
class
method
double
17. The root class in Objective-C
Unitary
NSObject
pointers
[receiver message];
18. 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.
attributes
formal protocol
Pointers
assignment
19. Any method that can be used by an instance of a class rather than by the class object.
conform
abstract class
instance method
floating-point
20. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
struct
Unitary
Encapsulation
21. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
Unsigned
runtime
fields
22. In object-oriented programming the object that is sent a message.
receiver
message expression
@interface
binary
23. 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).
synchronous message
message expression
dispatch table
memory leak
24. An object of unknown class. Interface is published through protocol declaration.
anonymous object
Enumerations
factory
Product>Profile>Leaks>Profile
25. There are ____ fundamental building blocks in Objective-C
double
struct
comma-separated
9
26. A message sent from one application to an object in another application.
Unsigned
%@
remote message
readonly
27. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
instance
asynchronous message
factory
cannot
28. The most flexible C data type: ______
factory
copy
struct
asterisk (*)
29. When creating a class header file you begin with the _____ keyword and close with the @end keyword
instance method
@interface
selector
copy
30. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
designated
runtime
id
weak
31. C-style strings always end with a ____ character
null
@interface
nil
abstract class
32. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
@implementation
designated
assign
class object
33. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
reference counting
value
distributed objects
structures
34. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
runtime
dereference (dereferencing)
doubles
C operators
35. Property attribute that synthesizes accessors that are not thread safe
nonatomic
designated
instance method
strong
36. In a home building analogy a ____ is the blueprint and the object is the house
method
synchronous message
dangling pointer
class
37. Objective-C methods are called using ____ _____
Smalltalk
category
structures
square brackets
38. An object in another application - one that's a potential receiver for a remote message.
Smalltalk
remote object
deprecated
selector
39. A protocol declared as a category usually as a category of the NSObject class.
%
informal protocol
conform
strong
40. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
readwrite
Interface Builder
-
ampersand (&)
41. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
class method
dispatch table
struct
precedence
42. Another name for a class that's defined solely so that other classes can inherit from it.
assignment
synchronous message
Enumerations
abstract superclass
43. The _____ function can be used to print a message to the console
designated
Product>Profile>Leaks>Profile
printf( )
binary
44. Data types are divided into two main categories: integer and ______
Categories
Binary
message
floating-point
45. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
Cocoa
receiver
C operators
46. 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
synchronous message
delegates
runtime
init
47. Same as class object. (second way to say it.)
encapsulation
Unitary
factory object
null
48. A struct may contain multiple ____ consisting of different data types
Product>Profile>Leaks>Profile
Pointers
instance
fields
49. 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
fields
asterisk (*)
outlet
50. _____ allow indirect access and modification of a variable's value.
init
Pointers
Encapsulation
namespace