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. 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.
namespace
instance method
@implementation
designated initializer
2. 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.
framework
NSObject
compile time
runtime
3. Property attribute that synthesizes accessors that are not thread safe
nonatomic
inheritance
synchronous message
receiver
4. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
nil
value
conform
interface
5. Property attribute that synthesizes only a getter for the property
procedural programming language
readonly
reference counting
formal protocol
6. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
zero
comma-separated
namespace
synchronous message
7. Objective-C's protocols are really about communicating _____ _______
developer intent
nonatomic
selector
Edit>Refactor>Convert to Objective-C ARC
8. 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
superclass
ARC
nil
9. Same as class object. (second way to say it.)
factory object
developer intent
%@
strong
10. Objective-C objects should use strong or weak ______
attributes
reference counting
dynamic binding
nonatomic
11. _____ allow you to add new methods to existing classes
Categories
instance variable
copy
abstract superclass
12. 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
remote message
link time
synchronous message
class
13. There are ____ fundamental building blocks in Objective-C
method
ARC
9
abstract superclass
14. Placing a ____ before a normal variable name gives it's address
Smalltalk
Signed
superclass
ampersand (&)
15. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
asynchronous message
distributed objects
NSString
instance
16. A ____ _____ is where you forget to free up memory
memory leak
attributes
static typing
category
17. ______ data types are always zero or greate
Enumerations
factory object
Unsigned
unitary
18. 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
zero
protocol
dispatch table
conform
19. An architecture that facilitates communication between objects in different address spaces.
reference counting
distributed objects
id
%@
20. _____ data types can be both positive and negative
compile time
zero
unitary
Signed
21. A set of method definitions that is segregated from the rest of the class definition.
delegates
Smalltalk
category
factory object
22. An object of unknown class. Interface is published through protocol declaration.
anonymous object
instance variable
%
object
23. In Objective-C floats are more commonly used than ______
heap
doubles
subclass
Interface Builder
24. 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.
C operators
doubles
abstract class
category
25. Instance variables are optional in iOS if ________ are used
properties
struct
%
@implementation
26. An object id with a value of 0.
long long
nil
NSString
binary
27. ____ provide a concise & elegant method for defining a discrete set of values
assign
subclass
abstract superclass
Enumerations
28. 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.
deprecated
binary
AppKit
Interface Builder
29. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
printf( )
procedures
Unitary
square brackets
30. 3 Common Float data types: float - _____ - CGFloat
double
@interface
inheritance hierarchy
delegate
31. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
conform
dynamic binding
%@
Cocoa
32. Property attribute that synthesizes both a getter and setter for the property
distributed objects
dispatch table
readwrite
designated initializer
33. The first index in an array is valued at ____
abstract superclass
zero
cannot
pointer
34. Any method that can be used by an instance of a class rather than by the class object.
framework
remote object
instance method
receiver
35. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
nonatomic
doubles
Encapsulation
36. When creating a class header file you begin with the _____ keyword and close with the @end keyword
dangling pointer
abstract superclass
zero
@interface
37. A ____ ____ is a situation where you free memory and then accidentally continue to use it
object
dangling pointer
superset
dynamic binding
38. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
superclass
nil
long long
distributed objects
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
selector
%
class
40. A message sent from one application to an object in another application.
inheritance hierarchy
readonly
remote message
delegate
41. 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.
class
reference counting
AppKit
Cocoa
42. Square bracket syntax for calling a method
Pointers
printf( )
implementation
[receiver message];
43. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
selector
designated
outlet
Enumerations
44. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
Edit>Refactor>Convert to Objective-C ARC
framework
inheritance hierarchy
mutex
45. Initializer method traditionally begin with the _____ prefix
init
Interface Builder
@interface
class
46. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
abstract class
assignment
Cocoa
dynamic binding
47. This symbol denotes a method as being a class method
method
+
ampersand (&)
Unsigned
48. To destroy an object set the variable that points to it to _____
NSString
@implementation
nil
category
49. The process of setting or reading the value at an address pointed to by a pointer
pointer
dereference (dereferencing)
message expression
memory leak
50. In object-oriented programming the object that is sent a message.
procedural programming language
receiver
pointer
delegate