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. The most flexible C data type: ______
mutex
struct
reference counting
NSString
2. 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.
selector
properties
abstract superclass
doubles
3. Instance variables are optional in iOS if ________ are used
strong
properties
class method
weak
4. Property attribute that causes the setter to store a strong reference to the assigned value
instance
struct
message
strong
5. A class is said to do this when it declares that it implements all the methods in the protocol.
synchronous message
adopt
formal protocol
remote message
6. A set of method definitions that is segregated from the rest of the class definition.
dereference (dereferencing)
Encapsulation
category
C operators
7. Property attribute that synthesizes accessors that are not thread safe
square brackets
@implementation
nonatomic
doubles
8. A message sent from one application to an object in another application.
procedures
remote message
delegate
comma-separated
9. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects
9
runtime
Smalltalk
structures
10. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
@implementation
runtime
mutex
11. _____ 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'.
Encapsulation
inheritance
@interface
formal protocol
12. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
selector
+
runtime
13. Objective-C methods are called using ____ _____
asynchronous message
Smalltalk
square brackets
procedures
14. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
encapsulation
Enumerations
protocol
15. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
anonymous object
heap
class
framework
16. 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
AppKit
designated initializer
synchronous message
assignment
17. In the Objective-C language the declaration of a group of methods not associated with any particular class.
pointers
formal protocol
NSString
protocol
18. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
selector
nil
structures
19. 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
instance variable
binary
static typing
NSString
20. 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).
class object
dereference (dereferencing)
remote message
message expression
21. 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.
id
memory leak
formal protocol
interface
22. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
attributes
designated initializer
comma-separated
unitary
23. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
Smalltalk
cannot
Interface Builder
dispatch table
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).
synchronous message
superclass
implementation
asynchronous message
25. A protocol declared as a category usually as a category of the NSObject class.
instance
distributed objects
zero
informal protocol
26. An object in another application - one that's a potential receiver for a remote message.
remote message
nonatomic
remote object
synchronous message
27. Same as class object. (second way to say it.)
factory object
interface
dynamic allocation
class object
28. C-style strings are stored in an array of _____
chars
distributed objects
pointers
id
29. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
delegates
strong
Cocoa
fields
30. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
Binary
nonatomic
distributed objects
31. 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.
static typing
message expression
deprecated
instance variable
32. 3 Common Float data types: float - _____ - CGFloat
Unitary
Smalltalk
event
double
33. Any class that's one step below another class in the inheritance hierarchy.
subclass
class
dangling pointer
NSString
34. A variable that points to the memory address of another value
pointer
static typing
adopt
instance
35. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
namespace
null
designated
AppKit
36. Three main categories of more complicated data structures:_______ - arrays and structs
Signed
pointers
%@
fields
37. Property attribute that synthesizes both a getter and setter for the property
asterisk (*)
readwrite
dereference (dereferencing)
precedence
38. Finding the method implementation to invoke in response to the message
dynamic binding
instance method
outlet
runtime
39. 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.
runtime
synchronous message
struct
reference counting
40. _____ operators take 2 operands
dangling pointer
Binary
framework
assign
41. Data types are divided into two main categories: integer and ______
floating-point
runtime
method
Unitary
42. This symbol denotes a method as being an instance method
class
struct
-
deprecated
43. 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
dynamic typing
unitary
zero
designated initializer
44. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
C operators
floating-point
procedural programming language
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.
instance
framework
object
superclass
46. In object-oriented programming a procedure that can be executed by an object.
superset
method
dereference (dereferencing)
remote message
47. A ____ _____ is where you forget to free up memory
selector
static typing
message expression
memory leak
48. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
copy
nil
square brackets
49. In Objective-C floats are more commonly used than ______
ampersand (&)
runtime
doubles
square brackets
50. A method that can operate on class objects rather than instances of the class.
pointers
Protocols
class method
dynamic typing