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. 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.
null
instance variable
Enumerations
remote message
2. C-style strings are stored in an array of _____
Pointers
asynchronous message
chars
class method
3. A message sent from one application to an object in another application.
AppKit
remote message
pointer
class
4. In the Objective-C language the declaration of a group of methods not associated with any particular class.
Encapsulation
protocol
adopt
compile time
5. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.
synchronous message
informal protocol
procedures
abstract class
6. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
double
procedures
assignment
designated initializer
7. 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
designated
readonly
NSString
ARC
8. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
asterisk (*)
instance
@implementation
remote object
9. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
Binary
designated initializer
static typing
Encapsulation
10. 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
dispatch table
dynamic allocation
adopt
11. The _____ function can be used to print a message to the console
printf( )
receiver
floating-point
Interface Builder
12. 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).
message expression
floating-point
abstract superclass
delegate
13. 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
class object
instance method
structures
superclass
14. Objective-C binds methods and arguments at _____ instead of compile time
runtime
abstract superclass
delegate
receiver
15. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
Unsigned
memory leak
Interface Builder
16. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
pointers
cannot
message expression
nonatomic
17. _____ 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'.
event
Binary
Encapsulation
nonatomic
18. Xcode sequence to convert non-ARC apps to ARC
delegate
weak
class
Edit>Refactor>Convert to Objective-C ARC
19. Square bracket syntax for calling a method
instance
null
[receiver message];
pointers
20. Any method that can be used by an instance of a class rather than by the class object.
instance method
AppKit
link time
dispatch table
21. _____ operators take 2 operands
message
protocol
instance
Binary
22. A protocol declared as a category usually as a category of the NSObject class.
factory
selector
Protocols
informal protocol
23. a+b; is an example of using a _____ operator
structures
object
binary
delegate
24. 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.
interface
class method
%
inheritance hierarchy
25. A class is said to do this when it declares that it implements all the methods in the protocol.
long long
class object
square brackets
adopt
26. The first index in an array is valued at ____
structures
id
dynamic typing
zero
27. In Objective-C floats are more commonly used than ______
dispatch table
comma-separated
doubles
dynamic typing
28. The most flexible C data type: ______
inheritance
properties
struct
designated
29. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
Smalltalk
floating-point
framework
event
30. 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.
remote message
asynchronous message
delegate
runtime
31. There are ____ fundamental building blocks in Objective-C
zero
abstract superclass
9
assignment
32. Symbol used to denote a placeholder in a format string
nil
precedence
Unitary
%
33. An object in another application - one that's a potential receiver for a remote message.
remote object
delegates
dynamic typing
link time
34. Initializer method traditionally begin with the _____ prefix
init
method
@implementation
class
35. An architecture that facilitates communication between objects in different address spaces.
readonly
distributed objects
message expression
namespace
36. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
developer intent
superclass
readonly
37. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.
designated initializer
weak
id
reference counting
38. Objective-C's protocols are really about communicating _____ _______
Protocols
anonymous object
developer intent
Encapsulation
39. Property attribute that synthesizes only a getter for the property
readonly
encapsulation
message
outlet
40. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
-
id
deprecated
41. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
@implementation
procedural programming language
outlet
42. C-style strings always end with a ____ character
null
@interface
inheritance
procedures
43. Instance variables are optional in iOS if ________ are used
method
properties
link time
Binary
44. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
nil
dereference (dereferencing)
Protocols
NSString
45. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
category
null
remote message
C operators
46. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
runtime
binary
inheritance
synchronous message
47. 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.
receiver
assign
selector
factory object
48. In object-oriented programming a procedure that can be executed by an object.
memory leak
synchronous message
Unitary
method
49. Any class that's one step below another class in the inheritance hierarchy.
subclass
superclass
ampersand (&)
[receiver message];
50. 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.
NSObject
double
id
C operators