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. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
@interface
anonymous object
class object
long long
2. In the Objective-C language the declaration of a group of methods not associated with any particular class.
instance variable
Edit>Refactor>Convert to Objective-C ARC
doubles
protocol
3. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
remote object
designated initializer
comma-separated
remote message
4. 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
NSString
AppKit
delegate
precedence
5. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
message expression
asterisk (*)
nil
6. Same as class object. (second way to say it.)
weak
message
factory object
comma-separated
7. _____ data types can be both positive and negative
subclass
Signed
AppKit
assign
8. Objective-C's protocols are really about communicating _____ _______
developer intent
instance variable
memory leak
compile time
9. A compiler feature that provides automated memory management
pointer
procedures
ARC
struct
10. 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.
anonymous object
outlet
precedence
unitary
11. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
compile time
anonymous object
[receiver message];
message
12. There are ____ fundamental building blocks in Objective-C
readonly
Cocoa
precedence
9
13. Data types are divided into two main categories: integer and ______
Binary
Unitary
floating-point
long long
14. ARC is susceptible to retain _____
abstract class
selector
cycles
9
15. An object that acts on behalf of another object.
binary
developer intent
Pointers
delegate
16. Any class that's one step below another class in the inheritance hierarchy.
subclass
namespace
procedural programming language
init
17. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
runtime
Binary
deprecated
18. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
category
AppKit
procedural programming language
object
19. A protocol declared as a category usually as a category of the NSObject class.
dynamic binding
informal protocol
subclass
structures
20. Xcode sequence to convert non-ARC apps to ARC
procedural programming language
delegates
Edit>Refactor>Convert to Objective-C ARC
weak
21. Discovering the class of an object at runtime rather than at compile time.
%
double
NSString
dynamic typing
22. C-style strings are stored in an array of _____
chars
link time
designated
instance
23. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
outlet
heap
Cocoa
24. Placing a ____ before a normal variable name gives it's address
ampersand (&)
Unsigned
informal protocol
precedence
25. _____ operators take 2 operands
Binary
runtime
anonymous object
class
26. 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.
adopt
id
nonatomic
runtime
27. The first index in an array is valued at ____
properties
Product>Profile>Leaks>Profile
Categories
zero
28. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
delegate
designated
weak
%@
29. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
chars
AppKit
distributed objects
30. A method that can operate on class objects rather than instances of the class.
Cocoa
designated initializer
Product>Profile>Leaks>Profile
class method
31. 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
Categories
link time
conform
dereference (dereferencing)
32. Property attribute that causes the setter to store a strong reference to the assigned value
method
strong
formal protocol
encapsulation
33. A struct may contain multiple ____ consisting of different data types
link time
comma-separated
cycles
fields
34. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
designated
printf( )
C operators
Encapsulation
35. Objective-C is a _____ of the C language
Pointers
superset
9
assign
36. Another name for a class that's defined solely so that other classes can inherit from it.
%
copy
abstract superclass
factory
37. Property attribute that causes the setter to store a copy of the assigned value
copy
id
Binary
Interface Builder
38. 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.
abstract class
instance
NSObject
C operators
39. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
namespace
structures
dereference (dereferencing)
40. The root class in Objective-C
instance
-
NSObject
dynamic binding
41. A variable that points to the memory address of another value
pointer
Unitary
AppKit
implementation
42. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
Signed
message
mutex
readwrite
43. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
pointer
dispatch table
cannot
binary
44. Same as class object. (first way to say it.)
factory
compile time
designated
strong
45. Objective-C objects should use strong or weak ______
superset
comma-separated
attributes
category
46. 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.
delegates
@interface
reference counting
message expression
47. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
ampersand (&)
struct
designated
heap
48. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
message expression
inheritance
selector
compile time
49. Property attribute that synthesizes only a getter for the property
readonly
mutex
Protocols
square brackets
50. Property attribute that synthesizes accessors that are not thread safe
remote object
assign
cycles
nonatomic