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. ______ data types are always zero or greate
class method
-
link time
Unsigned
2. Objective-C is a _____ of the C language
superset
double
superclass
structures
3. 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
outlet
struct
reference counting
4. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
factory
receiver
mutex
unitary
5. A compiler feature that provides automated memory management
procedures
method
ARC
factory object
6. In the Objective-C language the declaration of a group of methods not associated with any particular class.
factory
abstract superclass
nonatomic
protocol
7. A variable that points to the memory address of another value
outlet
pointer
printf( )
factory object
8. Property attribute that synthesizes both a getter and setter for the property
printf( )
class method
readwrite
distributed objects
9. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
runtime
C operators
procedural programming language
instance
10. 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
synchronous message
abstract class
NSString
delegates
11. The most flexible C data type: ______
struct
dereference (dereferencing)
@implementation
subclass
12. An object of unknown class. Interface is published through protocol declaration.
anonymous object
strong
selector
properties
13. Instance variables are optional in iOS if ________ are used
properties
chars
Smalltalk
cannot
14. Symbol used to denote a placeholder in a format string
inheritance hierarchy
nil
dynamic binding
%
15. In object-oriented programming a procedure that can be executed by an object.
category
binary
method
abstract class
16. Another name for a class that's defined solely so that other classes can inherit from it.
long long
receiver
interface
abstract superclass
17. A ____ _____ is where you forget to free up memory
abstract class
selector
square brackets
memory leak
18. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
dereference (dereferencing)
binary
null
19. ARC is susceptible to retain _____
Protocols
cycles
static typing
readonly
20. 3 Common Float data types: float - _____ - CGFloat
remote object
instance
informal protocol
double
21. a++; is an example of using a _____ operator
unitary
designated
abstract class
distributed objects
22. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
dispatch table
protocol
square brackets
asterisk (*)
23. In a home building analogy a ____ is the blueprint and the object is the house
assignment
class
Encapsulation
runtime
24. _____ 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'.
Interface Builder
Encapsulation
memory leak
synchronous message
25. 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
Protocols
static typing
NSString
pointer
26. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
printf( )
Binary
structures
27. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
[receiver message];
@implementation
Protocols
nil
28. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
receiver
strong
Encapsulation
29. 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.
instance variable
Categories
structures
weak
30. The process of setting or reading the value at an address pointed to by a pointer
distributed objects
dereference (dereferencing)
mutex
chars
31. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
weak
id
implementation
selector
32. 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
asterisk (*)
designated initializer
procedures
double
33. _____ allow you to add new methods to existing classes
asynchronous message
link time
Categories
%
34. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
nonatomic
long long
synchronous message
zero
35. All objects are created on the _____
factory
readwrite
doubles
heap
36. 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.
pointer
reference counting
dispatch table
nonatomic
37. In a format string the place holder for an object is ______
remote object
assign
instance
%@
38. 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.
Enumerations
framework
formal protocol
class object
39. Property attribute that causes the setter to store a copy of the assigned value
comma-separated
copy
Unsigned
dereference (dereferencing)
40. There are ____ fundamental building blocks in Objective-C
deprecated
9
chars
%@
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.
@implementation
object
instance
pointers
42. C-style strings always end with a ____ character
factory object
init
null
pointers
43. To destroy an object set the variable that points to it to _____
anonymous object
nil
Categories
class
44. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
anonymous object
Edit>Refactor>Convert to Objective-C ARC
fields
static typing
45. A method that can operate on class objects rather than instances of the class.
class method
readwrite
formal protocol
ampersand (&)
46. The first index in an array is valued at ____
protocol
zero
inheritance hierarchy
chars
47. In Objective-C floats are more commonly used than ______
zero
instance
memory leak
doubles
48. Finding the method implementation to invoke in response to the message
dynamic binding
+
procedures
superset
49. 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.
properties
dynamic allocation
unitary
long long
50. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects
structures
struct
implementation
-