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 logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
nonatomic
dynamic allocation
namespace
runtime
2. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
%@
static typing
Unsigned
[receiver message];
3. 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).
developer intent
implementation
event
instance variable
4. A ____ _____ is where you forget to free up memory
memory leak
nil
superset
printf( )
5. There are ____ fundamental building blocks in Objective-C
zero
Enumerations
9
abstract class
6. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
zero
asterisk (*)
readwrite
inheritance hierarchy
7. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
designated initializer
receiver
factory
instance
8. 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.
memory leak
remote message
runtime
link time
9. A method that can operate on class objects rather than instances of the class.
remote message
Edit>Refactor>Convert to Objective-C ARC
strong
class method
10. 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.
doubles
encapsulation
instance
interface
11. 3 Common Float data types: float - _____ - CGFloat
double
class method
remote message
mutex
12. Three main categories of more complicated data structures:_______ - arrays and structs
precedence
method
pointers
protocol
13. The most flexible C data type: ______
receiver
doubles
struct
method
14. A class is said to do this when it declares that it implements all the methods in the protocol.
asterisk (*)
C operators
adopt
Interface Builder
15. A set of method definitions that is segregated from the rest of the class definition.
readonly
interface
category
Product>Profile>Leaks>Profile
16. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
delegates
remote object
ampersand (&)
17. A variable that points to the memory address of another value
Binary
pointer
double
dynamic typing
18. 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.
Unitary
designated initializer
outlet
deprecated
19. The root class in Objective-C
NSObject
fields
dispatch table
printf( )
20. A struct may contain multiple ____ consisting of different data types
zero
adopt
superclass
fields
21. 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.
reference counting
properties
procedures
%@
22. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
instance method
adopt
@interface
23. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
pointer
outlet
mutex
null
24. Objective-C binds methods and arguments at _____ instead of compile time
runtime
%@
Edit>Refactor>Convert to Objective-C ARC
NSString
25. 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.
Edit>Refactor>Convert to Objective-C ARC
abstract superclass
asynchronous message
floating-point
26. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
@implementation
runtime
message
27. Any method that can be used by an instance of a class rather than by the class object.
instance method
cannot
static typing
polymorphism
28. The _____ function can be used to print a message to the console
printf( )
heap
pointers
abstract class
29. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
Smalltalk
designated
anonymous object
instance
30. In object-oriented programming a procedure that can be executed by an object.
method
object
implementation
instance method
31. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica
init
precedence
cannot
synchronous message
32. This symbol denotes a method as being a class method
dereference (dereferencing)
+
designated
Enumerations
33. Property attribute that synthesizes both a getter and setter for the property
Edit>Refactor>Convert to Objective-C ARC
readwrite
adopt
copy
34. _____ allow indirect access and modification of a variable's value.
Pointers
cycles
mutex
AppKit
35. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Interface Builder
Cocoa
doubles
reference counting
36. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
designated initializer
formal protocol
polymorphism
Smalltalk
37. 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
readonly
object
structures
remote message
38. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
Pointers
object
protocol
39. To destroy an object set the variable that points to it to _____
nil
comma-separated
remote object
chars
40. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
pointer
square brackets
developer intent
41. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
object
AppKit
conform
long long
42. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
procedural programming language
AppKit
weak
ampersand (&)
43. 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).
C operators
message expression
readwrite
copy
44. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
interface
init
properties
45. Finding the method implementation to invoke in response to the message
dynamic binding
category
cycles
instance
46. _____ data types can be both positive and negative
assign
AppKit
Signed
developer intent
47. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
assignment
adopt
inheritance hierarchy
message expression
48. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
dangling pointer
C operators
fields
structures
49. Objective-C's protocols are really about communicating _____ _______
assignment
chars
developer intent
class
50. A protocol declared as a category usually as a category of the NSObject class.
instance variable
informal protocol
runtime
double