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 process of setting or reading the value at an address pointed to by a pointer
id
double
AppKit
dereference (dereferencing)
2. A protocol declared as a category usually as a category of the NSObject class.
fields
%
informal protocol
instance
3. Property attribute where the setter stores the assigned value but does not perform any memory management.
designated initializer
Enumerations
mutex
assign
4. _____ data types can be both positive and negative
abstract class
memory leak
Binary
Signed
5. This symbol denotes a method as being a class method
+
nil
Binary
informal protocol
6. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
fields
designated
remote object
superclass
7. Xcode sequence to examine an app for memory leaks or retain cycles
mutex
Product>Profile>Leaks>Profile
remote message
Pointers
8. a+b; is an example of using a _____ operator
binary
+
runtime
precedence
9. 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).
remote message
implementation
inheritance
class
10. C-style strings always end with a ____ character
designated initializer
null
Encapsulation
remote message
11. An object that acts on behalf of another object.
event
unitary
inheritance
delegate
12. Objective-C's protocols are really about communicating _____ _______
developer intent
square brackets
static typing
category
13. ______ operators take a single operand
dynamic allocation
Unitary
dereference (dereferencing)
message
14. 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.
fields
9
mutex
formal protocol
15. _____ 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
outlet
assignment
%@
16. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
ARC
Signed
remote object
value
17. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dynamic allocation
%@
dangling pointer
cycles
18. 3 Common Float data types: float - _____ - CGFloat
double
Edit>Refactor>Convert to Objective-C ARC
developer intent
anonymous object
19. 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.
abstract superclass
Categories
namespace
pointer
20. Objective-C is a _____ of the C language
dangling pointer
null
instance method
superset
21. The root class in Objective-C
class
asynchronous message
value
NSObject
22. 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
Smalltalk
instance
procedures
designated initializer
23. Any class that's one step below another class in the inheritance hierarchy.
doubles
dispatch table
subclass
factory
24. To destroy an object set the variable that points to it to _____
protocol
%
nil
abstract superclass
25. Property attribute that synthesizes both a getter and setter for the property
pointer
framework
readwrite
readonly
26. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
dynamic allocation
superset
properties
structures
27. A ____ _____ is where you forget to free up memory
memory leak
ARC
factory object
zero
28. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
Enumerations
remote message
compile time
superclass
29. 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
fields
structures
printf( )
30. 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.
chars
factory object
instance
reference counting
31. Objective-C objects should use strong or weak ______
attributes
value
anonymous object
comma-separated
32. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
Edit>Refactor>Convert to Objective-C ARC
9
nil
designated
33. The _____ function can be used to print a message to the console
printf( )
procedural programming language
assign
@implementation
34. A set of method definitions that is segregated from the rest of the class definition.
category
Pointers
copy
strong
35. An object id with a value of 0.
nil
Encapsulation
Unitary
precedence
36. Initializer method traditionally begin with the _____ prefix
asynchronous message
double
init
ampersand (&)
37. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
conform
cannot
superclass
dereference (dereferencing)
38. 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.
instance method
selector
class method
reference counting
39. _____ allow indirect access and modification of a variable's value.
Interface Builder
instance method
memory leak
Pointers
40. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
deprecated
ARC
instance variable
C operators
41. Property attribute that causes the setter to store a strong reference to the assigned value
-
strong
9
static typing
42. This symbol denotes a method as being an instance method
asterisk (*)
protocol
-
properties
43. In a home building analogy a ____ is the blueprint and the object is the house
Signed
class
reference counting
inheritance
44. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
struct
instance method
Unitary
interface
45. A method that can operate on class objects rather than instances of the class.
assign
long long
class method
AppKit
46. Any method that can be used by an instance of a class rather than by the class object.
instance method
protocol
runtime
nonatomic
47. A compiler feature that provides automated memory management
init
Cocoa
assign
ARC
48. There are ____ fundamental building blocks in Objective-C
9
Product>Profile>Leaks>Profile
abstract superclass
asynchronous message
49. Placing a ____ before a normal variable name gives it's address
dereference (dereferencing)
C operators
procedures
ampersand (&)
50. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
weak
@implementation
object
Interface Builder