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. _____ 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'.
chars
compile time
Encapsulation
floating-point
2. All objects are created on the _____
inheritance
Smalltalk
heap
init
3. Property attribute that synthesizes both a getter and setter for the property
readwrite
inheritance
struct
remote object
4. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
namespace
dispatch table
Edit>Refactor>Convert to Objective-C ARC
designated
5. In object-oriented programming the object that is sent a message.
static typing
receiver
Categories
assignment
6. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
binary
procedures
long long
Enumerations
7. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
adopt
AppKit
implementation
superclass
8. Objective-C methods are called using ____ _____
copy
square brackets
Categories
heap
9. Objective-C's protocols are really about communicating _____ _______
anonymous object
developer intent
abstract superclass
Edit>Refactor>Convert to Objective-C ARC
10. A class is said to do this when it declares that it implements all the methods in the protocol.
Encapsulation
adopt
pointer
Interface Builder
11. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
interface
Unsigned
doubles
12. a++; is an example of using a _____ operator
unitary
class
chars
AppKit
13. The _____ function can be used to print a message to the console
Signed
printf( )
Unitary
dereference (dereferencing)
14. Same as class object. (first way to say it.)
binary
dynamic binding
null
factory
15. _____ data types can be both positive and negative
id
long long
developer intent
Signed
16. Initializer method traditionally begin with the _____ prefix
init
properties
ARC
floating-point
17. 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.
reference counting
dispatch table
abstract class
init
18. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
Smalltalk
anonymous object
message expression
asterisk (*)
19. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
dynamic typing
struct
static typing
precedence
20. Property attribute that causes the setter to store a copy of the assigned value
assign
copy
chars
zero
21. 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
superclass
compile time
value
22. Square bracket syntax for calling a method
ARC
[receiver message];
outlet
ampersand (&)
23. This symbol denotes a method as being a class method
Interface Builder
factory
+
unitary
24. A method that can operate on class objects rather than instances of the class.
Unitary
copy
class method
reference counting
25. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
dispatch table
mutex
C operators
developer intent
26. An object in another application - one that's a potential receiver for a remote message.
remote object
deprecated
informal protocol
Pointers
27. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
Binary
-
anonymous object
28. A ____ _____ is where you forget to free up memory
memory leak
cycles
doubles
printf( )
29. 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.
Enumerations
nil
readwrite
link time
30. ____ provide a concise & elegant method for defining a discrete set of values
attributes
object
Enumerations
assign
31. To destroy an object set the variable that points to it to _____
nil
struct
C operators
framework
32. Placing a ____ before a normal variable name gives it's address
ampersand (&)
chars
compile time
receiver
33. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
Categories
compile time
interface
square brackets
34. ARC is susceptible to retain _____
cycles
remote object
Cocoa
polymorphism
35. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
NSString
dynamic binding
cannot
36. The process of setting or reading the value at an address pointed to by a pointer
event
dereference (dereferencing)
Smalltalk
strong
37. 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.
class method
abstract class
implementation
%
38. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
link time
nonatomic
Smalltalk
formal protocol
39. A set of method definitions that is segregated from the rest of the class definition.
category
instance method
asterisk (*)
nil
40. Three main categories of more complicated data structures:_______ - arrays and structs
implementation
+
pointers
protocol
41. In a home building analogy a ____ is the blueprint and the object is the house
deprecated
ampersand (&)
class
abstract class
42. _____ allow you to add new methods to existing classes
null
Categories
floating-point
fields
43. Same as class object. (second way to say it.)
id
factory object
value
@interface
44. a+b; is an example of using a _____ operator
instance method
instance
[receiver message];
binary
45. Any method that can be used by an instance of a class rather than by the class object.
weak
Encapsulation
instance method
dynamic typing
46. The most flexible C data type: ______
Encapsulation
precedence
struct
class object
47. In Objective-C floats are more commonly used than ______
init
doubles
message expression
instance
48. An object that acts on behalf of another object.
attributes
precedence
outlet
delegate
49. 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
attributes
object
struct
designated initializer
50. Instance variables are optional in iOS if ________ are used
struct
properties
Interface Builder
message expression