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 nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
Edit>Refactor>Convert to Objective-C ARC
procedures
polymorphism
+
2. Property attribute that synthesizes only a getter for the property
object
event
subclass
readonly
3. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
attributes
+
dynamic allocation
4. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
deprecated
encapsulation
compile time
class method
5. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
message expression
comma-separated
+
id
6. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
instance variable
object
Edit>Refactor>Convert to Objective-C ARC
7. C-style strings are stored in an array of _____
synchronous message
%
struct
chars
8. All objects are created on the _____
%
heap
anonymous object
Product>Profile>Leaks>Profile
9. An architecture that facilitates communication between objects in different address spaces.
remote object
distributed objects
runtime
asterisk (*)
10. Finding the method implementation to invoke in response to the message
comma-separated
class
Smalltalk
dynamic binding
11. Same as class object. (first way to say it.)
mutex
category
procedural programming language
factory
12. 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
value
asterisk (*)
Edit>Refactor>Convert to Objective-C ARC
13. _____ data types can be both positive and negative
Unsigned
@implementation
message
Signed
14. To destroy an object set the variable that points to it to _____
designated
dynamic typing
method
nil
15. Any class that's one step below another class in the inheritance hierarchy.
nonatomic
developer intent
subclass
namespace
16. ______ operators take a single operand
delegate
dynamic binding
Unitary
null
17. Square bracket syntax for calling a method
[receiver message];
weak
factory
Smalltalk
18. In object-oriented programming the object that is sent a message.
comma-separated
asynchronous message
receiver
ARC
19. ARC is susceptible to retain _____
developer intent
delegate
cycles
superclass
20. 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.
abstract class
namespace
cycles
assignment
21. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
Encapsulation
static typing
delegates
conform
22. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
pointers
Edit>Refactor>Convert to Objective-C ARC
superclass
Categories
23. Symbol used to denote a placeholder in a format string
%
ampersand (&)
namespace
nil
24. A compiler feature that provides automated memory management
NSObject
message expression
dispatch table
ARC
25. In the Objective-C language the declaration of a group of methods not associated with any particular class.
instance variable
encapsulation
protocol
delegates
26. Xcode sequence to convert non-ARC apps to ARC
Unitary
remote object
%
Edit>Refactor>Convert to Objective-C ARC
27. The most flexible C data type: ______
namespace
struct
class object
Pointers
28. 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.
framework
comma-separated
reference counting
compile time
29. Property attribute that causes the setter to store a copy of the assigned value
copy
procedures
value
id
30. Objective-C methods are called using ____ _____
[receiver message];
abstract class
square brackets
floating-point
31. 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
+
NSString
compile time
factory
32. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
formal protocol
event
deprecated
outlet
33. 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.
Pointers
conform
selector
adopt
34. The process of setting or reading the value at an address pointed to by a pointer
square brackets
Encapsulation
9
dereference (dereferencing)
35. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Signed
adopt
NSObject
Protocols
36. _____ allow you to add new methods to existing classes
Categories
inheritance hierarchy
instance
C operators
37. 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.
Interface Builder
nil
9
properties
38. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
assignment
unitary
namespace
value
39. An object id with a value of 0.
null
delegates
category
nil
40. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
Categories
inheritance
procedural programming language
protocol
41. 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.
class
unitary
object
nil
42. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
link time
Smalltalk
Pointers
dynamic allocation
43. Initializer method traditionally begin with the _____ prefix
init
dynamic allocation
outlet
Categories
44. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
dangling pointer
weak
AppKit
instance
45. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
unitary
factory
namespace
46. Same as class object. (second way to say it.)
factory object
object
message expression
null
47. Objective-C binds methods and arguments at _____ instead of compile time
deprecated
runtime
inheritance
subclass
48. a+b; is an example of using a _____ operator
dynamic binding
instance method
binary
informal protocol
49. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
abstract superclass
inheritance
event
selector
50. An object that acts on behalf of another object.
instance
nonatomic
delegate
dynamic typing