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 object-oriented programming the object that is sent a message.
null
receiver
object
Edit>Refactor>Convert to Objective-C ARC
2. 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.
NSString
event
asynchronous message
inheritance hierarchy
3. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
dispatch table
readonly
remote object
weak
4. C-style strings are stored in an array of _____
Cocoa
asterisk (*)
chars
square brackets
5. a++; is an example of using a _____ operator
unitary
anonymous object
runtime
heap
6. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
value
9
class method
7. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
Categories
Unitary
@implementation
deprecated
8. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
%
procedures
object
asterisk (*)
9. When creating a class header file you begin with the _____ keyword and close with the @end keyword
static typing
@interface
long long
chars
10. Square bracket syntax for calling a method
NSObject
class
Interface Builder
[receiver message];
11. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
superclass
Smalltalk
dangling pointer
runtime
12. ARC is susceptible to retain _____
cycles
NSObject
Signed
Cocoa
13. 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
outlet
ampersand (&)
assignment
synchronous message
14. A message sent from one application to an object in another application.
AppKit
adopt
remote message
implementation
15. 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.
Binary
formal protocol
struct
long long
16. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
Pointers
receiver
mutex
class
17. A method that can operate on class objects rather than instances of the class.
readwrite
Signed
subclass
class method
18. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
developer intent
nil
Smalltalk
19. The most flexible C data type: ______
dynamic typing
struct
dynamic binding
floating-point
20. Another name for a class that's defined solely so that other classes can inherit from it.
event
abstract superclass
remote message
9
21. 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.
namespace
readwrite
selector
assign
22. In Objective-C floats are more commonly used than ______
doubles
category
interface
fields
23. A struct may contain multiple ____ consisting of different data types
assign
class
fields
nil
24. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
Protocols
unitary
polymorphism
receiver
25. _____ 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'.
Encapsulation
fields
9
anonymous object
26. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
conform
designated
runtime
superclass
27. ______ data types are always zero or greate
protocol
Unsigned
outlet
dispatch table
28. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
%
superclass
inheritance
29. ____ provide a concise & elegant method for defining a discrete set of values
procedural programming language
fields
Enumerations
zero
30. In a home building analogy a ____ is the blueprint and the object is the house
instance
class
delegate
@implementation
31. Same as class object. (first way to say it.)
object
factory
asterisk (*)
link time
32. To destroy an object set the variable that points to it to _____
unitary
nil
designated
precedence
33. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
copy
abstract class
Binary
instance
34. 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
outlet
designated initializer
pointers
struct
35. An object in another application - one that's a potential receiver for a remote message.
remote object
nonatomic
Signed
dispatch table
36. Objective-C's protocols are really about communicating _____ _______
instance method
Edit>Refactor>Convert to Objective-C ARC
dynamic allocation
developer intent
37. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
struct
distributed objects
@implementation
assignment
38. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
double
Edit>Refactor>Convert to Objective-C ARC
superset
39. 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.
formal protocol
message expression
dynamic allocation
informal protocol
40. Any method that can be used by an instance of a class rather than by the class object.
properties
class object
@interface
instance method
41. Three main categories of more complicated data structures:_______ - arrays and structs
superclass
pointers
Encapsulation
-
42. 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.
+
factory
class object
dynamic typing
43. 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.
null
Signed
id
pointer
44. 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).
binary
polymorphism
message expression
value
45. Property attribute that causes the setter to store a strong reference to the assigned value
procedural programming language
dynamic binding
strong
C operators
46. 3 Common Float data types: float - _____ - CGFloat
Categories
double
assignment
precedence
47. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
superset
distributed objects
delegates
Encapsulation
48. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects
adopt
remote object
structures
Signed
49. Xcode sequence to convert non-ARC apps to ARC
Pointers
@implementation
Edit>Refactor>Convert to Objective-C ARC
object
50. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
+
polymorphism
procedures
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