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. 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).
copy
null
implementation
Unsigned
2. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
runtime
weak
precedence
3. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
struct
structures
@implementation
pointer
4. An object in another application - one that's a potential receiver for a remote message.
developer intent
mutex
event
remote object
5. The first index in an array is valued at ____
event
object
developer intent
zero
6. Discovering the class of an object at runtime rather than at compile time.
binary
dynamic typing
encapsulation
Protocols
7. a+b; is an example of using a _____ operator
runtime
binary
nonatomic
structures
8. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
assignment
delegate
copy
9. _____ allow you to add new methods to existing classes
heap
protocol
Categories
binary
10. 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.
nonatomic
zero
instance variable
Protocols
11. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.
method
@implementation
receiver
instance
12. 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.
runtime
formal protocol
nonatomic
copy
13. An object that acts on behalf of another object.
event
informal protocol
delegate
developer intent
14. Objective-C binds methods and arguments at _____ instead of compile time
structures
struct
pointer
runtime
15. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
class method
cycles
ARC
dispatch table
16. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
%
pointer
designated
structures
17. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
long long
framework
Encapsulation
Binary
18. 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.
unitary
runtime
[receiver message];
memory leak
19. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
Binary
superset
[receiver message];
instance
20. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
Binary
event
C operators
designated
21. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
structures
category
asterisk (*)
fields
22. 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
event
ARC
informal protocol
23. 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.
outlet
abstract class
procedures
readwrite
24. Property attribute that causes the setter to store a copy of the assigned value
precedence
copy
struct
weak
25. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
[receiver message];
remote object
receiver
26. Placing a ____ before a normal variable name gives it's address
NSString
long long
Unsigned
ampersand (&)
27. 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
implementation
synchronous message
runtime
designated
28. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
Cocoa
class
Protocols
message expression
29. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
class
static typing
anonymous object
init
30. Property attribute that synthesizes only a getter for the property
readonly
informal protocol
distributed objects
zero
31. C-style strings are stored in an array of _____
inheritance
ARC
chars
developer intent
32. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
Encapsulation
floating-point
heap
33. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
structures
remote object
designated
34. Same as class object. (first way to say it.)
conform
copy
superset
factory
35. The most flexible C data type: ______
struct
informal protocol
instance variable
factory object
36. An architecture that facilitates communication between objects in different address spaces.
heap
Categories
distributed objects
attributes
37. Data types are divided into two main categories: integer and ______
developer intent
ARC
floating-point
copy
38. A message sent from one application to an object in another application.
remote message
unitary
fields
comma-separated
39. 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
abstract class
instance variable
structures
outlet
40. The root class in Objective-C
pointer
protocol
NSObject
Pointers
41. There are ____ fundamental building blocks in Objective-C
Pointers
NSObject
9
conform
42. A class is said to do this when it declares that it implements all the methods in the protocol.
Enumerations
adopt
distributed objects
[receiver message];
43. ______ operators take a single operand
object
Unitary
heap
ARC
44. 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
readwrite
conform
formal protocol
deprecated
45. The process of setting or reading the value at an address pointed to by a pointer
+
struct
dereference (dereferencing)
instance
46. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
comma-separated
precedence
mutex
abstract class
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.
structures
square brackets
class object
Unsigned
48. Xcode sequence to convert non-ARC apps to ARC
null
Categories
Edit>Refactor>Convert to Objective-C ARC
anonymous object
49. The _____ function can be used to print a message to the console
precedence
chars
printf( )
nil
50. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
NSString
class object
unitary
delegates