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. Property attribute that causes the setter to store a copy of the assigned value
doubles
[receiver message];
copy
abstract superclass
2. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
remote object
struct
procedures
3. 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
Signed
mutex
weak
designated initializer
4. 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
AppKit
remote object
synchronous message
Edit>Refactor>Convert to Objective-C ARC
5. An architecture that facilitates communication between objects in different address spaces.
distributed objects
pointer
[receiver message];
instance variable
6. In a format string the place holder for an object is ______
%@
delegate
informal protocol
C operators
7. ______ data types are always zero or greate
Unsigned
remote object
superset
AppKit
8. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
factory
encapsulation
Smalltalk
dynamic binding
9. Property attribute that synthesizes only a getter for the property
receiver
readonly
formal protocol
instance
10. Objective-C's protocols are really about communicating _____ _______
Pointers
developer intent
deprecated
pointer
11. Discovering the class of an object at runtime rather than at compile time.
pointers
cannot
nil
dynamic typing
12. Initializer method traditionally begin with the _____ prefix
Unsigned
floating-point
init
Protocols
13. 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).
formal protocol
implementation
Edit>Refactor>Convert to Objective-C ARC
runtime
14. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
memory leak
procedures
fields
15. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
null
framework
anonymous object
fields
16. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
Edit>Refactor>Convert to Objective-C ARC
Unitary
delegates
subclass
17. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
Enumerations
polymorphism
Unitary
runtime
18. Placing a ____ before a normal variable name gives it's address
conform
chars
method
ampersand (&)
19. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
dynamic binding
interface
developer intent
asterisk (*)
20. Three main categories of more complicated data structures:_______ - arrays and structs
AppKit
NSString
pointers
nil
21. 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.
heap
dangling pointer
Protocols
Interface Builder
22. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
inheritance
asterisk (*)
dynamic typing
value
23. Another name for a class that's defined solely so that other classes can inherit from it.
heap
Smalltalk
adopt
abstract superclass
24. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
synchronous message
message expression
superclass
init
25. 3 Common Float data types: float - _____ - CGFloat
double
selector
copy
@implementation
26. In a home building analogy a ____ is the blueprint and the object is the house
Encapsulation
Cocoa
class
[receiver message];
27. 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
struct
subclass
dereference (dereferencing)
28. Symbol used to denote a placeholder in a format string
null
%
Protocols
class
29. To destroy an object set the variable that points to it to _____
unitary
compile time
NSObject
nil
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.
asynchronous message
informal protocol
init
dynamic allocation
31. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
AppKit
dangling pointer
-
properties
32. Same as class object. (first way to say it.)
implementation
factory
cycles
formal protocol
33. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
object
class object
dynamic typing
asterisk (*)
34. a+b; is an example of using a _____ operator
inheritance
namespace
binary
outlet
35. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
link time
cannot
nil
36. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
reference counting
AppKit
Protocols
cycles
37. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
memory leak
inheritance hierarchy
Binary
38. 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.
@implementation
event
nil
formal protocol
39. 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.
double
event
delegates
link time
40. Objective-C binds methods and arguments at _____ instead of compile time
runtime
[receiver message];
abstract superclass
cycles
41. 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
C operators
developer intent
42. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
factory object
Smalltalk
nil
class
43. Finding the method implementation to invoke in response to the message
precedence
dynamic binding
abstract class
structures
44. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
NSString
developer intent
Cocoa
class object
45. The first index in an array is valued at ____
mutex
remote object
compile time
zero
46. _____ operators take 2 operands
%@
Binary
value
interface
47. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
instance
properties
dynamic binding
48. ______ operators take a single operand
Unitary
Unsigned
Cocoa
NSString
49. C-style strings always end with a ____ character
deprecated
runtime
null
factory
50. Any method that can be used by an instance of a class rather than by the class object.
%@
inheritance hierarchy
designated initializer
instance method
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