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 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.
init
ARC
dynamic allocation
instance
2. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
inheritance
remote object
receiver
3. Xcode sequence to convert non-ARC apps to ARC
Enumerations
Edit>Refactor>Convert to Objective-C ARC
pointer
distributed objects
4. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
[receiver message];
instance
designated initializer
5. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
pointers
Signed
ampersand (&)
instance
6. ______ data types are always zero or greate
attributes
Unsigned
factory
procedures
7. 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.
ARC
nil
double
formal protocol
8. All objects are created on the _____
delegates
copy
heap
pointer
9. 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.
superset
selector
long long
%
10. 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.
struct
encapsulation
delegates
subclass
11. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
9
procedural programming language
binary
Cocoa
12. A compiler feature that provides automated memory management
class method
[receiver message];
ARC
instance
13. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
factory object
mutex
message expression
cannot
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
designated initializer
remote object
instance variable
assign
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.
receiver
NSString
instance
runtime
16. A method that can operate on class objects rather than instances of the class.
readwrite
class method
unitary
weak
17. In a home building analogy a ____ is the blueprint and the object is the house
struct
class
structures
%@
18. A variable that points to the memory address of another value
pointer
NSObject
class method
9
19. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
subclass
copy
instance method
polymorphism
20. A ____ ____ is a situation where you free memory and then accidentally continue to use it
instance
init
dangling pointer
doubles
21. A class is said to do this when it declares that it implements all the methods in the protocol.
procedural programming language
adopt
@interface
comma-separated
22. 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
subclass
Unitary
null
conform
23. Property attribute that synthesizes both a getter and setter for the property
dereference (dereferencing)
readwrite
Binary
Interface Builder
24. _____ data types can be both positive and negative
%
selector
Signed
Protocols
25. Discovering the class of an object at runtime rather than at compile time.
fields
dynamic typing
Unitary
init
26. 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).
implementation
nil
encapsulation
factory object
27. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
procedures
zero
procedural programming language
28. ____ provide a concise & elegant method for defining a discrete set of values
heap
Enumerations
factory
9
29. An object of unknown class. Interface is published through protocol declaration.
anonymous object
struct
binary
formal protocol
30. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
attributes
Protocols
properties
chars
31. In a format string the place holder for an object is ______
class object
Cocoa
%@
selector
32. In object-oriented programming a procedure that can be executed by an object.
method
outlet
superclass
weak
33. The root class in Objective-C
Protocols
factory
NSObject
instance
34. Property attribute where the setter stores the assigned value but does not perform any memory management.
floating-point
method
dangling pointer
assign
35. 3 Common Float data types: float - _____ - CGFloat
formal protocol
double
deprecated
ARC
36. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
superset
@implementation
Edit>Refactor>Convert to Objective-C ARC
Categories
37. Same as class object. (second way to say it.)
factory object
outlet
superclass
framework
38. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
superclass
Edit>Refactor>Convert to Objective-C ARC
framework
designated
39. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
Unsigned
polymorphism
value
doubles
40. 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
printf( )
NSString
pointers
zero
41. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
selector
asterisk (*)
C operators
id
42. 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.
nonatomic
9
link time
reference counting
43. A set of method definitions that is segregated from the rest of the class definition.
assignment
category
abstract superclass
synchronous message
44. Objective-C binds methods and arguments at _____ instead of compile time
runtime
instance
informal protocol
pointers
45. 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.
method
nonatomic
instance
%@
46. The process of setting or reading the value at an address pointed to by a pointer
+
@implementation
dereference (dereferencing)
interface
47. 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.
Interface Builder
dynamic binding
-
C operators
48. A message sent from one application to an object in another application.
strong
pointers
remote message
copy
49. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
Smalltalk
cannot
nil
pointer
50. To destroy an object set the variable that points to it to _____
class method
binary
@interface
nil