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. Finding the method implementation to invoke in response to the message
encapsulation
NSString
dynamic binding
cycles
2. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
ARC
deprecated
class object
runtime
3. A method that can operate on class objects rather than instances of the class.
pointer
value
class method
inheritance
4. A ____ ____ is a situation where you free memory and then accidentally continue to use it
nil
cannot
dangling pointer
remote object
5. a++; is an example of using a _____ operator
unitary
asterisk (*)
square brackets
factory object
6. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
AppKit
Cocoa
informal protocol
Categories
7. Property attribute that synthesizes only a getter for the property
inheritance
null
readonly
polymorphism
8. Property attribute that causes the setter to store a strong reference to the assigned value
strong
Binary
cycles
readonly
9. 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.
comma-separated
memory leak
id
message expression
10. ______ operators take a single operand
object
cycles
Unitary
ampersand (&)
11. _____ data types can be both positive and negative
Signed
class object
struct
object
12. An architecture that facilitates communication between objects in different address spaces.
@implementation
cannot
distributed objects
Binary
13. The most flexible C data type: ______
doubles
copy
structures
struct
14. Property attribute that synthesizes accessors that are not thread safe
Protocols
AppKit
nonatomic
delegate
15. Another name for a class that's defined solely so that other classes can inherit from it.
Edit>Refactor>Convert to Objective-C ARC
subclass
superset
abstract superclass
16. The process of setting or reading the value at an address pointed to by a pointer
ARC
dereference (dereferencing)
class
dispatch table
17. 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.
receiver
instance
chars
AppKit
18. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
object
dynamic allocation
message
adopt
19. ARC is susceptible to retain _____
class
cycles
inheritance hierarchy
method
20. C-style strings are stored in an array of _____
dispatch table
protocol
chars
Cocoa
21. 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.
informal protocol
object
remote object
nil
22. 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.
encapsulation
[receiver message];
inheritance hierarchy
factory object
23. 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
synchronous message
reference counting
mutex
dynamic allocation
24. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
namespace
nil
compile time
readonly
25. 3 Common Float data types: float - _____ - CGFloat
double
pointer
unitary
encapsulation
26. Discovering the class of an object at runtime rather than at compile time.
NSString
inheritance
dynamic allocation
dynamic typing
27. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
formal protocol
Enumerations
message
28. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
encapsulation
ampersand (&)
inheritance hierarchy
assignment
29. The _____ function can be used to print a message to the console
unitary
printf( )
class
procedures
30. _____ allow you to add new methods to existing classes
framework
Categories
distributed objects
factory
31. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
C operators
+
weak
32. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
implementation
dynamic typing
floating-point
33. Same as class object. (first way to say it.)
class object
synchronous message
factory
dangling pointer
34. Square bracket syntax for calling a method
Binary
[receiver message];
attributes
Unitary
35. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
NSString
delegates
deprecated
Unitary
36. Same as class object. (second way to say it.)
factory object
comma-separated
readwrite
abstract class
37. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
distributed objects
message
selector
polymorphism
38. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
compile time
init
distributed objects
39. Symbol used to denote a placeholder in a format string
+
polymorphism
%
mutex
40. Property attribute that causes the setter to store a copy of the assigned value
copy
object
class method
id
41. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
dynamic allocation
structures
reference counting
42. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
instance variable
event
Enumerations
properties
43. Objective-C methods are called using ____ _____
strong
mutex
square brackets
memory leak
44. A struct may contain multiple ____ consisting of different data types
superset
fields
AppKit
+
45. Objective-C's protocols are really about communicating _____ _______
factory
nonatomic
developer intent
informal protocol
46. This symbol denotes a method as being an instance method
binary
-
unitary
message
47. In Objective-C floats are more commonly used than ______
pointer
doubles
-
readwrite
48. 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
event
asynchronous message
designated initializer
structures
49. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
value
link time
procedures
zero
50. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
method
abstract class
precedence
static typing