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 time when source code is compiled; constrained by the amount and kind of information encoded in source files.
framework
compile time
synchronous message
class object
2. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
designated initializer
long long
[receiver message];
assignment
3. 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.
dereference (dereferencing)
NSObject
selector
dynamic allocation
4. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
Signed
factory object
receiver
5. Objective-C objects should use strong or weak ______
delegates
link time
developer intent
attributes
6. Property attribute where the setter stores the assigned value but does not perform any memory management.
formal protocol
abstract superclass
dangling pointer
assign
7. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
receiver
message expression
polymorphism
subclass
8. Objective-C's protocols are really about communicating _____ _______
dangling pointer
superclass
Edit>Refactor>Convert to Objective-C ARC
developer intent
9. In a home building analogy a ____ is the blueprint and the object is the house
%@
null
class
dereference (dereferencing)
10. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
framework
Edit>Refactor>Convert to Objective-C ARC
Encapsulation
Protocols
11. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
adopt
object
copy
asterisk (*)
12. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
asterisk (*)
reference counting
Encapsulation
message
13. 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).
NSString
superset
%@
message expression
14. 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.
object
ampersand (&)
selector
message expression
15. A set of method definitions that is segregated from the rest of the class definition.
category
anonymous object
attributes
strong
16. Initializer method traditionally begin with the _____ prefix
weak
init
class object
value
17. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
nil
pointer
Smalltalk
null
18. An object id with a value of 0.
nil
+
copy
NSString
19. 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
cycles
Edit>Refactor>Convert to Objective-C ARC
asterisk (*)
20. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
pointers
instance variable
implementation
protocol
21. a++; is an example of using a _____ operator
double
unitary
@implementation
anonymous object
22. Same as class object. (first way to say it.)
adopt
factory
deprecated
chars
23. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
factory
dynamic allocation
id
24. The most flexible C data type: ______
struct
procedures
category
link time
25. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
Product>Profile>Leaks>Profile
+
weak
Interface Builder
26. In the Objective-C language the declaration of a group of methods not associated with any particular class.
selector
long long
protocol
adopt
27. 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.
fields
link time
Enumerations
formal protocol
28. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
floating-point
comma-separated
superset
implementation
29. 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
instance variable
Enumerations
superset
synchronous message
30. Any class that's one step below another class in the inheritance hierarchy.
inheritance
nil
subclass
strong
31. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
[receiver message];
floating-point
Signed
assignment
32. _____ 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'.
ARC
deprecated
Encapsulation
NSString
33. Xcode sequence to convert non-ARC apps to ARC
Unitary
dereference (dereferencing)
@interface
Edit>Refactor>Convert to Objective-C ARC
34. The root class in Objective-C
fields
NSObject
superset
class method
35. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
protocol
delegates
floating-point
class
36. 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.
id
instance variable
dynamic binding
factory object
37. In object-oriented programming a procedure that can be executed by an object.
method
dispatch table
assign
object
38. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
doubles
outlet
Smalltalk
message expression
39. Objective-C methods are called using ____ _____
Signed
Categories
square brackets
Product>Profile>Leaks>Profile
40. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
factory
Signed
memory leak
delegates
41. 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.
NSObject
event
Interface Builder
receiver
42. Finding the method implementation to invoke in response to the message
cannot
protocol
double
dynamic binding
43. This symbol denotes a method as being a class method
delegate
nil
-
+
44. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
message
designated
instance method
instance
45. 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.
remote message
abstract superclass
reference counting
class
46. Discovering the class of an object at runtime rather than at compile time.
pointers
procedures
readonly
dynamic typing
47. _____ operators take 2 operands
dangling pointer
Unitary
Binary
asterisk (*)
48. A compiler feature that provides automated memory management
floating-point
ARC
factory
precedence
49. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
adopt
Categories
-
50. Another name for a class that's defined solely so that other classes can inherit from it.
readonly
instance
abstract superclass
doubles
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