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 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
designated initializer
inheritance hierarchy
superclass
comma-separated
2. The process of setting or reading the value at an address pointed to by a pointer
distributed objects
mutex
dereference (dereferencing)
unitary
3. An object of unknown class. Interface is published through protocol declaration.
dynamic allocation
message
class object
anonymous object
4. A variable that points to the memory address of another value
pointer
Product>Profile>Leaks>Profile
class
Signed
5. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
strong
doubles
Interface Builder
6. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
compile time
inheritance
event
nil
7. An object that acts on behalf of another object.
nil
delegate
selector
unitary
8. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
factory object
cycles
designated
%@
9. In object-oriented programming the object that is sent a message.
receiver
asterisk (*)
dynamic binding
runtime
10. Objective-C binds methods and arguments at _____ instead of compile time
%@
assignment
asterisk (*)
runtime
11. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
event
assignment
inheritance
12. An object in another application - one that's a potential receiver for a remote message.
designated initializer
remote object
protocol
Interface Builder
13. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
nonatomic
attributes
memory leak
framework
14. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
class
comma-separated
properties
superset
15. A compiler feature that provides automated memory management
ARC
fields
+
NSObject
16. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
superset
dynamic binding
cannot
framework
17. 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.
superset
inheritance hierarchy
memory leak
formal protocol
18. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
formal protocol
Cocoa
AppKit
[receiver message];
19. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
weak
assignment
null
20. 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.
encapsulation
unitary
designated initializer
dangling pointer
21. C-style strings always end with a ____ character
null
cannot
+
runtime
22. Any method that can be used by an instance of a class rather than by the class object.
instance method
zero
dynamic binding
interface
23. A protocol declared as a category usually as a category of the NSObject class.
object
event
informal protocol
double
24. 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.
Smalltalk
class object
readwrite
abstract superclass
25. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
subclass
readonly
NSString
26. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
adopt
abstract class
polymorphism
instance
27. A struct may contain multiple ____ consisting of different data types
conform
adopt
fields
superclass
28. A ____ _____ is where you forget to free up memory
strong
fields
memory leak
Encapsulation
29. All objects are created on the _____
factory
long long
asterisk (*)
heap
30. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
runtime
AppKit
asynchronous message
unitary
31. This symbol denotes a method as being an instance method
-
runtime
runtime
cannot
32. Property attribute that causes the setter to store a strong reference to the assigned value
instance variable
strong
weak
developer intent
33. 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.
null
link time
conform
mutex
34. Initializer method traditionally begin with the _____ prefix
init
precedence
[receiver message];
unitary
35. An architecture that facilitates communication between objects in different address spaces.
distributed objects
Product>Profile>Leaks>Profile
procedures
interface
36. Square bracket syntax for calling a method
event
printf( )
[receiver message];
long long
37. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
formal protocol
id
superclass
compile time
38. Objective-C methods are called using ____ _____
weak
square brackets
heap
message expression
39. ____ provide a concise & elegant method for defining a discrete set of values
assignment
link time
Enumerations
precedence
40. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
square brackets
value
selector
41. 3 Common Float data types: float - _____ - CGFloat
instance variable
assign
double
[receiver message];
42. _____ operators take 2 operands
asynchronous message
Interface Builder
dereference (dereferencing)
Binary
43. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
9
delegates
heap
44. 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
distributed objects
NSString
readonly
value
45. 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
compile time
synchronous message
mutex
doubles
46. The first index in an array is valued at ____
message
mutex
init
zero
47. 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)
informal protocol
nil
48. Property attribute where the setter stores the assigned value but does not perform any memory management.
asterisk (*)
fields
assign
dangling pointer
49. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
dispatch table
encapsulation
procedures
50. An object id with a value of 0.
nil
method
receiver
dynamic binding
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