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.
category
event
implementation
cannot
2. Any method that can be used by an instance of a class rather than by the class object.
subclass
instance method
floating-point
struct
3. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
Categories
@implementation
factory
assign
4. 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.
developer intent
AppKit
strong
cycles
5. Initializer method traditionally begin with the _____ prefix
Enumerations
init
receiver
message
6. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
Binary
Cocoa
deprecated
mutex
7. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
AppKit
copy
dispatch table
NSObject
8. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
asynchronous message
C operators
ARC
9. C-style strings always end with a ____ character
%@
dynamic typing
null
reference counting
10. 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.
procedures
implementation
delegate
class object
11. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
developer intent
superset
NSString
%
12. 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
delegate
unitary
procedures
synchronous message
13. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
9
asynchronous message
Signed
14. In Objective-C floats are more commonly used than ______
dispatch table
doubles
superset
nil
15. An object of unknown class. Interface is published through protocol declaration.
attributes
dangling pointer
factory
anonymous object
16. 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.
instance variable
long long
-
link time
17. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
reference counting
comma-separated
distributed objects
C operators
18. 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.
structures
Product>Profile>Leaks>Profile
inheritance hierarchy
formal protocol
19. 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.
procedures
static typing
id
selector
20. Property attribute that synthesizes both a getter and setter for the property
memory leak
unitary
readwrite
doubles
21. A struct may contain multiple ____ consisting of different data types
comma-separated
@implementation
factory object
fields
22. 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).
delegate
message expression
Protocols
copy
23. 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
mutex
strong
implementation
24. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
abstract class
dispatch table
namespace
25. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
event
class method
link time
26. ______ operators take a single operand
Unitary
dynamic typing
developer intent
synchronous message
27. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
inheritance
procedural programming language
procedures
Binary
28. In a home building analogy a ____ is the blueprint and the object is the house
developer intent
class
readwrite
selector
29. An object id with a value of 0.
Edit>Refactor>Convert to Objective-C ARC
abstract superclass
runtime
nil
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.
subclass
weak
instance method
namespace
31. 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.
selector
protocol
%@
abstract superclass
32. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
framework
category
copy
33. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
link time
assignment
runtime
object
34. When creating a class header file you begin with the _____ keyword and close with the @end keyword
Signed
@interface
nil
double
35. Square bracket syntax for calling a method
struct
[receiver message];
protocol
deprecated
36. C-style strings are stored in an array of _____
runtime
chars
strong
reference counting
37. 3 Common Float data types: float - _____ - CGFloat
ARC
double
assignment
fields
38. 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.
Protocols
asynchronous message
instance
Categories
39. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
synchronous message
Product>Profile>Leaks>Profile
binary
Interface Builder
40. A variable that points to the memory address of another value
Smalltalk
procedural programming language
long long
pointer
41. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
superset
mutex
instance
printf( )
42. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
message
Interface Builder
instance
NSString
43. Property attribute that causes the setter to store a copy of the assigned value
copy
dynamic typing
double
event
44. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
copy
class method
synchronous message
precedence
45. A message sent from one application to an object in another application.
C operators
dispatch table
struct
remote message
46. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
readwrite
memory leak
C operators
receiver
47. Three main categories of more complicated data structures:_______ - arrays and structs
init
message expression
pointers
value
48. A set of method definitions that is segregated from the rest of the class definition.
id
object
nil
category
49. A protocol declared as a category usually as a category of the NSObject class.
outlet
dynamic binding
informal protocol
id
50. Any class that's one step below another class in the inheritance hierarchy.
Pointers
object
subclass
@implementation