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
dereference (dereferencing)
cannot
dynamic binding
copy
2. 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.
@interface
abstract class
square brackets
reference counting
3. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
superset
asterisk (*)
message
floating-point
4. 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.
polymorphism
inheritance hierarchy
receiver
printf( )
5. In a format string the place holder for an object is ______
floating-point
message expression
%@
compile time
6. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
dispatch table
printf( )
inheritance
@implementation
7. Property attribute that synthesizes both a getter and setter for the property
readwrite
static typing
adopt
runtime
8. This symbol denotes a method as being a class method
procedural programming language
cycles
implementation
+
9. The first index in an array is valued at ____
double
readonly
procedural programming language
zero
10. A protocol declared as a category usually as a category of the NSObject class.
dynamic typing
informal protocol
weak
deprecated
11. Discovering the class of an object at runtime rather than at compile time.
null
properties
dynamic typing
structures
12. 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.
message expression
procedural programming language
class object
[receiver message];
13. _____ data types can be both positive and negative
Binary
cannot
nil
Signed
14. a++; is an example of using a _____ operator
chars
unitary
NSString
struct
15. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
instance method
double
receiver
@implementation
16. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
Binary
value
struct
17. In Objective-C floats are more commonly used than ______
instance method
instance
doubles
runtime
18. To destroy an object set the variable that points to it to _____
copy
nil
ARC
Pointers
19. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
instance
assignment
dereference (dereferencing)
comma-separated
20. 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.
superclass
namespace
compile time
+
21. An architecture that facilitates communication between objects in different address spaces.
subclass
nonatomic
distributed objects
fields
22. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
adopt
dynamic typing
@implementation
23. 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
runtime
chars
%
24. A method that can operate on class objects rather than instances of the class.
chars
-
dispatch table
class method
25. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
Unitary
assign
dispatch table
dangling pointer
26. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
remote object
object
ampersand (&)
27. Same as class object. (first way to say it.)
protocol
dispatch table
factory
class object
28. Objective-C objects should use strong or weak ______
weak
dereference (dereferencing)
value
attributes
29. Property attribute that causes the setter to store a copy of the assigned value
copy
delegate
NSString
@implementation
30. A class is said to do this when it declares that it implements all the methods in the protocol.
Interface Builder
adopt
receiver
binary
31. ______ operators take a single operand
@interface
square brackets
comma-separated
Unitary
32. Any class that's one step below another class in the inheritance hierarchy.
properties
subclass
NSString
mutex
33. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
AppKit
Enumerations
remote object
34. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
runtime
remote message
factory object
35. Property attribute that synthesizes accessors that are not thread safe
framework
category
nonatomic
pointer
36. _____ 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'.
Smalltalk
Encapsulation
dynamic typing
assignment
37. Xcode sequence to examine an app for memory leaks or retain cycles
C operators
Encapsulation
Product>Profile>Leaks>Profile
designated initializer
38. ______ data types are always zero or greate
Unsigned
fields
Binary
NSObject
39. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
dereference (dereferencing)
fields
binary
precedence
40. The most flexible C data type: ______
struct
event
structures
encapsulation
41. The _____ function can be used to print a message to the console
formal protocol
printf( )
superset
superclass
42. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
designated initializer
Protocols
double
NSString
43. 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.
NSObject
dynamic allocation
fields
designated
44. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
instance
framework
heap
value
45. An object that acts on behalf of another object.
pointer
weak
delegate
readonly
46. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
nil
framework
inheritance hierarchy
pointer
47. All objects are created on the _____
comma-separated
long long
heap
ARC
48. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met
class object
instance
binary
conform
49. Initializer method traditionally begin with the _____ prefix
init
binary
implementation
instance
50. This symbol denotes a method as being an instance method
chars
doubles
-
copy