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 variable that points to the memory address of another value
pointer
polymorphism
floating-point
developer intent
2. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
instance
instance method
C operators
dispatch table
3. 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.
compile time
instance
remote object
long long
4. 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.
runtime
AppKit
precedence
instance
5. 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.
[receiver message];
encapsulation
instance method
instance variable
6. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
value
assignment
pointers
instance variable
7. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
assign
nonatomic
comma-separated
fields
8. All objects are created on the _____
heap
AppKit
Protocols
receiver
9. 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.
Smalltalk
asynchronous message
remote message
doubles
10. In Objective-C floats are more commonly used than ______
synchronous message
properties
implementation
doubles
11. The root class in Objective-C
dangling pointer
Enumerations
NSObject
abstract class
12. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
instance
[receiver message];
+
13. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
informal protocol
message
Pointers
static typing
14. 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.
nil
dynamic allocation
distributed objects
event
15. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
cannot
@implementation
9
deprecated
16. Symbol used to denote a placeholder in a format string
dangling pointer
subclass
%
message expression
17. 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
remote message
weak
properties
structures
18. Objective-C methods are called using ____ _____
square brackets
properties
mutex
copy
19. a++; is an example of using a _____ operator
asynchronous message
synchronous message
distributed objects
unitary
20. Finding the method implementation to invoke in response to the message
abstract class
readonly
assignment
dynamic binding
21. Instance variables are optional in iOS if ________ are used
remote message
fields
AppKit
properties
22. 3 Common Float data types: float - _____ - CGFloat
double
runtime
chars
subclass
23. Initializer method traditionally begin with the _____ prefix
long long
protocol
inheritance
init
24. The first index in an array is valued at ____
dereference (dereferencing)
runtime
zero
[receiver message];
25. C-style strings always end with a ____ character
Product>Profile>Leaks>Profile
null
%@
memory leak
26. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
asterisk (*)
Unsigned
pointers
27. A message sent from one application to an object in another application.
unitary
synchronous message
receiver
remote message
28. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
event
Interface Builder
@interface
asterisk (*)
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.
link time
class
strong
procedures
30. Placing a ____ before a normal variable name gives it's address
ampersand (&)
link time
superset
square brackets
31. An object in another application - one that's a potential receiver for a remote message.
mutex
remote object
ARC
[receiver message];
32. Same as class object. (first way to say it.)
selector
message
factory
conform
33. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
selector
mutex
instance
id
34. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
interface
dynamic binding
nil
delegates
35. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
delegate
nonatomic
id
Categories
36. 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.
+
square brackets
reference counting
cannot
37. Data types are divided into two main categories: integer and ______
implementation
properties
floating-point
deprecated
38. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
square brackets
instance method
compile time
39. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
readonly
pointer
remote object
superclass
40. An object id with a value of 0.
attributes
mutex
nil
instance method
41. A set of method definitions that is segregated from the rest of the class definition.
Protocols
procedures
struct
category
42. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
fields
adopt
weak
abstract superclass
43. Any method that can be used by an instance of a class rather than by the class object.
abstract class
mutex
instance method
asterisk (*)
44. The most flexible C data type: ______
struct
designated initializer
dispatch table
@implementation
45. This symbol denotes a method as being an instance method
-
asterisk (*)
[receiver message];
interface
46. Property attribute that synthesizes both a getter and setter for the property
class
+
readwrite
cannot
47. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
designated
comma-separated
@interface
procedural programming language
48. _____ operators take 2 operands
Binary
message
weak
AppKit
49. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
%
implementation
interface
runtime
50. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
strong
precedence
instance variable
distributed objects