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. 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.
[receiver message];
class object
cannot
dynamic typing
2. 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.
Cocoa
dynamic allocation
event
outlet
3. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
null
comma-separated
namespace
factory
4. C-style strings always end with a ____ character
method
+
Encapsulation
null
5. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
event
interface
object
inheritance
6. There are ____ fundamental building blocks in Objective-C
message expression
Interface Builder
9
struct
7. An object that acts on behalf of another object.
instance
strong
delegate
readonly
8. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
runtime
framework
Pointers
readwrite
9. _____ data types can be both positive and negative
formal protocol
Signed
mutex
ampersand (&)
10. Property attribute that causes the setter to store a strong reference to the assigned value
zero
abstract class
strong
instance
11. Three main categories of more complicated data structures:_______ - arrays and structs
object
nonatomic
pointers
superclass
12. Finding the method implementation to invoke in response to the message
nil
null
Protocols
dynamic binding
13. 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.
object
floating-point
dereference (dereferencing)
ampersand (&)
14. A ____ _____ is where you forget to free up memory
runtime
method
assignment
memory leak
15. a+b; is an example of using a _____ operator
asterisk (*)
chars
binary
fields
16. The _____ function can be used to print a message to the console
Protocols
copy
printf( )
Binary
17. 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.
instance variable
outlet
Cocoa
remote message
18. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
AppKit
weak
procedures
remote object
19. A message sent from one application to an object in another application.
compile time
Pointers
remote message
dynamic typing
20. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
fields
factory
selector
superclass
21. An object of unknown class. Interface is published through protocol declaration.
strong
NSObject
anonymous object
pointer
22. 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
strong
distributed objects
NSString
structures
23. Property attribute that synthesizes both a getter and setter for the property
cycles
outlet
Edit>Refactor>Convert to Objective-C ARC
readwrite
24. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
class object
printf( )
message
Edit>Refactor>Convert to Objective-C ARC
25. Symbol used to denote a placeholder in a format string
Categories
%
precedence
interface
26. 3 Common Float data types: float - _____ - CGFloat
implementation
double
class object
instance
27. The process of setting or reading the value at an address pointed to by a pointer
static typing
init
unitary
dereference (dereferencing)
28. All objects are created on the _____
protocol
formal protocol
[receiver message];
heap
29. ____ provide a concise & elegant method for defining a discrete set of values
dynamic binding
readonly
Enumerations
id
30. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
framework
AppKit
event
cannot
31. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
instance method
Smalltalk
factory
32. This symbol denotes a method as being a class method
+
readwrite
factory object
Smalltalk
33. Property attribute where the setter stores the assigned value but does not perform any memory management.
square brackets
assign
%@
inheritance
34. Objective-C methods are called using ____ _____
square brackets
procedural programming language
class
pointers
35. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
abstract class
asynchronous message
attributes
nil
36. _____ 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
printf( )
ampersand (&)
protocol
37. Objective-C is a _____ of the C language
Cocoa
synchronous message
unitary
superset
38. Property attribute that causes the setter to store a copy of the assigned value
Signed
copy
conform
Interface Builder
39. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
conform
assignment
Edit>Refactor>Convert to Objective-C ARC
abstract superclass
40. Same as class object. (second way to say it.)
fields
factory object
zero
conform
41. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
copy
Enumerations
delegates
42. 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
structures
assign
implementation
designated initializer
43. In object-oriented programming a procedure that can be executed by an object.
method
weak
long long
instance variable
44. Property attribute that synthesizes only a getter for the property
structures
attributes
readonly
class method
45. A method that can operate on class objects rather than instances of the class.
floating-point
class method
copy
category
46. A variable that points to the memory address of another value
anonymous object
message expression
NSObject
pointer
47. 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).
message expression
event
pointers
message
48. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
id
value
factory
49. Xcode sequence to convert non-ARC apps to ARC
C operators
inheritance hierarchy
zero
Edit>Refactor>Convert to Objective-C ARC
50. 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
Edit>Refactor>Convert to Objective-C ARC
structures
dynamic typing
designated initializer