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 _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
zero
printf( )
deprecated
distributed objects
2. 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.
event
mutex
NSObject
dynamic allocation
3. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
cycles
memory leak
instance
4. Any class that's one step below another class in the inheritance hierarchy.
Unitary
subclass
Smalltalk
link time
5. _____ data types can be both positive and negative
Signed
nil
copy
abstract class
6. The most flexible C data type: ______
struct
formal protocol
dangling pointer
asynchronous message
7. 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.
adopt
Signed
abstract class
method
8. An object in another application - one that's a potential receiver for a remote message.
adopt
C operators
assignment
remote object
9. 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.
ampersand (&)
init
instance variable
floating-point
10. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
remote object
implementation
+
assignment
11. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
double
@implementation
readonly
9
12. 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
polymorphism
nonatomic
structures
instance variable
13. Instance variables are optional in iOS if ________ are used
struct
properties
comma-separated
ampersand (&)
14. The first index in an array is valued at ____
message expression
Edit>Refactor>Convert to Objective-C ARC
selector
zero
15. Objective-C is a _____ of the C language
class
superset
deprecated
Pointers
16. The process of setting or reading the value at an address pointed to by a pointer
printf( )
dereference (dereferencing)
deprecated
protocol
17. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
zero
adopt
event
Protocols
18. Property attribute that synthesizes accessors that are not thread safe
nonatomic
instance variable
Pointers
long long
19. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
mutex
AppKit
interface
implementation
20. The _____ function can be used to print a message to the console
dispatch table
adopt
printf( )
fields
21. ______ data types are always zero or greate
zero
long long
runtime
Unsigned
22. A struct may contain multiple ____ consisting of different data types
fields
printf( )
weak
inheritance
23. Finding the method implementation to invoke in response to the message
pointer
dynamic binding
%@
Smalltalk
24. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
double
distributed objects
static typing
inheritance
25. Data types are divided into two main categories: integer and ______
subclass
factory
floating-point
Unitary
26. Symbol used to denote a placeholder in a format string
conform
Signed
%
NSString
27. 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
%
synchronous message
distributed objects
Product>Profile>Leaks>Profile
28. 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.
formal protocol
value
delegates
id
29. Initializer method traditionally begin with the _____ prefix
ampersand (&)
init
dispatch table
pointers
30. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
Pointers
%@
C operators
31. Three main categories of more complicated data structures:_______ - arrays and structs
nonatomic
ARC
pointers
inheritance
32. To destroy an object set the variable that points to it to _____
cycles
runtime
nil
compile time
33. Property attribute that synthesizes only a getter for the property
dispatch table
readonly
Enumerations
synchronous message
34. 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.
Interface Builder
null
C operators
encapsulation
35. Same as class object. (second way to say it.)
developer intent
nil
adopt
factory object
36. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
structures
class method
asterisk (*)
nil
37. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
readwrite
framework
[receiver message];
heap
38. Objective-C's protocols are really about communicating _____ _______
+
framework
encapsulation
developer intent
39. There are ____ fundamental building blocks in Objective-C
pointers
9
@implementation
readonly
40. Property attribute that synthesizes both a getter and setter for the property
selector
Interface Builder
readwrite
mutex
41. 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.
assignment
instance
adopt
procedures
42. Property attribute that causes the setter to store a copy of the assigned value
-
struct
ampersand (&)
copy
43. 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.
instance variable
AppKit
ampersand (&)
dynamic typing
44. 3 Common Float data types: float - _____ - CGFloat
init
remote object
protocol
double
45. Square bracket syntax for calling a method
[receiver message];
inheritance hierarchy
developer intent
dangling pointer
46. 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
receiver
cannot
subclass
NSString
47. A ____ _____ is where you forget to free up memory
inheritance hierarchy
delegate
dynamic binding
memory leak
48. 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.
Enumerations
floating-point
inheritance hierarchy
cycles
49. Any method that can be used by an instance of a class rather than by the class object.
reference counting
instance method
designated
Unsigned
50. All objects are created on the _____
class object
heap
remote message
delegates