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 direct or indirect report of external activity especially user activity on the keyboard and mouse.
ARC
category
event
asterisk (*)
2. A set of method definitions that is segregated from the rest of the class definition.
doubles
nonatomic
inheritance hierarchy
category
3. When creating a class header file you begin with the _____ keyword and close with the @end keyword
square brackets
@interface
receiver
Product>Profile>Leaks>Profile
4. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
inheritance
weak
class method
5. Same as class object. (second way to say it.)
factory object
class object
mutex
outlet
6. In object-oriented programming a procedure that can be executed by an object.
remote message
weak
category
method
7. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
chars
Product>Profile>Leaks>Profile
Pointers
weak
8. ______ data types are always zero or greate
runtime
link time
Unsigned
instance variable
9. An object id with a value of 0.
nil
event
runtime
remote message
10. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
fields
structures
subclass
11. 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.
assignment
AppKit
readonly
mutex
12. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
outlet
namespace
synchronous message
long long
13. A ____ _____ is where you forget to free up memory
object
memory leak
fields
message
14. a++; is an example of using a _____ operator
adopt
ampersand (&)
copy
unitary
15. Instance variables are optional in iOS if ________ are used
message
precedence
memory leak
properties
16. Discovering the class of an object at runtime rather than at compile time.
[receiver message];
double
dynamic typing
@implementation
17. 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
structures
designated
instance variable
Smalltalk
18. _____ allow you to add new methods to existing classes
Unsigned
instance
Categories
adopt
19. ______ operators take a single operand
Interface Builder
framework
Unitary
%
20. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
factory
static typing
Product>Profile>Leaks>Profile
instance variable
21. Xcode sequence to examine an app for memory leaks or retain cycles
Signed
Product>Profile>Leaks>Profile
protocol
dispatch table
22. An object of unknown class. Interface is published through protocol declaration.
subclass
anonymous object
strong
doubles
23. A protocol declared as a category usually as a category of the NSObject class.
instance variable
informal protocol
subclass
%
24. A variable that points to the memory address of another value
interface
pointer
class
designated
25. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
link time
memory leak
weak
deprecated
26. Three main categories of more complicated data structures:_______ - arrays and structs
structures
inheritance hierarchy
pointers
Interface Builder
27. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
remote message
mutex
formal protocol
instance
28. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
C operators
zero
factory object
instance
29. There are ____ fundamental building blocks in Objective-C
9
nonatomic
adopt
asynchronous message
30. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
synchronous message
+
instance method
31. In object-oriented programming the object that is sent a message.
namespace
comma-separated
receiver
Product>Profile>Leaks>Profile
32. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
square brackets
chars
memory leak
33. An object in another application - one that's a potential receiver for a remote message.
ampersand (&)
remote object
dispatch table
synchronous message
34. Property attribute that synthesizes accessors that are not thread safe
[receiver message];
Binary
nonatomic
long long
35. In Objective-C floats are more commonly used than ______
value
struct
doubles
instance
36. 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.
runtime
static typing
nil
informal protocol
37. Placing a ____ before a normal variable name gives it's address
readwrite
ampersand (&)
NSObject
%@
38. An object that acts on behalf of another object.
doubles
synchronous message
Edit>Refactor>Convert to Objective-C ARC
delegate
39. Property attribute that synthesizes both a getter and setter for the property
dangling pointer
instance variable
readwrite
comma-separated
40. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
@implementation
instance
inheritance
deprecated
41. This symbol denotes a method as being an instance method
link time
null
-
method
42. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.
formal protocol
long long
factory object
9
43. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
Cocoa
remote message
object
44. 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.
runtime
delegates
class object
strong
45. a+b; is an example of using a _____ operator
class object
anonymous object
instance variable
binary
46. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
designated
delegate
asterisk (*)
heap
47. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
Interface Builder
C operators
conform
memory leak
48. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
%@
comma-separated
copy
interface
49. _____ 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'.
class
instance method
binary
Encapsulation
50. _____ allow indirect access and modification of a variable's value.
ARC
factory object
designated
Pointers