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. Objective-C's protocols are really about communicating _____ _______
dynamic allocation
formal protocol
instance variable
developer intent
2. In a home building analogy a ____ is the blueprint and the object is the house
Smalltalk
Encapsulation
class
remote object
3. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Enumerations
interface
Smalltalk
factory
4. 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.
static typing
floating-point
Unitary
inheritance hierarchy
5. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
@implementation
dangling pointer
compile time
Signed
6. When creating a class header file you begin with the _____ keyword and close with the @end keyword
dynamic binding
@interface
attributes
NSString
7. An object id with a value of 0.
cycles
informal protocol
Pointers
nil
8. The most flexible C data type: ______
struct
inheritance
remote message
receiver
9. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
strong
assignment
NSObject
10. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
long long
nil
designated initializer
interface
11. ____ provide a concise & elegant method for defining a discrete set of values
framework
long long
Enumerations
message expression
12. 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
dereference (dereferencing)
dynamic typing
delegate
13. 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 Builder
static typing
memory leak
14. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
pointer
factory object
@implementation
runtime
15. An object that acts on behalf of another object.
printf( )
delegate
message expression
Pointers
16. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
polymorphism
procedures
asterisk (*)
Encapsulation
17. 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.
ARC
Protocols
mutex
instance
18. ARC is susceptible to retain _____
protocol
chars
cycles
doubles
19. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
dynamic binding
message
delegate
20. There are ____ fundamental building blocks in Objective-C
event
Cocoa
@interface
9
21. ______ operators take a single operand
encapsulation
init
event
Unitary
22. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
Enumerations
Binary
value
dereference (dereferencing)
23. 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.
cycles
asterisk (*)
encapsulation
@implementation
24. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
deprecated
factory
conform
25. A struct may contain multiple ____ consisting of different data types
Enumerations
object
fields
dereference (dereferencing)
26. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
value
adopt
nonatomic
27. Property attribute that causes the setter to store a copy of the assigned value
heap
procedural programming language
class method
copy
28. _____ operators take 2 operands
Binary
procedural programming language
fields
Unsigned
29. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
class object
procedural programming language
superclass
comma-separated
30. Objective-C binds methods and arguments at _____ instead of compile time
runtime
implementation
superset
subclass
31. To destroy an object set the variable that points to it to _____
dispatch table
category
init
nil
32. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
mutex
long long
static typing
asterisk (*)
33. C-style strings are stored in an array of _____
factory object
chars
superset
factory
34. In object-oriented programming the object that is sent a message.
receiver
method
category
class object
35. 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.
square brackets
reference counting
AppKit
printf( )
36. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
procedural programming language
cycles
synchronous message
37. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
deprecated
dynamic typing
inheritance hierarchy
38. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
static typing
designated
%@
@implementation
39. The first index in an array is valued at ____
class
zero
unitary
dynamic binding
40. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
printf( )
anonymous object
inheritance hierarchy
41. Property attribute that causes the setter to store a strong reference to the assigned value
designated
unitary
message expression
strong
42. The _____ function can be used to print a message to the console
Enumerations
printf( )
AppKit
formal protocol
43. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
designated
mutex
precedence
formal protocol
44. An object in another application - one that's a potential receiver for a remote message.
remote object
message
deprecated
pointers
45. A variable that points to the memory address of another value
procedures
Cocoa
Binary
pointer
46. 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.
message
outlet
mutex
class object
47. 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
null
NSString
Smalltalk
framework
48. In Objective-C floats are more commonly used than ______
attributes
message expression
doubles
@implementation
49. Instance variables are optional in iOS if ________ are used
outlet
properties
runtime
zero
50. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
delegate
NSString
nil