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. Same as class object. (first way to say it.)
nil
Cocoa
assignment
factory
2. In the Objective-C language the declaration of a group of methods not associated with any particular class.
formal protocol
dispatch table
protocol
delegate
3. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
nil
value
procedural programming language
4. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
null
assignment
Enumerations
unitary
5. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
procedural programming language
inheritance
[receiver message];
@implementation
6. A class is said to do this when it declares that it implements all the methods in the protocol.
C operators
chars
adopt
informal protocol
7. 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).
double
dereference (dereferencing)
implementation
category
8. In a format string the place holder for an object is ______
%@
reference counting
printf( )
category
9. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
weak
inheritance
superset
Protocols
10. 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.
framework
[receiver message];
dynamic allocation
square brackets
11. 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.
cycles
Protocols
selector
remote message
12. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
double
abstract superclass
synchronous message
13. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
instance
framework
structures
zero
14. A message sent from one application to an object in another application.
interface
Cocoa
remote message
weak
15. C-style strings always end with a ____ character
[receiver message];
null
@implementation
remote object
16. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
synchronous message
readwrite
procedures
value
17. a+b; is an example of using a _____ operator
message
strong
link time
binary
18. A method that can operate on class objects rather than instances of the class.
ampersand (&)
designated
class method
developer intent
19. 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
class
assignment
+
20. 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.
link time
cycles
fields
Pointers
21. 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.
method
delegates
abstract class
zero
22. C-style strings are stored in an array of _____
reference counting
%
chars
dynamic allocation
23. 3 Common Float data types: float - _____ - CGFloat
event
double
weak
nil
24. A compiler feature that provides automated memory management
ARC
unitary
%@
-
25. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
synchronous message
asterisk (*)
Unitary
deprecated
26. 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
procedural programming language
link time
structures
outlet
27. In object-oriented programming the object that is sent a message.
structures
nonatomic
readwrite
receiver
28. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
polymorphism
instance
class method
properties
29. A struct may contain multiple ____ consisting of different data types
fields
Product>Profile>Leaks>Profile
instance
interface
30. Objective-C methods are called using ____ _____
square brackets
ampersand (&)
attributes
dispatch table
31. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
unitary
polymorphism
delegates
abstract class
32. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
Pointers
event
dynamic binding
dispatch table
33. Property attribute that synthesizes accessors that are not thread safe
9
id
nonatomic
dynamic allocation
34. A protocol declared as a category usually as a category of the NSObject class.
abstract class
informal protocol
ampersand (&)
floating-point
35. 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.
Binary
Unitary
readonly
runtime
36. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
pointers
compile time
dereference (dereferencing)
precedence
37. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
instance method
weak
superclass
adopt
38. This symbol denotes a method as being an instance method
readonly
-
formal protocol
selector
39. Objective-C's protocols are really about communicating _____ _______
pointer
developer intent
designated
adopt
40. Square bracket syntax for calling a method
mutex
[receiver message];
+
ARC
41. Symbol used to denote a placeholder in a format string
distributed objects
%
informal protocol
class
42. Property attribute where the setter stores the assigned value but does not perform any memory management.
dynamic binding
assign
Signed
dynamic allocation
43. Another name for a class that's defined solely so that other classes can inherit from it.
C operators
mutex
unitary
abstract superclass
44. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
readonly
copy
weak
45. Same as class object. (second way to say it.)
remote object
nil
factory object
superset
46. In object-oriented programming a procedure that can be executed by an object.
method
pointer
inheritance
runtime
47. Initializer method traditionally begin with the _____ prefix
init
event
message
compile time
48. The root class in Objective-C
factory object
NSObject
remote object
attributes
49. An object of unknown class. Interface is published through protocol declaration.
doubles
anonymous object
Protocols
framework
50. _____ allow you to add new methods to existing classes
outlet
implementation
Categories
delegate