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. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
dynamic allocation
printf( )
attributes
2. 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.
factory
implementation
outlet
instance
3. 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.
Categories
outlet
object
interface
4. In object-oriented programming a procedure that can be executed by an object.
class
Enumerations
struct
method
5. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
struct
remote message
deprecated
Binary
6. Property attribute that synthesizes accessors that are not thread safe
nonatomic
formal protocol
dispatch table
struct
7. The first index in an array is valued at ____
category
pointers
properties
zero
8. The most flexible C data type: ______
factory
conform
procedural programming language
struct
9. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
runtime
method
asterisk (*)
mutex
10. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
formal protocol
Protocols
link time
doubles
11. 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).
dispatch table
assignment
doubles
message expression
12. Objective-C's protocols are really about communicating _____ _______
subclass
developer intent
properties
nil
13. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
binary
ampersand (&)
Interface Builder
AppKit
14. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
instance
class
init
procedures
15. The _____ function can be used to print a message to the console
link time
printf( )
instance
polymorphism
16. Xcode sequence to examine an app for memory leaks or retain cycles
copy
9
properties
Product>Profile>Leaks>Profile
17. To destroy an object set the variable that points to it to _____
Protocols
nil
designated initializer
protocol
18. 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
AppKit
id
nil
19. Symbol used to denote a placeholder in a format string
nil
Edit>Refactor>Convert to Objective-C ARC
Pointers
%
20. Property attribute that synthesizes both a getter and setter for the property
reference counting
init
inheritance
readwrite
21. An object id with a value of 0.
Enumerations
struct
nil
@interface
22. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
superclass
strong
conform
23. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
class object
assignment
remote message
asterisk (*)
24. A struct may contain multiple ____ consisting of different data types
floating-point
instance
fields
remote message
25. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
instance variable
init
instance
26. ARC is susceptible to retain _____
Product>Profile>Leaks>Profile
cannot
weak
cycles
27. A compiler feature that provides automated memory management
ARC
Signed
Binary
event
28. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
Interface Builder
procedural programming language
Signed
29. 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.
id
abstract superclass
compile time
+
30. Any method that can be used by an instance of a class rather than by the class object.
instance method
runtime
message
asterisk (*)
31. Same as class object. (first way to say it.)
attributes
mutex
nonatomic
factory
32. 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.
Product>Profile>Leaks>Profile
polymorphism
reference counting
Interface Builder
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.
double
dynamic allocation
anonymous object
instance variable
34. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
binary
synchronous message
adopt
@implementation
35. 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.
outlet
selector
protocol
dispatch table
36. a+b; is an example of using a _____ operator
link time
instance method
selector
binary
37. In object-oriented programming the object that is sent a message.
remote message
cannot
receiver
printf( )
38. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
informal protocol
comma-separated
%@
weak
39. _____ allow you to add new methods to existing classes
Cocoa
link time
cycles
Categories
40. 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.
@interface
informal protocol
encapsulation
runtime
41. Same as class object. (second way to say it.)
delegate
value
factory object
Protocols
42. A set of method definitions that is segregated from the rest of the class definition.
Protocols
designated initializer
superset
category
43. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
square brackets
NSObject
static typing
runtime
44. ______ data types are always zero or greate
pointer
reference counting
message expression
Unsigned
45. Finding the method implementation to invoke in response to the message
object
formal protocol
dynamic binding
square brackets
46. _____ allow indirect access and modification of a variable's value.
Pointers
factory object
object
informal protocol
47. This symbol denotes a method as being an instance method
procedural programming language
-
static typing
heap
48. 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.
pointer
informal protocol
subclass
dynamic allocation
49. C-style strings always end with a ____ character
null
protocol
compile time
assign
50. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
designated initializer
adopt
value
comma-separated