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. Property attribute that synthesizes only a getter for the property
link time
readonly
runtime
protocol
2. C-style strings are stored in an array of _____
structures
mutex
-
chars
3. In object-oriented programming the object that is sent a message.
receiver
floating-point
readonly
factory
4. _____ operators take 2 operands
Binary
precedence
factory object
Product>Profile>Leaks>Profile
5. An object in another application - one that's a potential receiver for a remote message.
dispatch table
dynamic typing
remote object
fields
6. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
outlet
@interface
Pointers
7. 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.
formal protocol
structures
Unitary
mutex
8. ARC is susceptible to retain _____
@interface
cycles
asynchronous message
pointers
9. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
deprecated
readonly
inheritance
chars
10. The _____ function can be used to print a message to the console
Enumerations
attributes
instance method
printf( )
11. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
@interface
precedence
instance method
12. _____ 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'.
Encapsulation
precedence
floating-point
pointers
13. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
Categories
init
unitary
asterisk (*)
14. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
id
procedures
message expression
Protocols
15. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
Protocols
cannot
designated initializer
structures
16. 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
mutex
%
adopt
17. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
link time
nil
memory leak
comma-separated
18. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
receiver
structures
assign
19. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
[receiver message];
@interface
assignment
Product>Profile>Leaks>Profile
20. There are ____ fundamental building blocks in Objective-C
9
pointers
link time
structures
21. ____ provide a concise & elegant method for defining a discrete set of values
heap
struct
deprecated
Enumerations
22. In object-oriented programming a procedure that can be executed by an object.
formal protocol
receiver
method
dynamic typing
23. 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
remote message
unitary
ampersand (&)
conform
24. Objective-C objects should use strong or weak ______
remote object
class
attributes
Enumerations
25. Xcode sequence to convert non-ARC apps to ARC
implementation
zero
null
Edit>Refactor>Convert to Objective-C ARC
26. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
dynamic typing
adopt
unitary
precedence
27. a++; is an example of using a _____ operator
zero
unitary
dynamic binding
Signed
28. 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
distributed objects
receiver
readwrite
29. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
NSObject
heap
Cocoa
%
30. This symbol denotes a method as being an instance method
-
square brackets
distributed objects
inheritance hierarchy
31. Instance variables are optional in iOS if ________ are used
precedence
designated
square brackets
properties
32. All objects are created on the _____
readonly
anonymous object
developer intent
heap
33. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
instance
comma-separated
null
34. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
Interface Builder
Signed
properties
35. 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).
subclass
instance method
implementation
remote object
36. 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.
adopt
instance
dangling pointer
floating-point
37. _____ data types can be both positive and negative
event
nil
attributes
Signed
38. Three main categories of more complicated data structures:_______ - arrays and structs
copy
pointers
asynchronous message
Unitary
39. Same as class object. (second way to say it.)
binary
+
conform
factory object
40. ______ data types are always zero or greate
inheritance hierarchy
Cocoa
message
Unsigned
41. Property attribute that causes the setter to store a copy of the assigned value
copy
dynamic typing
namespace
anonymous object
42. ______ operators take a single operand
properties
category
Unitary
readonly
43. Initializer method traditionally begin with the _____ prefix
category
init
assign
object
44. Objective-C is a _____ of the C language
designated initializer
copy
superset
cycles
45. A message sent from one application to an object in another application.
long long
polymorphism
remote message
distributed objects
46. 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.
NSString
designated initializer
%
namespace
47. A class is said to do this when it declares that it implements all the methods in the protocol.
remote object
adopt
procedures
double
48. Objective-C's protocols are really about communicating _____ _______
Unsigned
interface
developer intent
class object
49. 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
designated initializer
synchronous message
id
double
50. Any class that's one step below another class in the inheritance hierarchy.
cycles
instance method
subclass
class