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. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
%
cannot
receiver
2. A struct may contain multiple ____ consisting of different data types
Cocoa
Protocols
fields
Encapsulation
3. Property attribute that synthesizes only a getter for the property
nil
pointer
readonly
precedence
4. A set of method definitions that is segregated from the rest of the class definition.
distributed objects
null
category
asynchronous message
5. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
ARC
conform
dynamic typing
6. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
dynamic binding
interface
selector
7. In object-oriented programming a procedure that can be executed by an object.
init
factory object
method
delegates
8. The first index in an array is valued at ____
abstract superclass
zero
dynamic typing
method
9. Any method that can be used by an instance of a class rather than by the class object.
unitary
protocol
attributes
instance method
10. Another name for a class that's defined solely so that other classes can inherit from it.
formal protocol
abstract superclass
receiver
inheritance
11. To destroy an object set the variable that points to it to _____
static typing
dispatch table
nil
inheritance
12. Property attribute that synthesizes both a getter and setter for the property
static typing
delegate
distributed objects
readwrite
13. ______ data types are always zero or greate
cannot
doubles
Interface Builder
Unsigned
14. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
NSString
C operators
event
readwrite
15. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
dereference (dereferencing)
message
synchronous message
16. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
Categories
interface
binary
compile time
17. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
class object
asterisk (*)
comma-separated
implementation
18. In Objective-C floats are more commonly used than ______
Unsigned
doubles
dispatch table
procedural programming language
19. ARC is susceptible to retain _____
framework
%@
cycles
memory leak
20. C-style strings always end with a ____ character
zero
Cocoa
null
informal protocol
21. a++; is an example of using a _____ operator
memory leak
deprecated
class object
unitary
22. 3 Common Float data types: float - _____ - CGFloat
Protocols
struct
structures
double
23. 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.
instance
Interface Builder
adopt
dangling pointer
24. Objective-C binds methods and arguments at _____ instead of compile time
superclass
Unsigned
object
runtime
25. 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
interface
Edit>Refactor>Convert to Objective-C ARC
event
26. 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.
outlet
Unsigned
nil
nil
27. The process of setting or reading the value at an address pointed to by a pointer
static typing
dereference (dereferencing)
subclass
Pointers
28. Square bracket syntax for calling a method
binary
inheritance hierarchy
encapsulation
[receiver message];
29. A message sent from one application to an object in another application.
remote message
instance variable
doubles
readonly
30. When creating a class header file you begin with the _____ keyword and close with the @end keyword
assign
@interface
readonly
receiver
31. ______ operators take a single operand
Unitary
conform
ARC
pointers
32. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
printf( )
designated
Unsigned
static typing
33. This symbol denotes a method as being an instance method
floating-point
precedence
procedures
-
34. Property attribute that causes the setter to store a strong reference to the assigned value
factory
ARC
Protocols
strong
35. a+b; is an example of using a _____ operator
designated initializer
instance
binary
id
36. A protocol declared as a category usually as a category of the NSObject class.
square brackets
informal protocol
nil
inheritance
37. 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.
category
instance variable
encapsulation
class method
38. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
nil
mutex
informal protocol
class
39. 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
readonly
ampersand (&)
class object
40. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
mutex
Interface Builder
fields
41. Placing a ____ before a normal variable name gives it's address
ampersand (&)
adopt
%@
distributed objects
42. Finding the method implementation to invoke in response to the message
Enumerations
fields
@interface
dynamic binding
43. 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
event
conform
@implementation
44. Objective-C's protocols are really about communicating _____ _______
static typing
Product>Profile>Leaks>Profile
Cocoa
developer intent
45. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
informal protocol
factory
Categories
46. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
factory object
Product>Profile>Leaks>Profile
Protocols
structures
47. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
inheritance hierarchy
dangling pointer
class method
48. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
delegate
weak
class method
dynamic binding
49. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
strong
@implementation
inheritance hierarchy
class
50. 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
anonymous object
conform
id
@implementation