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 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.
AppKit
nil
zero
Binary
2. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
protocol
%@
doubles
3. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
unitary
comma-separated
printf( )
nil
4. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
superclass
asterisk (*)
dispatch table
readonly
5. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
dynamic typing
object
conform
ARC
6. Same as class object. (second way to say it.)
nil
cannot
NSObject
factory object
7. _____ allow indirect access and modification of a variable's value.
abstract superclass
dynamic binding
Pointers
runtime
8. Objective-C binds methods and arguments at _____ instead of compile time
Unsigned
floating-point
runtime
heap
9. A ____ _____ is where you forget to free up memory
Unsigned
mutex
memory leak
9
10. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
message
synchronous message
runtime
11. Xcode sequence to examine an app for memory leaks or retain cycles
double
Product>Profile>Leaks>Profile
reference counting
delegate
12. _____ allow you to add new methods to existing classes
dereference (dereferencing)
Pointers
Categories
value
13. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.
Encapsulation
object
NSString
instance method
14. ______ data types are always zero or greate
properties
Unsigned
superclass
Enumerations
15. Objective-C objects should use strong or weak ______
factory
conform
event
attributes
16. There are ____ fundamental building blocks in Objective-C
framework
memory leak
method
9
17. Data types are divided into two main categories: integer and ______
+
floating-point
framework
assignment
18. An object that acts on behalf of another object.
C operators
delegate
Product>Profile>Leaks>Profile
reference counting
19. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
receiver
null
long long
struct
20. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
binary
message
ARC
implementation
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
class
procedural programming language
init
22. A message sent from one application to an object in another application.
dispatch table
remote message
conform
deprecated
23. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
implementation
adopt
inheritance hierarchy
class
24. The first index in an array is valued at ____
zero
superclass
dereference (dereferencing)
instance
25. Same as class object. (first way to say it.)
structures
procedural programming language
object
factory
26. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
Interface Builder
ARC
compile time
message expression
27. In Objective-C floats are more commonly used than ______
Edit>Refactor>Convert to Objective-C ARC
dangling pointer
Cocoa
doubles
28. In object-oriented programming a procedure that can be executed by an object.
procedures
nonatomic
method
polymorphism
29. The most flexible C data type: ______
category
struct
NSObject
nonatomic
30. An object id with a value of 0.
remote message
cannot
nil
dangling pointer
31. ARC is susceptible to retain _____
Interface Builder
inheritance hierarchy
cycles
[receiver message];
32. ____ provide a concise & elegant method for defining a discrete set of values
instance
Enumerations
compile time
@interface
33. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
unitary
designated initializer
interface
zero
34. 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.
informal protocol
comma-separated
printf( )
runtime
35. The root class in Objective-C
class method
comma-separated
NSObject
Signed
36. Property attribute where the setter stores the assigned value but does not perform any memory management.
conform
cannot
message expression
assign
37. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
abstract class
Binary
factory
38. C-style strings are stored in an array of _____
chars
cycles
memory leak
message
39. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
factory
@implementation
value
cycles
40. Any method that can be used by an instance of a class rather than by the class object.
runtime
NSObject
reference counting
instance method
41. Symbol used to denote a placeholder in a format string
%
object
Unitary
instance
42. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
struct
square brackets
Unsigned
43. 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.
superclass
remote object
instance
reference counting
44. 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.
binary
NSObject
inheritance
dynamic allocation
45. An object in another application - one that's a potential receiver for a remote message.
object
remote object
heap
deprecated
46. Discovering the class of an object at runtime rather than at compile time.
abstract class
copy
dynamic typing
selector
47. Objective-C methods are called using ____ _____
deprecated
square brackets
long long
AppKit
48. 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.
outlet
distributed objects
instance variable
nil
49. Property attribute that causes the setter to store a copy of the assigned value
copy
@implementation
event
factory
50. 3 Common Float data types: float - _____ - CGFloat
inheritance
heap
inheritance hierarchy
double