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. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
selector
instance
structures
conform
2. Property attribute that causes the setter to store a copy of the assigned value
copy
dangling pointer
Unitary
compile time
3. 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).
[receiver message];
conform
C operators
implementation
4. 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.
formal protocol
memory leak
NSString
Product>Profile>Leaks>Profile
5. ______ data types are always zero or greate
cycles
cannot
Unsigned
nonatomic
6. An object in another application - one that's a potential receiver for a remote message.
cannot
long long
remote object
unitary
7. Initializer method traditionally begin with the _____ prefix
superset
nil
init
procedural programming language
8. Objective-C objects should use strong or weak ______
readwrite
deprecated
attributes
synchronous message
9. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
developer intent
null
precedence
long long
10. ____ provide a concise & elegant method for defining a discrete set of values
instance
interface
precedence
Enumerations
11. Three main categories of more complicated data structures:_______ - arrays and structs
NSString
weak
memory leak
pointers
12. 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
memory leak
reference counting
subclass
synchronous message
13. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
+
value
protocol
runtime
14. 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
structures
link time
abstract superclass
designated initializer
15. Objective-C methods are called using ____ _____
unitary
class object
square brackets
dangling pointer
16. 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.
method
Enumerations
encapsulation
subclass
17. An object of unknown class. Interface is published through protocol declaration.
[receiver message];
method
anonymous object
Unitary
18. 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.
link time
procedural programming language
Smalltalk
synchronous message
19. a+b; is an example of using a _____ operator
binary
Enumerations
unitary
readwrite
20. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
dynamic typing
cannot
compile time
instance
21. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
C operators
abstract class
message
properties
22. 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.
Pointers
object
message
mutex
23. _____ data types can be both positive and negative
printf( )
Signed
developer intent
cannot
24. 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.
heap
runtime
9
polymorphism
25. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
NSString
square brackets
delegates
properties
26. The first index in an array is valued at ____
memory leak
Categories
zero
reference counting
27. 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.
dereference (dereferencing)
dangling pointer
protocol
id
28. C-style strings always end with a ____ character
asynchronous message
null
square brackets
dynamic binding
29. Property attribute that causes the setter to store a strong reference to the assigned value
namespace
readwrite
reference counting
strong
30. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
instance
printf( )
Unsigned
31. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
outlet
instance method
informal protocol
dispatch table
32. 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
formal protocol
memory leak
interface
33. 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.
cycles
dynamic allocation
instance variable
Encapsulation
34. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
Interface Builder
ampersand (&)
init
@implementation
35. 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.
outlet
dereference (dereferencing)
readonly
remote object
36. 3 Common Float data types: float - _____ - CGFloat
double
synchronous message
ampersand (&)
Unsigned
37. _____ allow indirect access and modification of a variable's value.
framework
dynamic allocation
Pointers
+
38. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
event
copy
message
39. Any method that can be used by an instance of a class rather than by the class object.
instance method
deprecated
instance
weak
40. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
link time
square brackets
structures
interface
41. Symbol used to denote a placeholder in a format string
double
Pointers
value
%
42. A message sent from one application to an object in another application.
pointers
remote message
class method
encapsulation
43. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
doubles
dynamic allocation
event
-
44. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
runtime
assignment
instance
45. ______ operators take a single operand
Unitary
properties
mutex
assign
46. Data types are divided into two main categories: integer and ______
instance variable
floating-point
link time
Pointers
47. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
superclass
runtime
nil
Smalltalk
48. 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.
reference counting
namespace
Encapsulation
NSString
49. Same as class object. (first way to say it.)
factory
procedures
framework
Signed
50. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
interface
precedence
structures
runtime