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. In the Objective-C language the declaration of a group of methods not associated with any particular class.
class
protocol
instance
Protocols
2. An object that acts on behalf of another object.
assignment
delegate
structures
printf( )
3. A protocol declared as a category usually as a category of the NSObject class.
polymorphism
informal protocol
Unitary
dangling pointer
4. Data types are divided into two main categories: integer and ______
assignment
floating-point
pointers
Protocols
5. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
method
@implementation
Edit>Refactor>Convert to Objective-C ARC
attributes
6. _____ allow indirect access and modification of a variable's value.
double
Pointers
Cocoa
dynamic binding
7. A message sent from one application to an object in another application.
instance variable
memory leak
remote message
procedures
8. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
Product>Profile>Leaks>Profile
instance method
developer intent
9. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
mutex
class
compile time
pointer
10. In a format string the place holder for an object is ______
%@
printf( )
procedural programming language
protocol
11. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
readwrite
weak
class
selector
12. 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.
inheritance hierarchy
struct
instance
class object
13. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
asynchronous message
Cocoa
subclass
conform
14. Objective-C objects should use strong or weak ______
pointers
attributes
NSObject
pointer
15. This symbol denotes a method as being an instance method
-
unitary
mutex
NSObject
16. When creating a class header file you begin with the _____ keyword and close with the @end keyword
Encapsulation
Cocoa
@interface
[receiver message];
17. In object-oriented programming the object that is sent a message.
receiver
structures
encapsulation
Binary
18. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
factory object
anonymous object
instance
reference counting
19. a+b; is an example of using a _____ operator
synchronous message
binary
outlet
precedence
20. 3 Common Float data types: float - _____ - CGFloat
assignment
double
readonly
-
21. 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
structures
selector
designated initializer
deprecated
22. All objects are created on the _____
instance
properties
heap
cycles
23. 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.
weak
runtime
cannot
AppKit
24. Symbol used to denote a placeholder in a format string
%
precedence
init
namespace
25. 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.
instance variable
inheritance
floating-point
struct
26. 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.
static typing
superset
Interface Builder
NSObject
27. Property attribute that synthesizes both a getter and setter for the property
readonly
copy
pointers
readwrite
28. Any class that's one step below another class in the inheritance hierarchy.
floating-point
subclass
designated initializer
properties
29. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
informal protocol
delegate
protocol
designated
30. 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.
Categories
event
chars
outlet
31. This symbol denotes a method as being a class method
Smalltalk
+
class
runtime
32. Xcode sequence to convert non-ARC apps to ARC
outlet
designated initializer
heap
Edit>Refactor>Convert to Objective-C ARC
33. A class is said to do this when it declares that it implements all the methods in the protocol.
superclass
adopt
%
selector
34. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
struct
outlet
-
35. An object in another application - one that's a potential receiver for a remote message.
encapsulation
runtime
remote object
nonatomic
36. An object id with a value of 0.
readwrite
factory object
dangling pointer
nil
37. _____ allow you to add new methods to existing classes
Categories
class object
method
abstract superclass
38. Same as class object. (first way to say it.)
+
factory
remote object
Unsigned
39. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
+
cannot
message expression
nil
40. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
unitary
procedures
comma-separated
properties
41. Same as class object. (second way to say it.)
factory object
event
superclass
link time
42. A ____ _____ is where you forget to free up memory
memory leak
runtime
-
synchronous message
43. 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.
superclass
[receiver message];
link time
synchronous message
44. a++; is an example of using a _____ operator
attributes
unitary
weak
precedence
45. An architecture that facilitates communication between objects in different address spaces.
unitary
subclass
namespace
distributed objects
46. 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.
instance
instance variable
delegates
NSObject
47. C-style strings are stored in an array of _____
chars
dereference (dereferencing)
Cocoa
binary
48. C-style strings always end with a ____ character
null
unitary
fields
encapsulation
49. Three main categories of more complicated data structures:_______ - arrays and structs
printf( )
polymorphism
weak
pointers
50. 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.
asynchronous message
instance method
polymorphism
message
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