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. ARC is susceptible to retain _____
distributed objects
subclass
cycles
conform
2. An object that acts on behalf of another object.
Interface Builder
delegate
framework
%
3. 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
memory leak
NSString
%
designated
4. To destroy an object set the variable that points to it to _____
nil
comma-separated
Product>Profile>Leaks>Profile
instance method
5. ______ data types are always zero or greate
Protocols
object
cycles
Unsigned
6. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
Unsigned
object
link time
7. A ____ ____ is a situation where you free memory and then accidentally continue to use it
delegates
message
dangling pointer
long long
8. 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.
init
Unsigned
object
subclass
9. Three main categories of more complicated data structures:_______ - arrays and structs
NSString
memory leak
pointers
inheritance hierarchy
10. C-style strings are stored in an array of _____
Binary
procedural programming language
zero
chars
11. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
Enumerations
@implementation
message
12. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
mutex
compile time
developer intent
binary
13. 3 Common Float data types: float - _____ - CGFloat
double
printf( )
C operators
Categories
14. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
static typing
procedural programming language
asterisk (*)
class method
15. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
Interface Builder
delegates
NSString
16. C-style strings always end with a ____ character
NSObject
memory leak
printf( )
null
17. 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.
readonly
instance method
subclass
outlet
18. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
pointers
assignment
nil
value
19. Same as class object. (second way to say it.)
doubles
reference counting
anonymous object
factory object
20. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
memory leak
NSObject
class
delegates
21. When creating a class header file you begin with the _____ keyword and close with the @end keyword
dynamic typing
asynchronous message
abstract class
@interface
22. Symbol used to denote a placeholder in a format string
%
event
method
class method
23. A message sent from one application to an object in another application.
designated initializer
C operators
dereference (dereferencing)
remote message
24. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
Enumerations
long long
square brackets
C operators
25. 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
interface
delegates
factory object
26. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
value
@implementation
abstract superclass
Smalltalk
27. Property attribute that causes the setter to store a strong reference to the assigned value
instance
dynamic binding
strong
weak
28. In a home building analogy a ____ is the blueprint and the object is the house
class
doubles
superset
Signed
29. 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.
subclass
encapsulation
Categories
zero
30. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
Binary
message
asynchronous message
readwrite
31. Another name for a class that's defined solely so that other classes can inherit from it.
@implementation
long long
binary
abstract superclass
32. 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
attributes
dynamic typing
structures
Unsigned
33. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
protocol
+
interface
34. _____ data types can be both positive and negative
square brackets
asterisk (*)
Signed
abstract class
35. 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.
id
C operators
dynamic allocation
copy
36. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
conform
dangling pointer
[receiver message];
link time
37. 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.
factory object
weak
remote message
abstract class
38. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
readwrite
receiver
null
39. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
strong
polymorphism
AppKit
inheritance
40. 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).
nil
cannot
message expression
Categories
41. Any method that can be used by an instance of a class rather than by the class object.
instance method
instance
Categories
factory object
42. Same as class object. (first way to say it.)
runtime
superset
factory
fields
43. A set of method definitions that is segregated from the rest of the class definition.
precedence
category
weak
ampersand (&)
44. In object-oriented programming the object that is sent a message.
Enumerations
designated
receiver
Unsigned
45. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
designated
remote object
readonly
procedures
46. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
assignment
category
assign
47. The process of setting or reading the value at an address pointed to by a pointer
@interface
NSObject
remote object
dereference (dereferencing)
48. Objective-C methods are called using ____ _____
procedural programming language
square brackets
anonymous object
properties
49. The _____ function can be used to print a message to the console
printf( )
Categories
dynamic typing
strong
50. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
double
Interface Builder
factory object