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 are always zero or greate
Unsigned
adopt
category
object
2. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
Unsigned
framework
delegates
adopt
3. An object in another application - one that's a potential receiver for a remote message.
binary
remote object
namespace
-
4. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
encapsulation
init
NSObject
5. Instance variables are optional in iOS if ________ are used
designated
informal protocol
properties
class
6. 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.
+
Categories
readwrite
formal protocol
7. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
readonly
class
remote object
8. ______ operators take a single operand
asterisk (*)
subclass
attributes
Unitary
9. 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
[receiver message];
distributed objects
dynamic binding
conform
10. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
Encapsulation
instance variable
developer intent
event
11. 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.
polymorphism
dynamic allocation
Protocols
long long
12. Property attribute that synthesizes accessors that are not thread safe
assign
superset
@implementation
nonatomic
13. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
readonly
instance variable
asterisk (*)
Pointers
14. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
nonatomic
implementation
receiver
15. Initializer method traditionally begin with the _____ prefix
asynchronous message
polymorphism
protocol
init
16. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
reference counting
null
copy
17. 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.
readonly
pointers
namespace
instance
18. _____ allow you to add new methods to existing classes
comma-separated
class
link time
Categories
19. An object id with a value of 0.
informal protocol
nil
weak
+
20. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
interface
nil
instance method
21. 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.
namespace
outlet
Edit>Refactor>Convert to Objective-C ARC
anonymous object
22. Same as class object. (second way to say it.)
%@
factory object
value
dynamic allocation
23. a++; is an example of using a _____ operator
Pointers
instance
unitary
nil
24. A compiler feature that provides automated memory management
ARC
9
asynchronous message
adopt
25. In Objective-C floats are more commonly used than ______
NSObject
instance variable
%
doubles
26. Any method that can be used by an instance of a class rather than by the class object.
synchronous message
remote object
long long
instance method
27. Xcode sequence to convert non-ARC apps to ARC
id
long long
link time
Edit>Refactor>Convert to Objective-C ARC
28. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
Categories
framework
AppKit
link time
29. 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.
square brackets
floating-point
runtime
polymorphism
30. In object-oriented programming a procedure that can be executed by an object.
inheritance
method
superset
instance method
31. There are ____ fundamental building blocks in Objective-C
9
NSObject
Unitary
weak
32. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
comma-separated
object
weak
protocol
33. A variable that points to the memory address of another value
pointer
-
abstract class
distributed objects
34. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
pointer
assignment
deprecated
35. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
Product>Profile>Leaks>Profile
chars
dereference (dereferencing)
static typing
36. _____ data types can be both positive and negative
abstract superclass
Unsigned
Signed
developer intent
37. Same as class object. (first way to say it.)
init
factory
abstract superclass
abstract class
38. Data types are divided into two main categories: integer and ______
encapsulation
namespace
floating-point
pointers
39. The most flexible C data type: ______
heap
struct
attributes
structures
40. Finding the method implementation to invoke in response to the message
superset
dangling pointer
%
dynamic binding
41. _____ allow indirect access and modification of a variable's value.
Pointers
NSString
unitary
factory
42. The first index in an array is valued at ____
instance
Pointers
assignment
zero
43. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
heap
asterisk (*)
Smalltalk
Product>Profile>Leaks>Profile
44. 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).
subclass
cannot
attributes
message expression
45. 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.
NSObject
object
instance
designated
46. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
developer intent
nil
fields
47. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
nonatomic
cannot
deprecated
reference counting
48. 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.
AppKit
Interface Builder
nil
object
49. To destroy an object set the variable that points to it to _____
procedures
class
nil
assignment
50. An architecture that facilitates communication between objects in different address spaces.
distributed objects
remote object
synchronous message
class object