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 a home building analogy a ____ is the blueprint and the object is the house
Cocoa
structures
inheritance hierarchy
class
2. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
%
attributes
distributed objects
asterisk (*)
3. Finding the method implementation to invoke in response to the message
properties
deprecated
instance method
dynamic binding
4. 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
cycles
readwrite
NSString
-
5. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
id
procedures
Edit>Refactor>Convert to Objective-C ARC
instance
6. Property attribute that synthesizes only a getter for the property
readonly
C operators
factory
Interface Builder
7. In Objective-C floats are more commonly used than ______
assignment
comma-separated
id
doubles
8. A variable that points to the memory address of another value
assign
pointer
Binary
NSString
9. When creating a class header file you begin with the _____ keyword and close with the @end keyword
Product>Profile>Leaks>Profile
@interface
assignment
cycles
10. Any method that can be used by an instance of a class rather than by the class object.
strong
instance method
developer intent
outlet
11. 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.
zero
attributes
instance variable
heap
12. Property attribute that causes the setter to store a strong reference to the assigned value
framework
dereference (dereferencing)
strong
zero
13. All objects are created on the _____
heap
id
9
memory leak
14. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
Cocoa
event
formal protocol
15. 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.
memory leak
class object
assignment
instance
16. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
abstract superclass
floating-point
Interface Builder
17. Square bracket syntax for calling a method
[receiver message];
Cocoa
remote object
dangling pointer
18. Data types are divided into two main categories: integer and ______
remote object
floating-point
Binary
implementation
19. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
deprecated
category
@implementation
20. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
abstract superclass
heap
runtime
21. Property attribute that synthesizes both a getter and setter for the property
event
long long
readwrite
Unitary
22. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.
reference counting
ARC
formal protocol
runtime
23. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
synchronous message
class
nil
24. C-style strings always end with a ____ character
deprecated
null
Binary
formal protocol
25. ARC is susceptible to retain _____
cycles
runtime
framework
AppKit
26. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
comma-separated
message expression
null
superclass
27. _____ data types can be both positive and negative
Signed
dangling pointer
Unsigned
category
28. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
developer intent
delegates
assign
procedural programming language
29. A class is said to do this when it declares that it implements all the methods in the protocol.
factory object
readonly
adopt
outlet
30. 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.
9
protocol
Signed
object
31. _____ operators take 2 operands
class object
protocol
properties
Binary
32. A struct may contain multiple ____ consisting of different data types
@interface
dereference (dereferencing)
dynamic allocation
fields
33. An object of unknown class. Interface is published through protocol declaration.
class
runtime
weak
anonymous object
34. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
instance variable
double
conform
message
35. 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.
link time
delegates
Enumerations
heap
36. Another name for a class that's defined solely so that other classes can inherit from it.
unitary
abstract superclass
Enumerations
selector
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
structures
interface
copy
square brackets
38. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
remote object
informal protocol
factory object
39. Placing a ____ before a normal variable name gives it's address
procedures
ampersand (&)
inheritance hierarchy
structures
40. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
developer intent
class
superclass
-
41. Xcode sequence to convert non-ARC apps to ARC
init
Edit>Refactor>Convert to Objective-C ARC
protocol
developer intent
42. Objective-C binds methods and arguments at _____ instead of compile time
doubles
printf( )
runtime
outlet
43. An architecture that facilitates communication between objects in different address spaces.
heap
precedence
distributed objects
Smalltalk
44. Symbol used to denote a placeholder in a format string
remote message
NSObject
%
Smalltalk
45. _____ allow you to add new methods to existing classes
nonatomic
Categories
receiver
Encapsulation
46. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
weak
binary
procedures
Edit>Refactor>Convert to Objective-C ARC
47. _____ 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
remote message
Smalltalk
asynchronous message
48. A compiler feature that provides automated memory management
ARC
superset
namespace
factory object
49. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
event
precedence
runtime
cannot
50. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
nil
runtime
chars