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. 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.
unitary
formal protocol
encapsulation
Interface Builder
2. The most flexible C data type: ______
instance variable
struct
@interface
Encapsulation
3. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
dispatch table
attributes
C operators
informal protocol
4. In a home building analogy a ____ is the blueprint and the object is the house
NSObject
dynamic binding
class
method
5. A variable that points to the memory address of another value
class object
fields
pointer
superclass
6. Property attribute that synthesizes both a getter and setter for the property
%
readwrite
nil
dynamic typing
7. ARC is susceptible to retain _____
cycles
object
outlet
Smalltalk
8. Placing a ____ before a normal variable name gives it's address
copy
%@
ampersand (&)
NSObject
9. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
asynchronous message
conform
ampersand (&)
10. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
Unsigned
remote object
class
asterisk (*)
11. The first index in an array is valued at ____
mutex
zero
value
fields
12. _____ allow you to add new methods to existing classes
chars
mutex
Categories
informal protocol
13. A set of method definitions that is segregated from the rest of the class definition.
+
ampersand (&)
category
instance variable
14. The root class in Objective-C
selector
adopt
NSObject
encapsulation
15. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
C operators
polymorphism
synchronous message
dynamic binding
16. 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.
cycles
NSObject
id
developer intent
17. Square bracket syntax for calling a method
weak
+
Unitary
[receiver message];
18. Objective-C's protocols are really about communicating _____ _______
factory object
instance variable
developer intent
null
19. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
pointer
message
Unsigned
20. A method that can operate on class objects rather than instances of the class.
message
%
procedural programming language
class method
21. In object-oriented programming a procedure that can be executed by an object.
instance variable
Product>Profile>Leaks>Profile
Categories
method
22. Finding the method implementation to invoke in response to the message
dynamic binding
superset
subclass
Unsigned
23. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
double
adopt
instance
24. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
readwrite
heap
dynamic allocation
[receiver message];
25. In object-oriented programming the object that is sent a message.
receiver
@interface
outlet
inheritance hierarchy
26. ______ data types are always zero or greate
+
receiver
Enumerations
Unsigned
27. C-style strings are stored in an array of _____
chars
instance method
Product>Profile>Leaks>Profile
deprecated
28. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
@implementation
chars
instance variable
29. 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.
inheritance hierarchy
asterisk (*)
subclass
dynamic binding
30. Xcode sequence to convert non-ARC apps to ARC
strong
Edit>Refactor>Convert to Objective-C ARC
implementation
method
31. There are ____ fundamental building blocks in Objective-C
nonatomic
Cocoa
cannot
9
32. Discovering the class of an object at runtime rather than at compile time.
synchronous message
dynamic typing
ARC
dangling pointer
33. In Objective-C floats are more commonly used than ______
formal protocol
deprecated
doubles
precedence
34. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
reference counting
pointers
static typing
35. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
instance
comma-separated
AppKit
method
36. C-style strings always end with a ____ character
superclass
conform
Binary
null
37. 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.
delegates
selector
cycles
message expression
38. 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
message
designated initializer
nonatomic
39. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
anonymous object
nil
framework
implementation
40. a++; is an example of using a _____ operator
delegate
class
unitary
subclass
41. Initializer method traditionally begin with the _____ prefix
init
procedures
deprecated
@interface
42. 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
NSString
pointers
namespace
method
43. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
Categories
NSObject
abstract class
assignment
44. Same as class object. (first way to say it.)
ARC
factory
class
C operators
45. Another name for a class that's defined solely so that other classes can inherit from it.
outlet
abstract superclass
C operators
Protocols
46. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
reference counting
Encapsulation
event
null
47. Any method that can be used by an instance of a class rather than by the class object.
null
instance method
comma-separated
assign
48. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
superclass
static typing
abstract superclass
NSObject
49. The process of setting or reading the value at an address pointed to by a pointer
NSString
message expression
Signed
dereference (dereferencing)
50. 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
null
copy
dispatch table