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 method that can operate on class objects rather than instances of the class.
printf( )
Protocols
class method
selector
2. A compiler feature that provides automated memory management
remote object
ARC
message expression
structures
3. Property attribute that synthesizes accessors that are not thread safe
superset
doubles
nonatomic
Cocoa
4. 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.
dereference (dereferencing)
outlet
Categories
%
5. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
selector
pointer
C operators
strong
6. 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.
printf( )
weak
formal protocol
dangling pointer
7. A set of method definitions that is segregated from the rest of the class definition.
printf( )
category
method
asynchronous message
8. ______ operators take a single operand
class
cycles
dispatch table
Unitary
9. Finding the method implementation to invoke in response to the message
dynamic binding
@implementation
asynchronous message
runtime
10. 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
dynamic typing
protocol
@interface
11. Instance variables are optional in iOS if ________ are used
properties
delegates
zero
Interface Builder
12. This symbol denotes a method as being a class method
heap
+
dispatch table
dereference (dereferencing)
13. The most flexible C data type: ______
struct
assignment
strong
init
14. Initializer method traditionally begin with the _____ prefix
init
anonymous object
pointer
outlet
15. Property attribute that causes the setter to store a strong reference to the assigned value
weak
strong
copy
polymorphism
16. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
inheritance hierarchy
adopt
AppKit
interface
17. An object in another application - one that's a potential receiver for a remote message.
comma-separated
copy
remote object
precedence
18. ARC is susceptible to retain _____
cycles
message expression
delegate
Protocols
19. Square bracket syntax for calling a method
[receiver message];
procedural programming language
nonatomic
Smalltalk
20. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
@interface
ARC
dynamic binding
asterisk (*)
21. Objective-C is a _____ of the C language
superset
Binary
dangling pointer
copy
22. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
inheritance hierarchy
-
@implementation
memory leak
23. Objective-C objects should use strong or weak ______
%
chars
attributes
dangling pointer
24. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
static typing
object
message
25. An object of unknown class. Interface is published through protocol declaration.
zero
[receiver message];
assign
anonymous object
26. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
nonatomic
reference counting
factory object
message
27. A ____ _____ is where you forget to free up memory
memory leak
mutex
-
deprecated
28. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
method
instance
instance method
deprecated
29. A ____ ____ is a situation where you free memory and then accidentally continue to use it
value
readonly
dangling pointer
Interface Builder
30. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
Protocols
designated
pointer
anonymous object
31. A protocol declared as a category usually as a category of the NSObject class.
Enumerations
informal protocol
reference counting
developer intent
32. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
formal protocol
inheritance
pointer
33. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
id
printf( )
nonatomic
34. Objective-C's protocols are really about communicating _____ _______
receiver
developer intent
nil
namespace
35. ______ data types are always zero or greate
instance
Unsigned
double
class
36. Data types are divided into two main categories: integer and ______
floating-point
polymorphism
message
Encapsulation
37. Property attribute that synthesizes both a getter and setter for the property
dynamic binding
readwrite
polymorphism
category
38. 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
nil
zero
comma-separated
39. Symbol used to denote a placeholder in a format string
Product>Profile>Leaks>Profile
%@
message
%
40. The first index in an array is valued at ____
zero
Binary
memory leak
id
41. _____ allow you to add new methods to existing classes
compile time
Categories
readwrite
memory leak
42. All objects are created on the _____
synchronous message
interface
heap
event
43. In object-oriented programming the object that is sent a message.
[receiver message];
Signed
receiver
9
44. An object that acts on behalf of another object.
delegate
struct
value
precedence
45. 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
properties
Protocols
9
synchronous message
46. A variable that points to the memory address of another value
pointer
strong
Unsigned
cycles
47. Any class that's one step below another class in the inheritance hierarchy.
factory object
Product>Profile>Leaks>Profile
assign
subclass
48. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.
readwrite
abstract class
NSString
inheritance
49. A message sent from one application to an object in another application.
outlet
instance
procedures
remote message
50. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
Interface Builder
instance method
remote object
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