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. The root class in Objective-C
instance variable
class object
AppKit
NSObject
2. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
%
event
encapsulation
procedural programming language
3. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
class method
Unsigned
ARC
4. 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
message
attributes
conform
asterisk (*)
5. 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.
class
class object
heap
doubles
6. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
assignment
superset
cannot
message
7. Same as class object. (first way to say it.)
factory
chars
object
inheritance hierarchy
8. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
procedural programming language
designated
runtime
Protocols
9. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
Cocoa
unitary
[receiver message];
event
10. Same as class object. (second way to say it.)
id
null
factory object
instance
11. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
Unitary
designated initializer
static typing
protocol
12. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
C operators
%@
ARC
class
13. Property attribute that synthesizes accessors that are not thread safe
dynamic typing
nonatomic
dispatch table
class
14. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
nonatomic
polymorphism
procedures
structures
15. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
superset
mutex
designated
subclass
16. A ____ ____ is a situation where you free memory and then accidentally continue to use it
namespace
unitary
dangling pointer
attributes
17. 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
double
NSString
properties
assign
18. Initializer method traditionally begin with the _____ prefix
copy
init
[receiver message];
C operators
19. ______ data types are always zero or greate
Unsigned
[receiver message];
double
class
20. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
strong
nil
delegates
dispatch table
21. 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.
interface
delegate
remote message
asynchronous message
22. 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.
pointers
formal protocol
message expression
AppKit
23. 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).
long long
message expression
precedence
nonatomic
24. Objective-C methods are called using ____ _____
comma-separated
square brackets
instance variable
dispatch table
25. Square bracket syntax for calling a method
class
remote object
[receiver message];
conform
26. C-style strings are stored in an array of _____
message expression
polymorphism
AppKit
chars
27. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.
runtime
instance
subclass
developer intent
28. 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.
instance
remote object
class
message
29. Property attribute where the setter stores the assigned value but does not perform any memory management.
-
nil
assign
double
30. An architecture that facilitates communication between objects in different address spaces.
distributed objects
attributes
Interface Builder
asterisk (*)
31. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
doubles
@interface
Cocoa
encapsulation
32. 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.
outlet
dereference (dereferencing)
class object
designated
33. This symbol denotes a method as being a class method
+
message expression
attributes
interface
34. Xcode sequence to convert non-ARC apps to ARC
instance
Unsigned
structures
Edit>Refactor>Convert to Objective-C ARC
35. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
value
procedures
Enumerations
36. In object-oriented programming the object that is sent a message.
@implementation
message
receiver
polymorphism
37. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
null
[receiver message];
weak
Signed
38. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
factory
assignment
Signed
AppKit
39. All objects are created on the _____
framework
unitary
fields
heap
40. Three main categories of more complicated data structures:_______ - arrays and structs
event
outlet
asterisk (*)
pointers
41. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
anonymous object
dispatch table
superclass
42. An object that acts on behalf of another object.
delegate
doubles
message
mutex
43. An object id with a value of 0.
nil
adopt
protocol
delegate
44. In Objective-C floats are more commonly used than ______
doubles
namespace
value
inheritance
45. An object in another application - one that's a potential receiver for a remote message.
remote object
memory leak
method
deprecated
46. Finding the method implementation to invoke in response to the message
instance
dynamic binding
message
@implementation
47. To destroy an object set the variable that points to it to _____
nil
null
category
pointers
48. _____ operators take 2 operands
Edit>Refactor>Convert to Objective-C ARC
outlet
Binary
selector
49. In a home building analogy a ____ is the blueprint and the object is the house
class
instance
Product>Profile>Leaks>Profile
superset
50. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
instance variable
assign
floating-point
heap
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