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. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
framework
subclass
assign
comma-separated
2. 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).
id
implementation
framework
message expression
3. 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
asynchronous message
conform
protocol
4. A compiler feature that provides automated memory management
object
class method
ARC
factory object
5. 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.
delegate
heap
C operators
id
6. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.
compile time
encapsulation
namespace
category
7. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
instance variable
static typing
structures
Binary
8. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
inheritance
object
runtime
binary
9. 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
long long
pointer
structures
instance variable
10. 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.
dynamic typing
attributes
abstract class
dispatch table
11. 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.
static typing
procedural programming language
runtime
Binary
12. A protocol declared as a category usually as a category of the NSObject class.
Unitary
dynamic typing
informal protocol
Edit>Refactor>Convert to Objective-C ARC
13. Finding the method implementation to invoke in response to the message
category
memory leak
receiver
dynamic binding
14. Objective-C binds methods and arguments at _____ instead of compile time
printf( )
runtime
[receiver message];
floating-point
15. Same as class object. (second way to say it.)
procedures
binary
copy
factory object
16. a+b; is an example of using a _____ operator
reference counting
Cocoa
inheritance
binary
17. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
[receiver message];
assignment
square brackets
link time
18. A class is said to do this when it declares that it implements all the methods in the protocol.
dynamic binding
adopt
Binary
null
19. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
inheritance hierarchy
memory leak
double
polymorphism
20. An object that acts on behalf of another object.
delegate
dynamic allocation
Interface Builder
assign
21. Xcode sequence to examine an app for memory leaks or retain cycles
Categories
Product>Profile>Leaks>Profile
printf( )
NSString
22. 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
conform
factory
link time
ampersand (&)
23. ______ data types are always zero or greate
@interface
%@
strong
Unsigned
24. 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
dynamic typing
synchronous message
mutex
ARC
25. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
value
superclass
C operators
26. To destroy an object set the variable that points to it to _____
mutex
factory object
nil
long long
27. An object of unknown class. Interface is published through protocol declaration.
deprecated
remote message
instance
anonymous object
28. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
cycles
implementation
value
procedural programming language
29. Property attribute where the setter stores the assigned value but does not perform any memory management.
dangling pointer
assignment
mutex
assign
30. 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
ARC
dynamic binding
designated initializer
remote message
31. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
category
assignment
printf( )
event
32. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
%
receiver
Smalltalk
weak
33. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
unitary
Cocoa
delegate
assign
34. 3 Common Float data types: float - _____ - CGFloat
double
superclass
floating-point
compile time
35. An object in another application - one that's a potential receiver for a remote message.
remote object
memory leak
9
value
36. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
anonymous object
unitary
designated
designated initializer
37. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
printf( )
value
object
comma-separated
38. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
deprecated
readwrite
dynamic binding
instance
39. Objective-C objects should use strong or weak ______
pointers
long long
properties
attributes
40. An object id with a value of 0.
implementation
dynamic typing
nil
null
41. 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
remote object
interface
dynamic allocation
NSString
42. Property attribute that synthesizes only a getter for the property
readonly
conform
Cocoa
Enumerations
43. Any class that's one step below another class in the inheritance hierarchy.
inheritance hierarchy
zero
ampersand (&)
subclass
44. A method that can operate on class objects rather than instances of the class.
informal protocol
class
zero
class method
45. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
struct
synchronous message
procedures
46. In a home building analogy a ____ is the blueprint and the object is the house
category
class
attributes
class
47. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
Enumerations
@implementation
superset
method
48. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
ARC
inheritance
long long
readwrite
49. 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.
anonymous object
-
interface
reference counting
50. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
instance variable
message
runtime
delegates
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests