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. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
factory object
C operators
deprecated
cannot
2. 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.
namespace
memory leak
doubles
instance
3. A message sent from one application to an object in another application.
implementation
instance
remote message
procedures
4. 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).
copy
message expression
interface
compile time
5. Objective-C's protocols are really about communicating _____ _______
chars
interface
fields
developer intent
6. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
asterisk (*)
class
remote message
7. This symbol denotes a method as being an instance method
-
readwrite
Unsigned
Edit>Refactor>Convert to Objective-C ARC
8. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Binary
compile time
Smalltalk
encapsulation
9. 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.
anonymous object
formal protocol
square brackets
instance variable
10. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
Edit>Refactor>Convert to Objective-C ARC
static typing
strong
dispatch table
11. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
pointers
9
anonymous object
asterisk (*)
12. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
adopt
dynamic allocation
9
designated
13. Instance variables are optional in iOS if ________ are used
object
properties
assignment
long long
14. Xcode sequence to convert non-ARC apps to ARC
unitary
procedural programming language
Edit>Refactor>Convert to Objective-C ARC
square brackets
15. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
double
floating-point
polymorphism
message
16. Same as class object. (second way to say it.)
factory object
readwrite
copy
inheritance hierarchy
17. 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.
double
fields
@implementation
asynchronous message
18. Property attribute where the setter stores the assigned value but does not perform any memory management.
deprecated
attributes
class object
assign
19. In Objective-C floats are more commonly used than ______
inheritance hierarchy
superset
doubles
superclass
20. A ____ _____ is where you forget to free up memory
memory leak
class
cannot
strong
21. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
dangling pointer
comma-separated
unitary
pointers
22. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
Enumerations
cannot
NSString
pointer
23. Same as class object. (first way to say it.)
%@
%
factory
class object
24. C-style strings always end with a ____ character
C operators
dynamic typing
copy
null
25. 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.
receiver
informal protocol
Interface Builder
square brackets
26. An architecture that facilitates communication between objects in different address spaces.
designated initializer
NSObject
anonymous object
distributed objects
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
NSString
instance method
abstract class
pointer
28. Another name for a class that's defined solely so that other classes can inherit from it.
instance
9
struct
abstract superclass
29. Objective-C methods are called using ____ _____
square brackets
cannot
designated
printf( )
30. 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).
class method
implementation
%@
Protocols
31. The root class in Objective-C
outlet
message expression
instance
NSObject
32. Property attribute that synthesizes only a getter for the property
remote object
cannot
nonatomic
readonly
33. Property attribute that causes the setter to store a copy of the assigned value
ampersand (&)
nonatomic
copy
instance
34. A protocol declared as a category usually as a category of the NSObject class.
Protocols
method
instance
informal protocol
35. There are ____ fundamental building blocks in Objective-C
protocol
nonatomic
9
inheritance
36. 3 Common Float data types: float - _____ - CGFloat
category
structures
framework
double
37. _____ operators take 2 operands
Binary
Edit>Refactor>Convert to Objective-C ARC
compile time
ARC
38. In object-oriented programming a procedure that can be executed by an object.
method
init
adopt
fields
39. Placing a ____ before a normal variable name gives it's address
dispatch table
asterisk (*)
factory object
ampersand (&)
40. In object-oriented programming the object that is sent a message.
link time
implementation
receiver
dereference (dereferencing)
41. Initializer method traditionally begin with the _____ prefix
init
delegate
procedures
adopt
42. 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.
structures
selector
printf( )
conform
43. ______ operators take a single operand
Smalltalk
value
Unitary
selector
44. ______ data types are always zero or greate
+
%@
Unsigned
Pointers
45. When creating a class header file you begin with the _____ keyword and close with the @end keyword
cannot
@interface
asterisk (*)
message expression
46. Any method that can be used by an instance of a class rather than by the class object.
instance method
remote message
designated
interface
47. A set of method definitions that is segregated from the rest of the class definition.
distributed objects
category
unitary
dynamic typing
48. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
dynamic allocation
abstract class
class
inheritance hierarchy
49. 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.
instance
encapsulation
adopt
ARC
50. An object in another application - one that's a potential receiver for a remote message.
readwrite
remote object
attributes
remote message