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 _____ function can be used to print a message to the console
printf( )
Encapsulation
assignment
C operators
2. Objective-C objects should use strong or weak ______
Product>Profile>Leaks>Profile
instance
object
attributes
3. Symbol used to denote a placeholder in a format string
Categories
%
@implementation
[receiver message];
4. _____ operators take 2 operands
init
Binary
pointers
class method
5. A ____ ____ is a situation where you free memory and then accidentally continue to use it
NSString
-
abstract superclass
dangling pointer
6. Objective-C is a _____ of the C language
unitary
superset
category
superclass
7. An object that acts on behalf of another object.
class method
delegate
readwrite
Cocoa
8. 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.
asynchronous message
Product>Profile>Leaks>Profile
outlet
assign
9. Property attribute that causes the setter to store a strong reference to the assigned value
strong
framework
comma-separated
dispatch table
10. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
ampersand (&)
superclass
designated
selector
11. A method that can operate on class objects rather than instances of the class.
class method
binary
mutex
Encapsulation
12. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
Protocols
ampersand (&)
Encapsulation
13. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
inheritance hierarchy
deprecated
delegates
AppKit
14. Initializer method traditionally begin with the _____ prefix
nonatomic
init
Interface Builder
runtime
15. An architecture that facilitates communication between objects in different address spaces.
structures
class object
link time
distributed objects
16. _____ 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'.
chars
Encapsulation
factory object
comma-separated
17. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
dynamic allocation
message
asterisk (*)
class
18. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
Encapsulation
@implementation
deprecated
19. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
NSObject
procedural programming language
runtime
init
20. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
assign
deprecated
procedures
precedence
21. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
NSObject
compile time
inheritance
@implementation
22. An object of unknown class. Interface is published through protocol declaration.
message expression
copy
polymorphism
anonymous object
23. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
informal protocol
value
class object
chars
24. The most flexible C data type: ______
synchronous message
remote message
dispatch table
struct
25. The first index in an array is valued at ____
protocol
dispatch table
zero
conform
26. In the Objective-C language the declaration of a group of methods not associated with any particular class.
method
protocol
NSString
assignment
27. ____ provide a concise & elegant method for defining a discrete set of values
id
instance
Enumerations
assignment
28. This symbol denotes a method as being a class method
developer intent
nonatomic
+
receiver
29. Property attribute where the setter stores the assigned value but does not perform any memory management.
inheritance
delegates
assign
%@
30. 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.
namespace
informal protocol
event
message
31. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
superclass
class
+
binary
32. Three main categories of more complicated data structures:_______ - arrays and structs
printf( )
conform
strong
pointers
33. Property attribute that synthesizes only a getter for the property
namespace
AppKit
readonly
nonatomic
34. Square bracket syntax for calling a method
C operators
%
[receiver message];
pointers
35. There are ____ fundamental building blocks in Objective-C
method
pointers
double
9
36. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
fields
structures
long long
Protocols
37. The root class in Objective-C
NSObject
NSString
factory object
fields
38. A struct may contain multiple ____ consisting of different data types
instance
zero
-
fields
39. Objective-C's protocols are really about communicating _____ _______
pointers
developer intent
properties
abstract class
40. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
inheritance hierarchy
Smalltalk
Enumerations
procedures
41. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
Cocoa
static typing
selector
42. ______ data types are always zero or greate
Categories
distributed objects
Unsigned
init
43. _____ data types can be both positive and negative
Signed
nonatomic
protocol
ampersand (&)
44. ARC is susceptible to retain _____
outlet
cycles
adopt
runtime
45. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
Enumerations
readonly
+
46. A set of method definitions that is segregated from the rest of the class definition.
adopt
instance
delegate
category
47. A class is said to do this when it declares that it implements all the methods in the protocol.
doubles
adopt
chars
event
48. 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.
encapsulation
receiver
polymorphism
pointers
49. _____ allow indirect access and modification of a variable's value.
conform
class
namespace
Pointers
50. The process of setting or reading the value at an address pointed to by a pointer
instance variable
dereference (dereferencing)
polymorphism
binary