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. This symbol denotes a method as being an instance method
subclass
runtime
encapsulation
-
2. ____ provide a concise & elegant method for defining a discrete set of values
class method
deprecated
Enumerations
delegates
3. _____ data types can be both positive and negative
Signed
Cocoa
designated
struct
4. Placing a ____ before a normal variable name gives it's address
dereference (dereferencing)
ampersand (&)
adopt
instance variable
5. Three main categories of more complicated data structures:_______ - arrays and structs
dynamic allocation
init
pointers
class
6. Any method that can be used by an instance of a class rather than by the class object.
instance method
precedence
chars
class object
7. A variable that points to the memory address of another value
readwrite
polymorphism
pointer
category
8. A class is said to do this when it declares that it implements all the methods in the protocol.
selector
cycles
adopt
factory
9. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
properties
interface
long long
dereference (dereferencing)
10. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
struct
designated
compile time
selector
11. There are ____ fundamental building blocks in Objective-C
superset
designated
class
9
12. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
Binary
compile time
Signed
13. Objective-C's protocols are really about communicating _____ _______
chars
memory leak
compile time
developer intent
14. Property attribute that synthesizes both a getter and setter for the property
dispatch table
floating-point
runtime
readwrite
15. Xcode sequence to examine an app for memory leaks or retain cycles
encapsulation
@implementation
interface
Product>Profile>Leaks>Profile
16. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
subclass
properties
comma-separated
designated
17. Property attribute that synthesizes only a getter for the property
factory object
object
readonly
class
18. ______ data types are always zero or greate
procedures
Unsigned
receiver
heap
19. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
id
deprecated
Encapsulation
printf( )
20. 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.
ampersand (&)
message expression
link time
Edit>Refactor>Convert to Objective-C ARC
21. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
strong
Interface Builder
weak
+
22. Xcode sequence to convert non-ARC apps to ARC
method
category
Edit>Refactor>Convert to Objective-C ARC
9
23. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
Protocols
Cocoa
polymorphism
deprecated
24. A message sent from one application to an object in another application.
namespace
ampersand (&)
synchronous message
remote message
25. Symbol used to denote a placeholder in a format string
floating-point
Signed
%
instance
26. To destroy an object set the variable that points to it to _____
dynamic allocation
nil
Protocols
Unitary
27. Same as class object. (second way to say it.)
polymorphism
factory object
square brackets
dangling pointer
28. Instance variables are optional in iOS if ________ are used
C operators
properties
struct
superset
29. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
dispatch table
message expression
zero
30. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
encapsulation
compile time
Cocoa
dynamic typing
31. _____ allow indirect access and modification of a variable's value.
nonatomic
dynamic allocation
Pointers
%@
32. 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.
reference counting
Encapsulation
9
cannot
33. 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.
abstract superclass
instance variable
distributed objects
class
34. 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
chars
zero
Binary
NSString
35. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
event
link time
null
@implementation
36. Any class that's one step below another class in the inheritance hierarchy.
synchronous message
inheritance hierarchy
subclass
readonly
37. A method that can operate on class objects rather than instances of the class.
%
class method
class
Binary
38. A ____ ____ is a situation where you free memory and then accidentally continue to use it
heap
dangling pointer
Binary
AppKit
39. 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
nonatomic
[receiver message];
class object
40. 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).
message
assignment
implementation
framework
41. An object in another application - one that's a potential receiver for a remote message.
Categories
Edit>Refactor>Convert to Objective-C ARC
binary
remote object
42. Objective-C is a _____ of the C language
zero
Categories
superset
compile time
43. 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
abstract class
readwrite
dangling pointer
44. The root class in Objective-C
remote message
synchronous message
namespace
NSObject
45. This symbol denotes a method as being a class method
dangling pointer
class
strong
+
46. A protocol declared as a category usually as a category of the NSObject class.
dangling pointer
developer intent
Protocols
informal protocol
47. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
superset
@interface
selector
assignment
48. 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.
inheritance hierarchy
encapsulation
outlet
Binary
49. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
outlet
superclass
anonymous object
compile time
50. Objective-C binds methods and arguments at _____ instead of compile time
runtime
NSObject
[receiver message];
Binary
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