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 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
mutex
inheritance hierarchy
selector
2. A compiler feature that provides automated memory management
precedence
ARC
Product>Profile>Leaks>Profile
compile time
3. 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.
class object
instance
Edit>Refactor>Convert to Objective-C ARC
ARC
4. ____ provide a concise & elegant method for defining a discrete set of values
+
nil
Enumerations
dynamic allocation
5. Property attribute that causes the setter to store a strong reference to the assigned value
runtime
cannot
long long
strong
6. In Objective-C floats are more commonly used than ______
class method
pointers
doubles
informal protocol
7. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
copy
Cocoa
delegate
asterisk (*)
8. To destroy an object set the variable that points to it to _____
class
printf( )
class object
nil
9. A method that can operate on class objects rather than instances of the class.
attributes
class method
class
doubles
10. 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.
outlet
dereference (dereferencing)
Smalltalk
designated
11. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
ampersand (&)
copy
doubles
assignment
12. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
Enumerations
selector
structures
13. Objective-C is a _____ of the C language
remote message
superset
copy
Categories
14. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
Binary
fields
superclass
formal protocol
15. Objective-C objects should use strong or weak ______
assign
attributes
init
factory object
16. Instance variables are optional in iOS if ________ are used
Categories
developer intent
properties
class
17. The most flexible C data type: ______
struct
square brackets
asterisk (*)
Product>Profile>Leaks>Profile
18. Initializer method traditionally begin with the _____ prefix
ARC
encapsulation
init
inheritance
19. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
Enumerations
dispatch table
Protocols
asynchronous message
20. Finding the method implementation to invoke in response to the message
properties
link time
Cocoa
dynamic binding
21. 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.
implementation
long long
nonatomic
runtime
22. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
mutex
instance
weak
inheritance
23. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
event
@implementation
message
dynamic binding
24. _____ 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'.
object
Encapsulation
floating-point
memory leak
25. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
remote object
class method
link time
26. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.
9
link time
instance
struct
27. 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
readwrite
assignment
designated initializer
28. _____ allow you to add new methods to existing classes
readonly
message expression
NSObject
Categories
29. The process of setting or reading the value at an address pointed to by a pointer
chars
outlet
superset
dereference (dereferencing)
30. Data types are divided into two main categories: integer and ______
framework
square brackets
floating-point
Protocols
31. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
link time
cycles
remote message
unitary
32. Any class that's one step below another class in the inheritance hierarchy.
@interface
subclass
id
encapsulation
33. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
Enumerations
deprecated
class
instance method
34. ______ data types are always zero or greate
delegate
NSString
Unsigned
doubles
35. Xcode sequence to convert non-ARC apps to ARC
mutex
Edit>Refactor>Convert to Objective-C ARC
square brackets
Categories
36. An object in another application - one that's a potential receiver for a remote message.
floating-point
properties
remote object
encapsulation
37. Property attribute that causes the setter to store a copy of the assigned value
comma-separated
value
copy
nonatomic
38. An object id with a value of 0.
object
long long
nil
NSString
39. Same as class object. (first way to say it.)
factory
message
@interface
[receiver message];
40. 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
runtime
weak
comma-separated
41. The _____ function can be used to print a message to the console
reference counting
runtime
Cocoa
printf( )
42. a++; is an example of using a _____ operator
unitary
inheritance hierarchy
runtime
method
43. Another name for a class that's defined solely so that other classes can inherit from it.
struct
abstract superclass
anonymous object
inheritance
44. A variable that points to the memory address of another value
pointer
factory object
null
long long
45. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
superclass
Unsigned
compile time
NSObject
46. Objective-C methods are called using ____ _____
object
superclass
square brackets
abstract class
47. Property attribute that synthesizes only a getter for the property
dynamic typing
implementation
link time
readonly
48. An object of unknown class. Interface is published through protocol declaration.
init
anonymous object
factory object
instance variable
49. ______ operators take a single operand
Smalltalk
Unitary
Enumerations
ARC
50. Xcode sequence to examine an app for memory leaks or retain cycles
C operators
Product>Profile>Leaks>Profile
copy
factory object
Sorry!:) No result found.
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