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 ____ _____ is where you forget to free up memory
properties
memory leak
struct
assign
2. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
dynamic binding
zero
polymorphism
structures
3. 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.
dangling pointer
delegate
attributes
instance
4. 3 Common Float data types: float - _____ - CGFloat
double
nonatomic
NSString
zero
5. In object-oriented programming a procedure that can be executed by an object.
method
%@
adopt
remote message
6. This symbol denotes a method as being a class method
asynchronous message
+
anonymous object
%@
7. When creating a class header file you begin with the _____ keyword and close with the @end keyword
abstract class
superset
@interface
Signed
8. Three main categories of more complicated data structures:_______ - arrays and structs
@implementation
compile time
pointers
square brackets
9. Xcode sequence to convert non-ARC apps to ARC
designated initializer
mutex
Edit>Refactor>Convert to Objective-C ARC
instance variable
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.
encapsulation
framework
properties
mutex
11. Discovering the class of an object at runtime rather than at compile time.
Protocols
object
outlet
dynamic typing
12. 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.
NSObject
instance variable
framework
null
13. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
message
reference counting
zero
14. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
chars
nil
Cocoa
15. A variable that points to the memory address of another value
pointers
weak
pointer
copy
16. The most flexible C data type: ______
Binary
event
struct
procedural programming language
17. 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
@interface
synchronous message
long long
adopt
18. 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
id
conform
namespace
dynamic binding
19. Same as class object. (second way to say it.)
inheritance hierarchy
factory object
NSObject
struct
20. Property attribute that causes the setter to store a copy of the assigned value
nil
copy
Enumerations
fields
21. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
Categories
NSString
dangling pointer
22. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
strong
designated
binary
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
strong
inheritance
asterisk (*)
24. 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).
ampersand (&)
static typing
distributed objects
implementation
25. An object id with a value of 0.
superset
Edit>Refactor>Convert to Objective-C ARC
nil
dispatch table
26. Data types are divided into two main categories: integer and ______
ARC
floating-point
message expression
@interface
27. 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.
NSString
event
abstract class
implementation
28. 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.
9
Interface Builder
instance variable
%
29. Objective-C's protocols are really about communicating _____ _______
factory object
developer intent
instance method
inheritance
30. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
cannot
class
inheritance hierarchy
AppKit
31. 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
binary
event
NSString
outlet
32. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.
designated
Encapsulation
square brackets
dangling pointer
33. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
implementation
unitary
long long
34. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
selector
comma-separated
struct
asterisk (*)
35. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
designated initializer
compile time
cannot
comma-separated
36. Same as class object. (first way to say it.)
delegates
factory
deprecated
properties
37. 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.
instance method
9
reference counting
assign
38. 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
comma-separated
fields
instance variable
39. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
abstract class
chars
Cocoa
40. An object in another application - one that's a potential receiver for a remote message.
designated
runtime
instance variable
remote object
41. _____ allow indirect access and modification of a variable's value.
long long
class
Pointers
event
42. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
instance
dynamic binding
adopt
43. Objective-C is a _____ of the C language
dynamic allocation
superset
ampersand (&)
Edit>Refactor>Convert to Objective-C ARC
44. An object that acts on behalf of another object.
delegate
superclass
outlet
%@
45. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
heap
class
cannot
Unitary
46. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
outlet
delegates
developer intent
47. A class is said to do this when it declares that it implements all the methods in the protocol.
inheritance hierarchy
developer intent
adopt
encapsulation
48. Property attribute that causes the setter to store a strong reference to the assigned value
strong
interface
Enumerations
9
49. Placing a ____ before a normal variable name gives it's address
@implementation
ampersand (&)
runtime
dangling pointer
50. 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.
ARC
double
dynamic allocation
attributes