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. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
ARC
NSObject
dynamic binding
2. _____ allow indirect access and modification of a variable's value.
AppKit
formal protocol
Pointers
@interface
3. 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.
inheritance hierarchy
id
inheritance
dynamic typing
4. A method that can operate on class objects rather than instances of the class.
class method
dynamic typing
delegates
Pointers
5. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
Smalltalk
framework
delegates
implementation
6. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
%@
assignment
instance
unitary
7. An object of unknown class. Interface is published through protocol declaration.
anonymous object
memory leak
attributes
fields
8. In object-oriented programming a procedure that can be executed by an object.
outlet
class method
message
method
9. Objective-C objects should use strong or weak ______
runtime
attributes
link time
dynamic binding
10. An object id with a value of 0.
pointer
pointers
delegate
nil
11. 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.
distributed objects
strong
link time
receiver
12. An object that acts on behalf of another object.
delegate
receiver
synchronous message
dispatch table
13. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
developer intent
Protocols
struct
remote object
14. Square bracket syntax for calling a method
[receiver message];
developer intent
anonymous object
heap
15. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
inheritance hierarchy
ARC
event
abstract superclass
16. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
long long
readonly
double
17. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
class object
inheritance hierarchy
object
delegates
18. 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.
instance variable
instance method
AppKit
message expression
19. The most flexible C data type: ______
struct
structures
memory leak
ampersand (&)
20. Symbol used to denote a placeholder in a format string
class
class
%
zero
21. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
dereference (dereferencing)
anonymous object
assignment
doubles
22. 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
compile time
structures
square brackets
id
23. 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
nil
structures
ARC
NSString
24. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
chars
class object
deprecated
inheritance hierarchy
25. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
dereference (dereferencing)
asynchronous message
procedures
properties
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.
readonly
superclass
mutex
instance variable
27. The process of setting or reading the value at an address pointed to by a pointer
Pointers
%@
message
dereference (dereferencing)
28. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
NSString
readwrite
Encapsulation
procedural programming language
29. A variable that points to the memory address of another value
formal protocol
%
pointer
interface
30. Property attribute that synthesizes only a getter for the property
ARC
deprecated
null
readonly
31. ____ provide a concise & elegant method for defining a discrete set of values
procedural programming language
Enumerations
delegate
synchronous message
32. A struct may contain multiple ____ consisting of different data types
assign
interface
fields
delegates
33. Same as class object. (first way to say it.)
remote object
distributed objects
factory
nonatomic
34. An object in another application - one that's a potential receiver for a remote message.
long long
id
remote object
Protocols
35. ______ operators take a single operand
Unitary
Cocoa
cycles
class object
36. A ____ _____ is where you forget to free up memory
memory leak
delegate
cannot
copy
37. C-style strings are stored in an array of _____
pointers
chars
procedural programming language
polymorphism
38. All objects are created on the _____
class
heap
nil
receiver
39. Property attribute that causes the setter to store a copy of the assigned value
abstract superclass
Unitary
copy
properties
40. Objective-C is a _____ of the C language
@implementation
formal protocol
superset
class method
41. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
zero
message
cycles
C operators
42. An architecture that facilitates communication between objects in different address spaces.
init
distributed objects
Product>Profile>Leaks>Profile
implementation
43. 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.
floating-point
abstract superclass
object
procedural programming language
44. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
receiver
weak
static typing
Unsigned
45. 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
double
copy
class
synchronous message
46. In a home building analogy a ____ is the blueprint and the object is the house
selector
cycles
class
superclass
47. A protocol declared as a category usually as a category of the NSObject class.
chars
informal protocol
reference counting
long long
48. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
copy
developer intent
readonly
long long
49. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
instance method
reference counting
readonly
interface
50. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
init
dynamic allocation
message
Smalltalk