SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. 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
dynamic binding
structures
implementation
event
2. 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.
runtime
distributed objects
struct
pointer
3. An object of unknown class. Interface is published through protocol declaration.
anonymous object
printf( )
dereference (dereferencing)
floating-point
4. Same as class object. (second way to say it.)
factory object
selector
procedural programming language
cannot
5. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
subclass
struct
polymorphism
remote message
6. 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.
ARC
instance variable
encapsulation
event
7. 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.
procedural programming language
delegate
abstract class
dynamic allocation
8. Property attribute that synthesizes only a getter for the property
readonly
receiver
dangling pointer
copy
9. The _____ function can be used to print a message to the console
class method
printf( )
event
polymorphism
10. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
structures
runtime
dynamic binding
11. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
instance
cycles
object
superclass
12. In Objective-C floats are more commonly used than ______
init
doubles
class
procedural programming language
13. 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.
Binary
selector
runtime
runtime
14. Same as class object. (first way to say it.)
factory
nonatomic
framework
square brackets
15. C-style strings are stored in an array of _____
double
chars
superset
square brackets
16. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
procedural programming language
Categories
%
17. The root class in Objective-C
Signed
NSObject
value
subclass
18. Three main categories of more complicated data structures:_______ - arrays and structs
value
pointers
9
ampersand (&)
19. 3 Common Float data types: float - _____ - CGFloat
Edit>Refactor>Convert to Objective-C ARC
C operators
encapsulation
double
20. In object-oriented programming a procedure that can be executed by an object.
procedural programming language
precedence
encapsulation
method
21. Discovering the class of an object at runtime rather than at compile time.
printf( )
dynamic typing
class
double
22. The first index in an array is valued at ____
deprecated
zero
9
Categories
23. An object that acts on behalf of another object.
asterisk (*)
%
delegate
%@
24. _____ 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
namespace
memory leak
factory
25. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
instance method
compile time
assignment
mutex
26. An architecture that facilitates communication between objects in different address spaces.
copy
event
properties
distributed objects
27. 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).
message expression
pointer
mutex
heap
28. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
class object
readwrite
message
29. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
Interface Builder
@implementation
Binary
factory
30. 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.
pointers
framework
reference counting
ARC
31. Property attribute that causes the setter to store a copy of the assigned value
superset
square brackets
copy
chars
32. The process of setting or reading the value at an address pointed to by a pointer
dangling pointer
procedures
dereference (dereferencing)
readwrite
33. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
doubles
class
[receiver message];
double
34. a++; is an example of using a _____ operator
Categories
doubles
ARC
unitary
35. To destroy an object set the variable that points to it to _____
instance
nil
structures
heap
36. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
dynamic typing
distributed objects
delegates
receiver
37. A method that can operate on class objects rather than instances of the class.
precedence
double
message expression
class method
38. 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.
pointers
Cocoa
message expression
inheritance hierarchy
39. A message sent from one application to an object in another application.
Smalltalk
remote message
synchronous message
-
40. Objective-C binds methods and arguments at _____ instead of compile time
abstract superclass
printf( )
runtime
message expression
41. A variable that points to the memory address of another value
pointer
Smalltalk
nonatomic
struct
42. _____ data types can be both positive and negative
dereference (dereferencing)
protocol
mutex
Signed
43. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
designated initializer
Smalltalk
NSString
%
44. 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).
implementation
dynamic binding
Categories
%@
45. 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.
abstract class
compile time
dynamic binding
method
46. 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.
AppKit
framework
dangling pointer
designated
47. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
remote message
inheritance hierarchy
namespace
mutex
48. ______ operators take a single operand
Unitary
asynchronous message
assign
conform
49. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
square brackets
static typing
remote message
class method
50. A struct may contain multiple ____ consisting of different data types
deprecated
properties
fields
formal protocol