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. _____ data types can be both positive and negative
properties
Signed
compile time
encapsulation
2. A message sent from one application to an object in another application.
instance variable
@implementation
+
remote message
3. 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
assign
fields
readwrite
4. A method that can operate on class objects rather than instances of the class.
@interface
value
framework
class method
5. A struct may contain multiple ____ consisting of different data types
C operators
fields
instance
implementation
6. An object in another application - one that's a potential receiver for a remote message.
static typing
instance
runtime
remote object
7. In object-oriented programming a procedure that can be executed by an object.
deprecated
instance
method
message
8. ______ data types are always zero or greate
nil
Unsigned
encapsulation
class method
9. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
attributes
Enumerations
nil
10. The _____ function can be used to print a message to the console
weak
C operators
NSObject
printf( )
11. Objective-C's protocols are really about communicating _____ _______
static typing
implementation
developer intent
category
12. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
Smalltalk
superclass
nil
13. C-style strings are stored in an array of _____
instance variable
chars
Signed
Enumerations
14. In object-oriented programming the object that is sent a message.
receiver
chars
message
abstract superclass
15. 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.
Signed
runtime
factory
init
16. This symbol denotes a method as being a class method
+
abstract superclass
assignment
superset
17. 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
category
precedence
square brackets
conform
18. Symbol used to denote a placeholder in a format string
factory object
factory
comma-separated
%
19. Three main categories of more complicated data structures:_______ - arrays and structs
dispatch table
[receiver message];
abstract class
pointers
20. There are ____ fundamental building blocks in Objective-C
strong
copy
conform
9
21. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cycles
NSObject
cannot
pointers
22. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
namespace
%@
subclass
23. When creating a class header file you begin with the _____ keyword and close with the @end keyword
cannot
formal protocol
floating-point
@interface
24. The first index in an array is valued at ____
9
zero
memory leak
properties
25. Objective-C binds methods and arguments at _____ instead of compile time
namespace
runtime
%@
adopt
26. _____ allow you to add new methods to existing classes
Categories
encapsulation
dispatch table
double
27. An object of unknown class. Interface is published through protocol declaration.
deprecated
value
anonymous object
Enumerations
28. ____ provide a concise & elegant method for defining a discrete set of values
Pointers
Product>Profile>Leaks>Profile
Enumerations
outlet
29. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
strong
category
precedence
static typing
30. In Objective-C floats are more commonly used than ______
pointers
doubles
comma-separated
link time
31. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
subclass
remote message
memory leak
32. a+b; is an example of using a _____ operator
developer intent
Edit>Refactor>Convert to Objective-C ARC
binary
pointer
33. In the Objective-C language the declaration of a group of methods not associated with any particular class.
nil
encapsulation
heap
protocol
34. _____ allow indirect access and modification of a variable's value.
runtime
structures
assignment
Pointers
35. In a home building analogy a ____ is the blueprint and the object is the house
class
ARC
instance variable
message
36. A ____ ____ is a situation where you free memory and then accidentally continue to use it
receiver
dynamic typing
copy
dangling pointer
37. The most flexible C data type: ______
struct
+
conform
superset
38. To destroy an object set the variable that points to it to _____
Enumerations
[receiver message];
nil
inheritance hierarchy
39. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
remote object
+
Protocols
polymorphism
40. C-style strings always end with a ____ character
dynamic allocation
message
class method
null
41. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.
chars
encapsulation
event
readwrite
42. 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
abstract superclass
factory
NSObject
synchronous message
43. a++; is an example of using a _____ operator
unitary
chars
dereference (dereferencing)
deprecated
44. The process of setting or reading the value at an address pointed to by a pointer
-
id
dereference (dereferencing)
Signed
45. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
cycles
readwrite
factory
46. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
instance
mutex
double
synchronous message
47. ______ operators take a single operand
pointers
memory leak
Unitary
class
48. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
struct
precedence
class object
distributed objects
49. 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.
pointer
deprecated
asterisk (*)
outlet
50. 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.
readonly
abstract class
assign
remote object