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. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
procedures
assign
static typing
2. 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.
pointer
superclass
deprecated
link time
3. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
double
cycles
adopt
4. A method that can operate on class objects rather than instances of the class.
protocol
dynamic allocation
class method
doubles
5. _____ data types can be both positive and negative
weak
Signed
deprecated
compile time
6. Property attribute that causes the setter to store a copy of the assigned value
instance
selector
copy
message expression
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.
procedural programming language
instance
comma-separated
abstract class
8. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
printf( )
message expression
cannot
[receiver message];
9. A class is said to do this when it declares that it implements all the methods in the protocol.
polymorphism
adopt
remote message
precedence
10. 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.
mutex
Categories
reference counting
developer intent
11. 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
floating-point
NSString
class method
runtime
12. C-style strings are stored in an array of _____
chars
category
value
abstract class
13. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
polymorphism
zero
properties
14. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Unitary
Protocols
floating-point
remote message
15. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
long long
instance method
C operators
16. Square bracket syntax for calling a method
double
chars
delegates
[receiver message];
17. 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).
Enumerations
factory object
message expression
comma-separated
18. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
abstract superclass
%
nil
19. C-style strings always end with a ____ character
null
protocol
struct
floating-point
20. 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.
developer intent
instance
designated
dynamic allocation
21. a+b; is an example of using a _____ operator
fields
binary
nonatomic
C operators
22. 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.
category
NSString
formal protocol
ampersand (&)
23. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
heap
static typing
delegates
comma-separated
24. The most flexible C data type: ______
struct
inheritance
message expression
conform
25. Three main categories of more complicated data structures:_______ - arrays and structs
protocol
cycles
long long
pointers
26. In a home building analogy a ____ is the blueprint and the object is the house
properties
class
memory leak
outlet
27. _____ allow you to add new methods to existing classes
remote message
value
Categories
message
28. A compiler feature that provides automated memory management
method
@implementation
precedence
ARC
29. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
deprecated
Smalltalk
asterisk (*)
dynamic allocation
30. 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
polymorphism
class
Edit>Refactor>Convert to Objective-C ARC
31. Another name for a class that's defined solely so that other classes can inherit from it.
assign
Unitary
category
abstract superclass
32. The process of setting or reading the value at an address pointed to by a pointer
class method
[receiver message];
abstract class
dereference (dereferencing)
33. An object id with a value of 0.
subclass
nil
developer intent
superclass
34. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
distributed objects
framework
procedural programming language
message expression
35. Property attribute that synthesizes only a getter for the property
category
link time
encapsulation
readonly
36. Same as class object. (second way to say it.)
delegate
factory object
binary
formal protocol
37. 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
distributed objects
init
structures
procedural programming language
38. To destroy an object set the variable that points to it to _____
class object
nil
readonly
Encapsulation
39. 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.
deprecated
class object
designated initializer
readonly
40. Objective-C's protocols are really about communicating _____ _______
protocol
dangling pointer
outlet
developer intent
41. All objects are created on the _____
mutex
-
superclass
heap
42. _____ 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'.
square brackets
nil
instance method
Encapsulation
43. _____ allow indirect access and modification of a variable's value.
class
struct
Pointers
framework
44. 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.
cannot
dynamic allocation
comma-separated
chars
45. Finding the method implementation to invoke in response to the message
dynamic binding
procedures
dangling pointer
link time
46. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
assign
ARC
selector
weak
47. In a format string the place holder for an object is ______
distributed objects
dynamic binding
ampersand (&)
%@
48. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
zero
nonatomic
implementation
superclass
49. There are ____ fundamental building blocks in Objective-C
9
Edit>Refactor>Convert to Objective-C ARC
superclass
mutex
50. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
Cocoa
superclass
class object