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. 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.
receiver
category
Edit>Refactor>Convert to Objective-C ARC
abstract class
2. To destroy an object set the variable that points to it to _____
nil
formal protocol
ARC
Pointers
3. A struct may contain multiple ____ consisting of different data types
assignment
deprecated
instance method
fields
4. _____ data types can be both positive and negative
comma-separated
Signed
inheritance hierarchy
Interface Builder
5. Same as class object. (second way to say it.)
%
factory object
Protocols
weak
6. Property attribute that causes the setter to store a copy of the assigned value
dynamic typing
[receiver message];
dynamic allocation
copy
7. _____ allow you to add new methods to existing classes
subclass
instance variable
Categories
ARC
8. In the Objective-C language the declaration of a group of methods not associated with any particular class.
C operators
outlet
protocol
namespace
9. 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
delegates
comma-separated
NSString
Protocols
10. Discovering the class of an object at runtime rather than at compile time.
polymorphism
dynamic typing
printf( )
abstract superclass
11. 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.
asynchronous message
chars
interface
zero
12. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
double
remote object
pointers
event
13. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
superset
procedures
asterisk (*)
Product>Profile>Leaks>Profile
14. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
class
formal protocol
asterisk (*)
square brackets
15. 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
link time
dispatch table
dangling pointer
synchronous message
16. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
chars
encapsulation
long long
interface
17. Objective-C binds methods and arguments at _____ instead of compile time
runtime
class
Cocoa
-
18. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.
runtime
reference counting
printf( )
class
19. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
double
object
Unitary
20. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
class object
asynchronous message
id
message
21. Xcode sequence to examine an app for memory leaks or retain cycles
init
Product>Profile>Leaks>Profile
Unitary
Pointers
22. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
strong
selector
factory object
double
23. Property attribute that synthesizes only a getter for the property
inheritance
9
link time
readonly
24. 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.
long long
AppKit
factory object
protocol
25. ______ operators take a single operand
message
Unitary
assignment
procedures
26. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
namespace
method
Protocols
abstract superclass
27. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
subclass
struct
printf( )
designated
28. The most flexible C data type: ______
struct
unitary
instance
value
29. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
NSString
receiver
instance method
30. _____ operators take 2 operands
remote object
Binary
factory
runtime
31. Instance variables are optional in iOS if ________ are used
asterisk (*)
assignment
[receiver message];
properties
32. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
framework
ARC
instance
33. 3 Common Float data types: float - _____ - CGFloat
double
assign
weak
superset
34. An object of unknown class. Interface is published through protocol declaration.
anonymous object
id
-
pointer
35. C-style strings always end with a ____ character
nonatomic
subclass
null
%
36. ______ data types are always zero or greate
strong
Unsigned
asynchronous message
asterisk (*)
37. 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.
null
informal protocol
framework
object
38. There are ____ fundamental building blocks in Objective-C
binary
9
object
assignment
39. 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
doubles
+
polymorphism
40. Objective-C objects should use strong or weak ______
polymorphism
@interface
attributes
Unitary
41. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
link time
pointers
superclass
Signed
42. The first index in an array is valued at ____
zero
long long
distributed objects
asynchronous message
43. In Objective-C floats are more commonly used than ______
synchronous message
Signed
doubles
cannot
44. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
link time
cannot
namespace
@interface
45. The process of setting or reading the value at an address pointed to by a pointer
developer intent
pointer
Pointers
dereference (dereferencing)
46. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
dynamic typing
cannot
@implementation
event
47. C-style strings are stored in an array of _____
Protocols
chars
inheritance
subclass
48. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
runtime
static typing
superset
mutex
49. Property attribute that causes the setter to store a strong reference to the assigned value
strong
framework
dynamic typing
value
50. _____ allow indirect access and modification of a variable's value.
designated initializer
instance method
instance
Pointers