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 class is said to do this when it declares that it implements all the methods in the protocol.
precedence
adopt
designated initializer
nil
2. _____ allow indirect access and modification of a variable's value.
method
weak
assign
Pointers
3. C-style strings are stored in an array of _____
instance variable
NSObject
chars
assign
4. The _____ function can be used to print a message to the console
dynamic binding
dynamic typing
structures
printf( )
5. Objective-C's protocols are really about communicating _____ _______
developer intent
nil
delegates
abstract class
6. 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.
distributed objects
runtime
pointers
@implementation
7. Property attribute where the setter stores the assigned value but does not perform any memory management.
interface
copy
assign
designated
8. 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.
pointer
cannot
id
distributed objects
9. 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
runtime
conform
dynamic typing
asynchronous message
10. The most flexible C data type: ______
Categories
memory leak
@interface
struct
11. An object id with a value of 0.
nil
polymorphism
Cocoa
anonymous object
12. 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.
dynamic typing
class object
event
@interface
13. Property attribute that synthesizes accessors that are not thread safe
synchronous message
ampersand (&)
nonatomic
method
14. Property attribute that synthesizes both a getter and setter for the property
readwrite
Unitary
Unsigned
[receiver message];
15. 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.
compile time
%@
[receiver message];
abstract class
16. 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.
strong
asynchronous message
outlet
Signed
17. C-style strings always end with a ____ character
printf( )
null
doubles
assign
18. 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
Encapsulation
informal protocol
[receiver message];
19. ARC is susceptible to retain _____
cycles
nil
protocol
receiver
20. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
structures
+
designated
null
21. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
weak
abstract class
binary
compile time
22. Any class that's one step below another class in the inheritance hierarchy.
abstract class
Categories
subclass
object
23. A protocol declared as a category usually as a category of the NSObject class.
namespace
delegate
informal protocol
distributed objects
24. In Objective-C floats are more commonly used than ______
fields
inheritance hierarchy
doubles
nil
25. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
interface
Interface Builder
long long
floating-point
26. Initializer method traditionally begin with the _____ prefix
pointers
init
%
Interface Builder
27. Discovering the class of an object at runtime rather than at compile time.
Unsigned
dynamic typing
adopt
anonymous object
28. Any method that can be used by an instance of a class rather than by the class object.
readwrite
instance method
object
message
29. Property attribute that synthesizes only a getter for the property
readonly
Enumerations
inheritance hierarchy
long long
30. ____ provide a concise & elegant method for defining a discrete set of values
subclass
message expression
Enumerations
copy
31. 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.
superclass
encapsulation
binary
distributed objects
32. The root class in Objective-C
anonymous object
delegates
NSObject
framework
33. Objective-C is a _____ of the C language
properties
superset
Interface Builder
cycles
34. 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.
procedural programming language
link time
deprecated
object
35. 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.
dynamic allocation
@implementation
value
-
36. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
assignment
factory
Interface Builder
deprecated
37. 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.
Enumerations
nil
reference counting
structures
38. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
delegates
asterisk (*)
cannot
struct
39. _____ allow you to add new methods to existing classes
Categories
namespace
inheritance hierarchy
class method
40. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
static typing
message expression
instance
41. This symbol denotes a method as being a class method
assignment
+
formal protocol
%
42. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
developer intent
static typing
instance
dispatch table
43. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
cycles
class
pointers
object
44. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
unitary
printf( )
dynamic binding
45. _____ data types can be both positive and negative
formal protocol
Signed
doubles
init
46. Square bracket syntax for calling a method
mutex
copy
[receiver message];
designated initializer
47. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
developer intent
category
pointer
48. 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
designated initializer
@implementation
pointers
[receiver message];
49. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
category
AppKit
protocol
50. Data types are divided into two main categories: integer and ______
precedence
@interface
floating-point
printf( )
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