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. In Objective-C floats are more commonly used than ______
procedural programming language
precedence
attributes
doubles
2. 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.
designated initializer
abstract class
subclass
instance method
3. A message sent from one application to an object in another application.
remote message
inheritance
NSString
printf( )
4. A ____ _____ is where you forget to free up memory
Binary
memory leak
runtime
object
5. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
link time
procedures
pointer
6. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
class object
assignment
compile time
anonymous object
7. When creating a class header file you begin with the _____ keyword and close with the @end keyword
mutex
floating-point
asynchronous message
@interface
8. a+b; is an example of using a _____ operator
unitary
binary
event
printf( )
9. The first index in an array is valued at ____
nil
subclass
assign
zero
10. 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.
delegate
object
struct
Product>Profile>Leaks>Profile
11. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
abstract superclass
Binary
class
12. The root class in Objective-C
NSObject
attributes
developer intent
runtime
13. Finding the method implementation to invoke in response to the message
runtime
Enumerations
dynamic binding
distributed objects
14. Objective-C's protocols are really about communicating _____ _______
developer intent
binary
interface
conform
15. Objective-C is a _____ of the C language
superset
encapsulation
message expression
abstract class
16. Property attribute that synthesizes only a getter for the property
fields
cannot
-
readonly
17. 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
cannot
copy
@implementation
NSString
18. A compiler feature that provides automated memory management
chars
ARC
instance
dynamic binding
19. Data types are divided into two main categories: integer and ______
doubles
dynamic typing
@interface
floating-point
20. a++; is an example of using a _____ operator
value
assign
unitary
Interface Builder
21. The _____ function can be used to print a message to the console
delegates
protocol
printf( )
attributes
22. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
selector
precedence
procedures
distributed objects
23. _____ allow indirect access and modification of a variable's value.
class
remote message
Pointers
polymorphism
24. 3 Common Float data types: float - _____ - CGFloat
developer intent
double
dereference (dereferencing)
structures
25. 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
NSString
implementation
procedural programming language
26. An object of unknown class. Interface is published through protocol declaration.
encapsulation
anonymous object
heap
inheritance
27. A variable that points to the memory address of another value
object
instance
properties
pointer
28. Symbol used to denote a placeholder in a format string
%
abstract class
protocol
Edit>Refactor>Convert to Objective-C ARC
29. Objective-C methods are called using ____ _____
zero
pointers
NSString
square brackets
30. Initializer method traditionally begin with the _____ prefix
square brackets
event
static typing
init
31. _____ allow you to add new methods to existing classes
runtime
class
Categories
Enumerations
32. Three main categories of more complicated data structures:_______ - arrays and structs
dynamic allocation
dynamic binding
pointers
Categories
33. Any class that's one step below another class in the inheritance hierarchy.
subclass
adopt
synchronous message
Encapsulation
34. Property attribute that synthesizes accessors that are not thread safe
Unitary
procedures
Categories
nonatomic
35. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
long long
dereference (dereferencing)
heap
asterisk (*)
36. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
superclass
inheritance
9
@interface
37. 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.
Encapsulation
precedence
dereference (dereferencing)
dynamic allocation
38. This symbol denotes a method as being an instance method
strong
implementation
framework
-
39. Instance variables are optional in iOS if ________ are used
properties
%@
Pointers
AppKit
40. An object that acts on behalf of another object.
delegate
outlet
selector
-
41. Placing a ____ before a normal variable name gives it's address
floating-point
method
ampersand (&)
fields
42. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
subclass
Signed
delegates
outlet
43. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
event
procedures
long long
weak
44. 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
inheritance
Unsigned
reference counting
45. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
Binary
structures
polymorphism
nil
46. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
message
adopt
procedural programming language
47. A set of method definitions that is segregated from the rest of the class definition.
object
category
doubles
AppKit
48. All objects are created on the _____
heap
procedures
precedence
strong
49. C-style strings always end with a ____ character
formal protocol
null
structures
abstract superclass
50. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
strong
instance variable
fields
implementation