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. Same as class object. (first way to say it.)
informal protocol
subclass
factory
remote message
2. 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.
[receiver message];
Interface Builder
long long
doubles
3. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
9
instance
+
long long
4. In a home building analogy a ____ is the blueprint and the object is the house
anonymous object
memory leak
class
square brackets
5. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
dereference (dereferencing)
Encapsulation
reference counting
6. a+b; is an example of using a _____ operator
binary
instance
category
double
7. A struct may contain multiple ____ consisting of different data types
binary
adopt
asynchronous message
fields
8. The process of setting or reading the value at an address pointed to by a pointer
asynchronous message
dereference (dereferencing)
fields
structures
9. In Objective-C floats are more commonly used than ______
id
doubles
anonymous object
synchronous message
10. C-style strings always end with a ____ character
AppKit
null
instance method
nil
11. Property attribute that synthesizes only a getter for the property
designated
delegate
selector
readonly
12. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
superset
nil
inheritance hierarchy
compile time
13. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
procedures
Categories
factory object
14. The most flexible C data type: ______
delegates
procedures
class method
struct
15. This symbol denotes a method as being a class method
id
+
asynchronous message
precedence
16. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met
printf( )
instance variable
conform
mutex
17. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
%@
precedence
object
Interface Builder
18. _____ operators take 2 operands
Binary
%@
factory object
remote message
19. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
cycles
instance
C operators
20. Objective-C objects should use strong or weak ______
attributes
namespace
nil
readwrite
21. 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
fields
asterisk (*)
designated initializer
binary
22. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
strong
zero
designated initializer
23. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
adopt
dereference (dereferencing)
asynchronous message
square brackets
24. Property attribute that causes the setter to store a strong reference to the assigned value
assignment
strong
AppKit
protocol
25. In a format string the place holder for an object is ______
developer intent
class
%@
long long
26. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
Cocoa
readonly
remote object
27. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
Interface Builder
Unitary
%
28. This symbol denotes a method as being an instance method
dereference (dereferencing)
-
Signed
memory leak
29. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
class
mutex
nonatomic
protocol
30. Property attribute that causes the setter to store a copy of the assigned value
pointers
copy
anonymous object
mutex
31. A method that can operate on class objects rather than instances of the class.
polymorphism
Enumerations
Binary
class method
32. In object-oriented programming a procedure that can be executed by an object.
cannot
class
method
Smalltalk
33. 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.
cycles
NSObject
Binary
instance variable
34. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
Binary
formal protocol
cannot
35. Same as class object. (second way to say it.)
synchronous message
@interface
compile time
factory object
36. Objective-C is a _____ of the C language
class method
compile time
dynamic allocation
superset
37. _____ 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'.
factory object
Encapsulation
@implementation
designated initializer
38. Square bracket syntax for calling a method
link time
chars
message expression
[receiver message];
39. There are ____ fundamental building blocks in Objective-C
9
abstract superclass
printf( )
readwrite
40. An object that acts on behalf of another object.
designated initializer
procedural programming language
instance method
delegate
41. 3 Common Float data types: float - _____ - CGFloat
double
readwrite
comma-separated
cannot
42. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
dynamic typing
chars
long long
static typing
43. 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.
interface
formal protocol
asynchronous message
category
44. Three main categories of more complicated data structures:_______ - arrays and structs
class
cycles
pointers
readwrite
45. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
9
developer intent
polymorphism
remote object
46. 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).
implementation
dynamic allocation
asterisk (*)
@interface
47. 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.
dereference (dereferencing)
designated
reference counting
mutex
48. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
NSString
Edit>Refactor>Convert to Objective-C ARC
deprecated
abstract class
49. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
asynchronous message
instance method
chars
50. An object id with a value of 0.
nil
asterisk (*)
assignment
Interface Builder