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. Any method that can be used by an instance of a class rather than by the class object.
adopt
delegates
asterisk (*)
instance method
2. In a home building analogy a ____ is the blueprint and the object is the house
object
cycles
distributed objects
class
3. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
pointers
procedural programming language
Enumerations
4. An architecture that facilitates communication between objects in different address spaces.
procedural programming language
inheritance hierarchy
distributed objects
Binary
5. The most flexible C data type: ______
long long
struct
factory object
category
6. 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.
doubles
Interface Builder
-
+
7. 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.
developer intent
zero
reference counting
encapsulation
8. Same as class object. (first way to say it.)
class object
class
factory
ARC
9. An object in another application - one that's a potential receiver for a remote message.
class object
remote object
dynamic allocation
assignment
10. 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
Protocols
dynamic binding
interface
NSString
11. Property attribute that causes the setter to store a copy of the assigned value
copy
static typing
nil
readwrite
12. A struct may contain multiple ____ consisting of different data types
instance
fields
assign
square brackets
13. a+b; is an example of using a _____ operator
inheritance
abstract class
binary
superset
14. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
inheritance hierarchy
superclass
Cocoa
informal protocol
15. 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.
long long
instance
outlet
nonatomic
16. 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.
heap
AppKit
asynchronous message
comma-separated
17. The first index in an array is valued at ____
assign
zero
selector
attributes
18. a++; is an example of using a _____ operator
@interface
9
Categories
unitary
19. An object of unknown class. Interface is published through protocol declaration.
polymorphism
anonymous object
delegates
distributed objects
20. Placing a ____ before a normal variable name gives it's address
%
Binary
ampersand (&)
Encapsulation
21. Square bracket syntax for calling a method
Pointers
heap
nil
[receiver message];
22. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
nil
encapsulation
C operators
class object
23. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
struct
nil
structures
24. 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.
procedural programming language
dynamic typing
asynchronous message
init
25. 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).
message expression
remote object
adopt
binary
26. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
reference counting
message
asterisk (*)
fields
27. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
runtime
precedence
formal protocol
28. A method that can operate on class objects rather than instances of the class.
dynamic typing
factory object
class method
distributed objects
29. A protocol declared as a category usually as a category of the NSObject class.
asynchronous message
category
reference counting
informal protocol
30. 3 Common Float data types: float - _____ - CGFloat
class
developer intent
double
assignment
31. A class is said to do this when it declares that it implements all the methods in the protocol.
procedural programming language
pointer
runtime
adopt
32. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
superclass
assign
cannot
pointers
33. _____ operators take 2 operands
factory object
Binary
class object
NSString
34. A ____ _____ is where you forget to free up memory
binary
message
informal protocol
memory leak
35. C-style strings always end with a ____ character
+
category
null
Smalltalk
36. A ____ ____ is a situation where you free memory and then accidentally continue to use it
readonly
object
implementation
dangling pointer
37. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
copy
inheritance
message
AppKit
38. 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).
implementation
AppKit
namespace
object
39. When creating a class header file you begin with the _____ keyword and close with the @end keyword
class method
@interface
zero
Product>Profile>Leaks>Profile
40. Property attribute that synthesizes accessors that are not thread safe
nonatomic
abstract superclass
selector
superset
41. Objective-C binds methods and arguments at _____ instead of compile time
-
runtime
anonymous object
cannot
42. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
Encapsulation
mutex
init
43. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
superclass
Edit>Refactor>Convert to Objective-C ARC
Protocols
superset
44. 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.
object
designated
dispatch table
message
45. An object that acts on behalf of another object.
Unsigned
floating-point
delegate
developer intent
46. Another name for a class that's defined solely so that other classes can inherit from it.
distributed objects
runtime
printf( )
abstract superclass
47. Property attribute that synthesizes only a getter for the property
readonly
procedures
pointer
implementation
48. 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
synchronous message
9
properties
informal protocol
49. ARC is susceptible to retain _____
inheritance hierarchy
dispatch table
cycles
instance method
50. _____ allow you to add new methods to existing classes
NSString
Categories
formal protocol
dangling pointer
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