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. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
category
readonly
procedures
dispatch table
2. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
runtime
Cocoa
framework
structures
3. The most flexible C data type: ______
struct
class method
pointers
assign
4. Placing a ____ before a normal variable name gives it's address
dangling pointer
C operators
ampersand (&)
mutex
5. An object in another application - one that's a potential receiver for a remote message.
precedence
Unitary
remote object
NSObject
6. C-style strings always end with a ____ character
AppKit
factory
formal protocol
null
7. Objective-C methods are called using ____ _____
fields
printf( )
abstract superclass
square brackets
8. To destroy an object set the variable that points to it to _____
encapsulation
object
nil
deprecated
9. There are ____ fundamental building blocks in Objective-C
dispatch table
properties
fields
9
10. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
instance
abstract class
mutex
doubles
11. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
informal protocol
event
readonly
class method
12. The _____ function can be used to print a message to the console
asterisk (*)
delegate
class
printf( )
13. This symbol denotes a method as being a class method
synchronous message
Signed
+
asynchronous message
14. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
chars
NSObject
interface
instance variable
15. _____ allow indirect access and modification of a variable's value.
class object
attributes
readonly
Pointers
16. A method that can operate on class objects rather than instances of the class.
class method
long long
memory leak
Encapsulation
17. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
heap
readwrite
delegates
mutex
18. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
distributed objects
superset
null
assignment
19. Initializer method traditionally begin with the _____ prefix
assignment
Categories
instance
init
20. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
formal protocol
-
[receiver message];
21. Property attribute that causes the setter to store a copy of the assigned value
copy
framework
static typing
developer intent
22. 3 Common Float data types: float - _____ - CGFloat
static typing
remote object
double
Signed
23. a++; is an example of using a _____ operator
fields
unitary
precedence
mutex
24. Square bracket syntax for calling a method
fields
[receiver message];
ampersand (&)
attributes
25. Objective-C's protocols are really about communicating _____ _______
cycles
properties
cannot
developer intent
26. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
abstract class
long long
inheritance
27. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
comma-separated
designated initializer
Unsigned
double
28. Three main categories of more complicated data structures:_______ - arrays and structs
dynamic typing
pointers
inheritance
conform
29. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
C operators
superclass
factory object
null
30. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
zero
static typing
factory
31. Property attribute that causes the setter to store a strong reference to the assigned value
strong
informal protocol
remote message
delegate
32. The process of setting or reading the value at an address pointed to by a pointer
square brackets
dereference (dereferencing)
+
long long
33. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
category
polymorphism
NSString
Cocoa
34. An object of unknown class. Interface is published through protocol declaration.
Binary
delegates
anonymous object
inheritance
35. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
namespace
@implementation
unitary
instance
36. ARC is susceptible to retain _____
anonymous object
dynamic typing
cycles
nil
37. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
assign
designated initializer
binary
precedence
38. A compiler feature that provides automated memory management
ARC
namespace
conform
heap
39. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
structures
dereference (dereferencing)
assign
40. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met
object
NSString
conform
cannot
41. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
procedural programming language
doubles
-
42. ______ operators take a single operand
Unitary
memory leak
class object
formal protocol
43. 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.
procedural programming language
runtime
square brackets
Interface Builder
44. 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.
developer intent
dynamic typing
readwrite
selector
45. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
memory leak
object
printf( )
46. A message sent from one application to an object in another application.
[receiver message];
unitary
class
remote message
47. C-style strings are stored in an array of _____
@implementation
polymorphism
chars
Enumerations
48. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
class method
pointers
memory leak
49. 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.
value
message expression
namespace
@implementation
50. 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).
message expression
nil
encapsulation
Protocols