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. 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.
category
instance variable
protocol
Categories
2. 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
remote message
Pointers
+
3. The _____ function can be used to print a message to the console
printf( )
Enumerations
dispatch table
copy
4. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
Interface Builder
readwrite
Product>Profile>Leaks>Profile
pointers
5. A set of method definitions that is segregated from the rest of the class definition.
dynamic allocation
designated initializer
category
pointers
6. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
asynchronous message
designated
unitary
mutex
7. In Objective-C floats are more commonly used than ______
C operators
doubles
category
null
8. Initializer method traditionally begin with the _____ prefix
encapsulation
attributes
instance method
init
9. The process of setting or reading the value at an address pointed to by a pointer
abstract superclass
dereference (dereferencing)
selector
developer intent
10. In a format string the place holder for an object is ______
informal protocol
%@
encapsulation
abstract class
11. In object-oriented programming the object that is sent a message.
receiver
Interface Builder
class object
ampersand (&)
12. Property attribute that synthesizes accessors that are not thread safe
message
pointer
nonatomic
conform
13. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
delegate
struct
class method
cannot
14. Objective-C is a _____ of the C language
superset
instance
cycles
Enumerations
15. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
id
precedence
inheritance hierarchy
receiver
16. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
class object
compile time
dispatch table
class
17. ______ data types are always zero or greate
Unsigned
AppKit
remote object
readonly
18. Symbol used to denote a placeholder in a format string
Encapsulation
Edit>Refactor>Convert to Objective-C ARC
%
heap
19. In the Objective-C language the declaration of a group of methods not associated with any particular class.
anonymous object
protocol
interface
superset
20. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
instance variable
binary
ARC
21. Property attribute that causes the setter to store a copy of the assigned value
implementation
instance
copy
Cocoa
22. C-style strings are stored in an array of _____
factory
dispatch table
Smalltalk
chars
23. The most flexible C data type: ______
delegates
struct
runtime
printf( )
24. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
mutex
weak
selector
25. A variable that points to the memory address of another value
structures
doubles
message
pointer
26. An object of unknown class. Interface is published through protocol declaration.
selector
inheritance
assignment
anonymous object
27. _____ operators take 2 operands
Binary
comma-separated
polymorphism
class
28. a+b; is an example of using a _____ operator
reference counting
binary
Unsigned
Signed
29. Same as class object. (first way to say it.)
factory
informal protocol
Binary
Signed
30. Square bracket syntax for calling a method
-
distributed objects
factory object
[receiver message];
31. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
readonly
encapsulation
dispatch table
32. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
remote object
Cocoa
superset
instance
33. In object-oriented programming a procedure that can be executed by an object.
event
method
@implementation
Signed
34. _____ allow you to add new methods to existing classes
subclass
Categories
anonymous object
fields
35. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
message expression
dangling pointer
fields
36. To destroy an object set the variable that points to it to _____
NSObject
nil
ARC
class method
37. 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
pointer
class method
38. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
init
Categories
dangling pointer
39. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
pointer
synchronous message
ampersand (&)
40. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects
%
null
structures
readwrite
41. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
class method
weak
heap
C operators
42. Property attribute that synthesizes both a getter and setter for the property
floating-point
asterisk (*)
double
readwrite
43. 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.
abstract class
Binary
interface
instance
44. 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
receiver
NSString
instance method
remote object
45. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
instance
mutex
dispatch table
implementation
46. In a home building analogy a ____ is the blueprint and the object is the house
nil
long long
class
Interface Builder
47. 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.
doubles
link time
factory object
C operators
48. 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
Edit>Refactor>Convert to Objective-C ARC
@interface
49. Instance variables are optional in iOS if ________ are used
struct
designated
attributes
properties
50. ARC is susceptible to retain _____
cycles
memory leak
deprecated
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