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. ______ operators take a single operand
class
@interface
Unitary
precedence
2. This symbol denotes a method as being a class method
+
assign
dynamic typing
heap
3. 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
comma-separated
Product>Profile>Leaks>Profile
runtime
4. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
init
outlet
polymorphism
value
5. In Objective-C floats are more commonly used than ______
value
pointer
doubles
%
6. 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.
id
%@
structures
factory object
7. Objective-C's protocols are really about communicating _____ _______
developer intent
Pointers
compile time
value
8. ARC is susceptible to retain _____
instance variable
ARC
Encapsulation
cycles
9. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
message
NSObject
Signed
10. There are ____ fundamental building blocks in Objective-C
init
9
delegates
inheritance hierarchy
11. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
assignment
conform
namespace
12. Xcode sequence to examine an app for memory leaks or retain cycles
abstract class
Product>Profile>Leaks>Profile
superset
class
13. Square bracket syntax for calling a method
[receiver message];
dispatch table
@interface
@implementation
14. ______ data types are always zero or greate
inheritance hierarchy
remote message
unitary
Unsigned
15. Symbol used to denote a placeholder in a format string
%
abstract class
9
C operators
16. A method that can operate on class objects rather than instances of the class.
class method
instance method
Protocols
asynchronous message
17. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
deprecated
polymorphism
asterisk (*)
zero
18. Objective-C methods are called using ____ _____
Product>Profile>Leaks>Profile
distributed objects
factory object
square brackets
19. Property attribute that synthesizes both a getter and setter for the property
readwrite
reference counting
conform
namespace
20. Any method that can be used by an instance of a class rather than by the class object.
Product>Profile>Leaks>Profile
instance method
subclass
object
21. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
framework
dangling pointer
compile time
pointers
22. C-style strings always end with a ____ character
protocol
null
assignment
+
23. Data types are divided into two main categories: integer and ______
class
init
square brackets
floating-point
24. 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.
assign
link time
dynamic allocation
Interface Builder
25. Initializer method traditionally begin with the _____ prefix
inheritance hierarchy
copy
init
structures
26. C-style strings are stored in an array of _____
long long
chars
inheritance hierarchy
heap
27. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
zero
static typing
dynamic allocation
outlet
28. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
delegate
superclass
zero
29. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
square brackets
class object
init
30. The first index in an array is valued at ____
nil
unitary
deprecated
zero
31. 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.
Edit>Refactor>Convert to Objective-C ARC
formal protocol
@implementation
polymorphism
32. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
%
message
category
weak
33. Same as class object. (second way to say it.)
nonatomic
factory object
dynamic typing
Edit>Refactor>Convert to Objective-C ARC
34. Finding the method implementation to invoke in response to the message
distributed objects
@interface
dynamic binding
double
35. 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
C operators
id
superset
36. An object that acts on behalf of another object.
Pointers
delegate
memory leak
Edit>Refactor>Convert to Objective-C ARC
37. A struct may contain multiple ____ consisting of different data types
@implementation
fields
dangling pointer
memory leak
38. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
9
delegate
+
39. Placing a ____ before a normal variable name gives it's address
ampersand (&)
Pointers
ARC
superset
40. A set of method definitions that is segregated from the rest of the class definition.
runtime
category
-
subclass
41. Property attribute that synthesizes accessors that are not thread safe
heap
chars
nonatomic
class
42. Same as class object. (first way to say it.)
memory leak
factory
instance
%@
43. 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).
comma-separated
implementation
pointers
static typing
44. An object in another application - one that's a potential receiver for a remote message.
remote object
abstract class
designated initializer
remote message
45. This symbol denotes a method as being an instance method
value
instance
-
conform
46. Xcode sequence to convert non-ARC apps to ARC
subclass
object
Edit>Refactor>Convert to Objective-C ARC
copy
47. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
fields
cannot
factory
framework
48. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
C operators
cannot
@implementation
asterisk (*)
49. 3 Common Float data types: float - _____ - CGFloat
outlet
%
%@
double
50. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
distributed objects
C operators
comma-separated
Edit>Refactor>Convert to Objective-C ARC