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. An object of unknown class. Interface is published through protocol declaration.
category
message
namespace
anonymous object
2. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
remote message
formal protocol
delegate
@implementation
3. When creating a class header file you begin with the _____ keyword and close with the @end keyword
Pointers
superclass
@interface
Protocols
4. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
Smalltalk
object
class
5. _____ data types can be both positive and negative
factory
Signed
weak
Pointers
6. Instance variables are optional in iOS if ________ are used
Signed
%@
value
properties
7. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
Interface Builder
ARC
abstract superclass
8. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
ampersand (&)
readonly
interface
9. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
zero
asterisk (*)
remote message
Unitary
10. This symbol denotes a method as being a class method
class method
+
doubles
factory
11. _____ 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'.
informal protocol
protocol
Encapsulation
dynamic allocation
12. A variable that points to the memory address of another value
factory
object
event
pointer
13. Objective-C is a _____ of the C language
factory object
9
message
superset
14. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
printf( )
polymorphism
chars
copy
15. 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
designated initializer
printf( )
asynchronous message
dangling pointer
16. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
deprecated
chars
ARC
17. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
protocol
floating-point
factory
18. 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
value
class
structures
+
19. In Objective-C floats are more commonly used than ______
compile time
doubles
interface
instance method
20. 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.
event
protocol
designated
id
21. C-style strings always end with a ____ character
null
pointers
Unitary
instance
22. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
runtime
readwrite
designated
23. 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).
precedence
implementation
encapsulation
double
24. Property attribute that causes the setter to store a copy of the assigned value
copy
%
structures
Signed
25. To destroy an object set the variable that points to it to _____
mutex
[receiver message];
outlet
nil
26. A ____ ____ is a situation where you free memory and then accidentally continue to use it
ARC
dangling pointer
subclass
assignment
27. Property attribute that synthesizes both a getter and setter for the property
structures
readwrite
@interface
object
28. _____ allow you to add new methods to existing classes
ampersand (&)
Categories
AppKit
procedures
29. 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.
copy
Pointers
formal protocol
class method
30. The most flexible C data type: ______
strong
superset
struct
encapsulation
31. _____ operators take 2 operands
dispatch table
Binary
Unitary
@implementation
32. Any class that's one step below another class in the inheritance hierarchy.
value
developer intent
subclass
floating-point
33. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
Product>Profile>Leaks>Profile
delegates
receiver
weak
34. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
runtime
informal protocol
Enumerations
interface
35. Symbol used to denote a placeholder in a format string
struct
readwrite
%@
%
36. In the Objective-C language the declaration of a group of methods not associated with any particular class.
pointer
doubles
protocol
assignment
37. 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
class
designated initializer
Cocoa
conform
38. Objective-C objects should use strong or weak ______
pointers
attributes
static typing
id
39. 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.
designated
object
informal protocol
Interface Builder
40. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
polymorphism
protocol
chars
comma-separated
41. Three main categories of more complicated data structures:_______ - arrays and structs
floating-point
pointers
outlet
interface
42. All objects are created on the _____
comma-separated
init
heap
procedures
43. An object in another application - one that's a potential receiver for a remote message.
remote object
method
procedural programming language
deprecated
44. Xcode sequence to convert non-ARC apps to ARC
NSObject
Enumerations
Edit>Refactor>Convert to Objective-C ARC
superclass
45. In object-oriented programming the object that is sent a message.
binary
@implementation
Edit>Refactor>Convert to Objective-C ARC
receiver
46. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
binary
attributes
Protocols
nil
47. A compiler feature that provides automated memory management
abstract superclass
factory
floating-point
ARC
48. Property attribute where the setter stores the assigned value but does not perform any memory management.
heap
assign
properties
designated initializer
49. 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.
pointer
Interface Builder
delegates
receiver
50. 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.
message
abstract class
comma-separated
Cocoa