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. The root class in Objective-C
binary
procedures
event
NSObject
2. a+b; is an example of using a _____ operator
class method
mutex
abstract superclass
binary
3. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
cannot
comma-separated
instance
pointers
4. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
structures
memory leak
C operators
Edit>Refactor>Convert to Objective-C ARC
5. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
factory
framework
floating-point
readonly
6. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
cannot
static typing
reference counting
assignment
7. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
%
polymorphism
event
strong
8. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
dangling pointer
instance
superclass
selector
9. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
instance
class
unitary
method
10. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
Interface Builder
reference counting
static typing
delegates
11. Symbol used to denote a placeholder in a format string
double
id
%
null
12. Same as class object. (first way to say it.)
properties
fields
factory
superclass
13. 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.
C operators
printf( )
encapsulation
developer intent
14. Objective-C is a _____ of the C language
Unitary
superset
interface
class
15. An object id with a value of 0.
nil
dereference (dereferencing)
instance
subclass
16. A struct may contain multiple ____ consisting of different data types
protocol
fields
selector
class
17. When creating a class header file you begin with the _____ keyword and close with the @end keyword
init
@implementation
@interface
receiver
18. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
-
value
cannot
instance
19. Another name for a class that's defined solely so that other classes can inherit from it.
runtime
Enumerations
ampersand (&)
abstract superclass
20. 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.
abstract superclass
asterisk (*)
formal protocol
fields
21. Discovering the class of an object at runtime rather than at compile time.
instance variable
delegates
method
dynamic typing
22. 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.
synchronous message
delegate
class object
selector
23. A protocol declared as a category usually as a category of the NSObject class.
factory
copy
fields
informal protocol
24. A class is said to do this when it declares that it implements all the methods in the protocol.
factory object
adopt
comma-separated
asynchronous message
25. A ____ _____ is where you forget to free up memory
message expression
category
superset
memory leak
26. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
nil
deprecated
interface
cannot
27. 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
id
runtime
class method
NSString
28. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
structures
asynchronous message
copy
interface
29. An architecture that facilitates communication between objects in different address spaces.
assignment
object
distributed objects
framework
30. A compiler feature that provides automated memory management
Encapsulation
structures
ARC
link time
31. Objective-C binds methods and arguments at _____ instead of compile time
ampersand (&)
runtime
@interface
dynamic binding
32. _____ 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'.
deprecated
method
dynamic binding
Encapsulation
33. _____ operators take 2 operands
factory object
Pointers
superset
Binary
34. 3 Common Float data types: float - _____ - CGFloat
dynamic typing
class method
inheritance hierarchy
double
35. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
nonatomic
protocol
Protocols
Categories
36. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
subclass
reference counting
instance method
message
37. Same as class object. (second way to say it.)
factory object
struct
static typing
copy
38. In a format string the place holder for an object is ______
class object
%@
binary
strong
39. ARC is susceptible to retain _____
C operators
properties
static typing
cycles
40. 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
unitary
[receiver message];
readonly
41. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
static typing
double
struct
42. This symbol denotes a method as being an instance method
subclass
@interface
message
-
43. 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.
designated initializer
value
runtime
polymorphism
44. 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.
interface
category
Encapsulation
instance
45. An object that acts on behalf of another object.
nonatomic
assignment
class
delegate
46. This symbol denotes a method as being a class method
init
zero
Protocols
+
47. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
ARC
inheritance
static typing
printf( )
48. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
square brackets
Cocoa
polymorphism
null
49. Property attribute that causes the setter to store a copy of the assigned value
copy
abstract superclass
event
Signed
50. a++; is an example of using a _____ operator
unitary
formal protocol
remote object
Unsigned