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 time when source code is compiled; constrained by the amount and kind of information encoded in source files.
attributes
instance
readonly
compile time
2. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
[receiver message];
inheritance
deprecated
Unitary
3. Any method that can be used by an instance of a class rather than by the class object.
framework
instance method
Protocols
class
4. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
outlet
procedural programming language
class
comma-separated
5. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
memory leak
message
subclass
assign
6. A ____ _____ is where you forget to free up memory
Interface Builder
static typing
memory leak
copy
7. 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.
value
9
pointers
outlet
8. Placing a ____ before a normal variable name gives it's address
assign
ampersand (&)
%
selector
9. _____ allow indirect access and modification of a variable's value.
assign
compile time
Pointers
square brackets
10. 3 Common Float data types: float - _____ - CGFloat
pointers
method
double
chars
11. In the Objective-C language the declaration of a group of methods not associated with any particular class.
class method
runtime
protocol
designated initializer
12. Objective-C is a _____ of the C language
[receiver message];
Encapsulation
superset
strong
13. Property attribute that synthesizes both a getter and setter for the property
readwrite
reference counting
square brackets
unitary
14. A struct may contain multiple ____ consisting of different data types
fields
null
dangling pointer
dereference (dereferencing)
15. 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.
instance
floating-point
readwrite
abstract superclass
16. Initializer method traditionally begin with the _____ prefix
delegates
init
Cocoa
compile time
17. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
id
Binary
adopt
18. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dynamic binding
assignment
cannot
dispatch table
19. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
class
method
nil
superclass
20. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
distributed objects
@implementation
class
instance method
21. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
[receiver message];
long long
procedures
22. A method that can operate on class objects rather than instances of the class.
readonly
class method
strong
Protocols
23. Objective-C objects should use strong or weak ______
@implementation
cannot
NSObject
attributes
24. The root class in Objective-C
NSObject
reference counting
nil
doubles
25. This symbol denotes a method as being a class method
distributed objects
AppKit
+
readwrite
26. The most flexible C data type: ______
struct
factory
precedence
distributed objects
27. Square bracket syntax for calling a method
abstract class
asynchronous message
[receiver message];
zero
28. There are ____ fundamental building blocks in Objective-C
nil
value
9
doubles
29. The first index in an array is valued at ____
cycles
deprecated
struct
zero
30. 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
designated initializer
pointers
attributes
instance
31. a++; is an example of using a _____ operator
class
unitary
copy
Encapsulation
32. 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.
procedures
assignment
instance variable
AppKit
33. ______ data types are always zero or greate
method
designated
Unsigned
developer intent
34. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
cannot
nil
implementation
35. 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.
long long
reference counting
Cocoa
superclass
36. Property attribute that causes the setter to store a strong reference to the assigned value
runtime
null
asterisk (*)
strong
37. Objective-C binds methods and arguments at _____ instead of compile time
ampersand (&)
runtime
asynchronous message
designated initializer
38. An object in another application - one that's a potential receiver for a remote message.
AppKit
Protocols
nil
remote object
39. a+b; is an example of using a _____ operator
binary
pointers
id
delegate
40. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).
message expression
cycles
doubles
@interface
41. 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
procedures
Categories
delegate
conform
42. The process of setting or reading the value at an address pointed to by a pointer
9
value
dereference (dereferencing)
Unitary
43. In object-oriented programming a procedure that can be executed by an object.
procedures
printf( )
method
long long
44. Property attribute where the setter stores the assigned value but does not perform any memory management.
class
fields
printf( )
assign
45. Same as class object. (first way to say it.)
Edit>Refactor>Convert to Objective-C ARC
Signed
factory
link time
46. ____ provide a concise & elegant method for defining a discrete set of values
delegates
formal protocol
binary
Enumerations
47. Same as class object. (second way to say it.)
factory object
Protocols
instance variable
dangling pointer
48. In Objective-C floats are more commonly used than ______
Interface Builder
compile time
synchronous message
doubles
49. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
Unsigned
long long
anonymous object
dereference (dereferencing)
50. ______ operators take a single operand
dispatch table
Unitary
heap
Smalltalk