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. 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.
informal protocol
polymorphism
distributed objects
asynchronous message
2. ______ data types are always zero or greate
Unsigned
class object
Unitary
link time
3. Property attribute that synthesizes only a getter for the property
null
doubles
@implementation
readonly
4. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
abstract class
remote message
procedures
Smalltalk
5. Same as class object. (second way to say it.)
adopt
value
factory object
dangling pointer
6. _____ data types can be both positive and negative
Signed
attributes
mutex
Encapsulation
7. A compiler feature that provides automated memory management
Pointers
ARC
asterisk (*)
distributed objects
8. The first index in an array is valued at ____
category
Interface Builder
message expression
zero
9. A protocol declared as a category usually as a category of the NSObject class.
heap
framework
informal protocol
%@
10. Any class that's one step below another class in the inheritance hierarchy.
nonatomic
comma-separated
NSString
subclass
11. Objective-C methods are called using ____ _____
attributes
developer intent
memory leak
square brackets
12. 3 Common Float data types: float - _____ - CGFloat
double
pointers
superset
remote object
13. Xcode sequence to convert non-ARC apps to ARC
attributes
Edit>Refactor>Convert to Objective-C ARC
Categories
instance
14. ____ provide a concise & elegant method for defining a discrete set of values
superset
instance
Enumerations
class method
15. 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
NSString
dynamic typing
NSObject
implementation
16. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
instance method
Signed
value
message expression
17. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met
namespace
synchronous message
conform
anonymous object
18. a++; is an example of using a _____ operator
selector
abstract class
unitary
object
19. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
class
readwrite
cycles
20. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
cannot
Interface Builder
value
long long
21. Discovering the class of an object at runtime rather than at compile time.
informal protocol
pointers
class
dynamic typing
22. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
9
deprecated
dynamic allocation
C operators
23. To destroy an object set the variable that points to it to _____
instance variable
NSObject
asynchronous message
nil
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'.
Encapsulation
factory object
framework
procedures
25. Same as class object. (first way to say it.)
designated initializer
factory
binary
struct
26. Data types are divided into two main categories: integer and ______
informal protocol
instance variable
dynamic binding
floating-point
27. Objective-C binds methods and arguments at _____ instead of compile time
class
synchronous message
runtime
formal protocol
28. ARC is susceptible to retain _____
readonly
Protocols
value
cycles
29. 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).
Categories
implementation
factory
informal protocol
30. The _____ function can be used to print a message to the console
precedence
printf( )
Edit>Refactor>Convert to Objective-C ARC
%
31. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
Binary
dynamic allocation
doubles
weak
32. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
delegate
event
mutex
33. 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.
class
instance
interface
receiver
34. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
assignment
event
instance
NSObject
35. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
dispatch table
copy
readwrite
object
36. Objective-C objects should use strong or weak ______
square brackets
attributes
@interface
runtime
37. 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
link time
informal protocol
compile time
38. This symbol denotes a method as being a class method
formal protocol
asterisk (*)
interface
+
39. ______ operators take a single operand
Unitary
interface
fields
pointer
40. Objective-C's protocols are really about communicating _____ _______
factory
developer intent
asynchronous message
cycles
41. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
assignment
unitary
class object
42. 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).
Signed
message expression
dynamic typing
dereference (dereferencing)
43. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
assign
Pointers
printf( )
44. 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.
Enumerations
dereference (dereferencing)
delegates
reference counting
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
remote object
synchronous message
designated
Enumerations
46. _____ allow you to add new methods to existing classes
Categories
heap
memory leak
factory
47. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
cannot
class method
cycles
48. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
adopt
class
link time
49. 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.
procedural programming language
C operators
runtime
encapsulation
50. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
informal protocol
delegates
subclass
dynamic typing
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