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+b; is an example of using a _____ operator
structures
nil
remote object
binary
2. A ____ _____ is where you forget to free up memory
memory leak
category
dangling pointer
binary
3. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
reference counting
memory leak
9
inheritance
4. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
instance
remote object
readonly
message
5. Square bracket syntax for calling a method
factory
Protocols
[receiver message];
Unsigned
6. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
delegate
Cocoa
delegates
7. 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.
class object
precedence
object
class method
8. Objective-C methods are called using ____ _____
polymorphism
double
square brackets
NSObject
9. 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.
unitary
receiver
instance
object
10. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
9
procedures
asterisk (*)
floating-point
11. C-style strings are stored in an array of _____
delegates
Unsigned
class object
chars
12. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
heap
dynamic allocation
selector
procedural programming language
13. Property attribute that causes the setter to store a copy of the assigned value
class method
null
pointers
copy
14. Property attribute that synthesizes both a getter and setter for the property
cannot
dispatch table
procedural programming language
readwrite
15. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
formal protocol
properties
cycles
16. Any method that can be used by an instance of a class rather than by the class object.
informal protocol
instance method
conform
floating-point
17. _____ operators take 2 operands
factory
superclass
anonymous object
Binary
18. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
encapsulation
precedence
delegates
instance variable
19. Property attribute where the setter stores the assigned value but does not perform any memory management.
pointers
assign
zero
cycles
20. 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.
mutex
static typing
message
encapsulation
21. A class is said to do this when it declares that it implements all the methods in the protocol.
interface
runtime
Encapsulation
adopt
22. Initializer method traditionally begin with the _____ prefix
init
procedural programming language
attributes
Smalltalk
23. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
+
dispatch table
namespace
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.
delegate
asynchronous message
assign
asterisk (*)
25. This symbol denotes a method as being an instance method
-
long long
procedures
delegates
26. 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.
@implementation
procedural programming language
NSString
id
27. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
static typing
floating-point
interface
28. Any class that's one step below another class in the inheritance hierarchy.
subclass
weak
Categories
ampersand (&)
29. ARC is susceptible to retain _____
-
cycles
AppKit
remote object
30. 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
copy
deprecated
synchronous message
dispatch table
31. 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
conform
instance variable
delegate
32. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
pointer
dispatch table
asterisk (*)
formal protocol
33. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
method
id
procedures
34. Xcode sequence to convert non-ARC apps to ARC
link time
Edit>Refactor>Convert to Objective-C ARC
AppKit
subclass
35. Objective-C is a _____ of the C language
inheritance
superset
Categories
runtime
36. An object in another application - one that's a potential receiver for a remote message.
subclass
double
remote object
precedence
37. Objective-C binds methods and arguments at _____ instead of compile time
readonly
runtime
%@
receiver
38. a++; is an example of using a _____ operator
unitary
null
precedence
factory
39. Objective-C's protocols are really about communicating _____ _______
Signed
encapsulation
developer intent
value
40. Same as class object. (first way to say it.)
asterisk (*)
Categories
factory
attributes
41. A variable that points to the memory address of another value
designated initializer
dispatch table
delegate
pointer
42. Same as class object. (second way to say it.)
nonatomic
factory object
dereference (dereferencing)
implementation
43. In a format string the place holder for an object is ______
properties
nil
memory leak
%@
44. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
+
interface
long long
dispatch table
45. 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.
dynamic binding
runtime
encapsulation
nil
46. A message sent from one application to an object in another application.
properties
remote message
namespace
Smalltalk
47. Symbol used to denote a placeholder in a format string
readonly
long long
%
conform
48. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
procedural programming language
anonymous object
floating-point
49. 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.
null
class object
protocol
Smalltalk
50. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
null
-
static typing
class object
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