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. _____ allow you to add new methods to existing classes
pointers
instance
Signed
Categories
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.
class
runtime
distributed objects
dynamic binding
3. All objects are created on the _____
asynchronous message
heap
abstract superclass
Unitary
4. _____ allow indirect access and modification of a variable's value.
properties
message
framework
Pointers
5. C-style strings are stored in an array of _____
asynchronous message
ARC
struct
chars
6. 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.
implementation
abstract class
class
static typing
7. Square bracket syntax for calling a method
9
Categories
[receiver message];
value
8. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
properties
weak
receiver
9. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
chars
delegates
nil
category
10. This symbol denotes a method as being an instance method
-
compile time
inheritance
runtime
11. Three main categories of more complicated data structures:_______ - arrays and structs
cycles
pointers
nonatomic
reference counting
12. Property attribute that causes the setter to store a copy of the assigned value
mutex
copy
Signed
inheritance
13. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dynamic typing
category
dispatch table
NSString
14. 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.
assign
mutex
outlet
factory object
15. 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.
memory leak
properties
dynamic allocation
factory
16. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
[receiver message];
inheritance
@implementation
cycles
17. 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.
delegate
class object
designated initializer
Pointers
18. Same as class object. (second way to say it.)
inheritance hierarchy
Categories
factory object
Interface Builder
19. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
superset
square brackets
remote object
20. A ____ _____ is where you forget to free up memory
informal protocol
procedures
static typing
memory leak
21. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
nil
dangling pointer
method
inheritance
22. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
+
copy
instance
23. 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).
namespace
Unitary
Encapsulation
message expression
24. Property attribute that synthesizes only a getter for the property
class method
readonly
formal protocol
[receiver message];
25. Any method that can be used by an instance of a class rather than by the class object.
compile time
assign
instance method
readonly
26. A compiler feature that provides automated memory management
ARC
floating-point
binary
outlet
27. A message sent from one application to an object in another application.
remote message
selector
Pointers
pointers
28. When creating a class header file you begin with the _____ keyword and close with the @end keyword
9
@interface
readonly
heap
29. 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.
C operators
%@
delegates
link time
30. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
comma-separated
superclass
Signed
Interface Builder
31. Any class that's one step below another class in the inheritance hierarchy.
ARC
subclass
instance
nil
32. In Objective-C floats are more commonly used than ______
Edit>Refactor>Convert to Objective-C ARC
protocol
doubles
abstract class
33. A struct may contain multiple ____ consisting of different data types
fields
selector
designated initializer
procedures
34. Placing a ____ before a normal variable name gives it's address
class object
cycles
doubles
ampersand (&)
35. Property attribute that synthesizes accessors that are not thread safe
static typing
@implementation
precedence
nonatomic
36. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
namespace
Interface Builder
event
static typing
37. Objective-C binds methods and arguments at _____ instead of compile time
runtime
abstract class
category
unitary
38. Discovering the class of an object at runtime rather than at compile time.
Interface Builder
dynamic typing
runtime
cycles
39. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
pointers
link time
Encapsulation
40. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
delegates
interface
method
factory
41. Data types are divided into two main categories: integer and ______
floating-point
factory object
receiver
runtime
42. Instance variables are optional in iOS if ________ are used
properties
class
binary
dynamic allocation
43. 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).
structures
NSObject
implementation
assignment
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.
distributed objects
instance
Unsigned
zero
45. a+b; is an example of using a _____ operator
@implementation
double
binary
inheritance hierarchy
46. Objective-C is a _____ of the C language
superset
remote message
dispatch table
object
47. Initializer method traditionally begin with the _____ prefix
runtime
-
init
inheritance hierarchy
48. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
namespace
class method
outlet
49. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
fields
long long
Enumerations
conform
50. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
+
framework
namespace
init