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. This symbol denotes a method as being a class method
+
C operators
@interface
delegate
2. The _____ function can be used to print a message to the console
inheritance hierarchy
superclass
printf( )
Smalltalk
3. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
@interface
attributes
remote object
weak
4. In the Objective-C language the declaration of a group of methods not associated with any particular class.
selector
protocol
C operators
Interface Builder
5. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
Binary
instance
binary
ARC
6. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
printf( )
structures
compile time
formal protocol
7. 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.
instance
class object
event
abstract superclass
8. Same as class object. (second way to say it.)
factory object
reference counting
ampersand (&)
Cocoa
9. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
developer intent
superclass
Edit>Refactor>Convert to Objective-C ARC
selector
10. Property attribute that synthesizes accessors that are not thread safe
class object
nonatomic
Smalltalk
properties
11. a+b; is an example of using a _____ operator
binary
namespace
procedural programming language
conform
12. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
zero
Smalltalk
fields
floating-point
13. Property attribute that synthesizes both a getter and setter for the property
asynchronous message
class method
null
readwrite
14. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
link time
receiver
square brackets
15. _____ allow you to add new methods to existing classes
structures
fields
superset
Categories
16. 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
nil
abstract class
designated
17. ______ data types are always zero or greate
remote object
conform
Unsigned
Binary
18. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
NSObject
reference counting
Edit>Refactor>Convert to Objective-C ARC
19. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
Encapsulation
message
factory object
strong
20. 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.
fields
outlet
anonymous object
ARC
21. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
null
assignment
inheritance
category
22. In a home building analogy a ____ is the blueprint and the object is the house
@implementation
class
null
square brackets
23. Any class that's one step below another class in the inheritance hierarchy.
Pointers
Smalltalk
Unitary
subclass
24. 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.
selector
dynamic binding
namespace
AppKit
25. Property attribute that synthesizes only a getter for the property
properties
dangling pointer
readonly
anonymous object
26. Same as class object. (first way to say it.)
instance method
factory
unitary
instance
27. 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
comma-separated
readwrite
designated initializer
floating-point
28. In object-oriented programming the object that is sent a message.
receiver
AppKit
dynamic binding
anonymous object
29. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
class method
Cocoa
deprecated
dynamic allocation
30. _____ operators take 2 operands
NSString
instance method
Binary
copy
31. Xcode sequence to convert non-ARC apps to ARC
category
Edit>Refactor>Convert to Objective-C ARC
dereference (dereferencing)
instance method
32. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
Interface Builder
properties
delegates
33. All objects are created on the _____
heap
mutex
class
instance method
34. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
distributed objects
pointers
doubles
static typing
35. 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.
message expression
link time
cannot
abstract superclass
36. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
dynamic allocation
init
Pointers
37. A ____ _____ is where you forget to free up memory
Pointers
memory leak
%@
ARC
38. An architecture that facilitates communication between objects in different address spaces.
distributed objects
compile time
structures
mutex
39. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
static typing
@implementation
fields
+
40. 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.
class object
receiver
id
designated initializer
41. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
asynchronous message
encapsulation
copy
event
42. Objective-C binds methods and arguments at _____ instead of compile time
runtime
superclass
link time
readonly
43. A struct may contain multiple ____ consisting of different data types
framework
precedence
fields
adopt
44. An object that acts on behalf of another object.
Categories
delegate
assign
struct
45. There are ____ fundamental building blocks in Objective-C
9
value
outlet
ARC
46. 3 Common Float data types: float - _____ - CGFloat
designated
informal protocol
double
conform
47. ____ provide a concise & elegant method for defining a discrete set of values
Signed
Enumerations
adopt
@interface
48. C-style strings always end with a ____ character
attributes
memory leak
null
pointer
49. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
unitary
NSString
ARC
50. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
abstract superclass
mutex
null
framework
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