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. In a home building analogy a ____ is the blueprint and the object is the house
message expression
message
nil
class
2. In the Objective-C language the declaration of a group of methods not associated with any particular class.
comma-separated
struct
protocol
properties
3. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
Smalltalk
formal protocol
id
4. A ____ ____ is a situation where you free memory and then accidentally continue to use it
fields
static typing
dangling pointer
Smalltalk
5. A protocol declared as a category usually as a category of the NSObject class.
procedures
interface
readonly
informal protocol
6. An architecture that facilitates communication between objects in different address spaces.
[receiver message];
distributed objects
Smalltalk
superset
7. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
binary
square brackets
AppKit
C operators
8. 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.
Smalltalk
Enumerations
reference counting
conform
9. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
abstract superclass
attributes
instance
heap
10. a+b; is an example of using a _____ operator
%@
long long
binary
instance method
11. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
Signed
framework
event
heap
12. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
anonymous object
id
9
13. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
asterisk (*)
class
Categories
14. ______ operators take a single operand
AppKit
subclass
procedures
Unitary
15. A compiler feature that provides automated memory management
ARC
encapsulation
AppKit
designated
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.
inheritance
asynchronous message
dispatch table
remote message
17. _____ allow you to add new methods to existing classes
dispatch table
inheritance hierarchy
Categories
structures
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
Product>Profile>Leaks>Profile
ampersand (&)
weak
19. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.
struct
Encapsulation
interface
superset
20. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
+
precedence
formal protocol
designated
21. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
procedures
NSObject
copy
22. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
conform
precedence
+
asterisk (*)
23. In a format string the place holder for an object is ______
%@
class method
Encapsulation
dispatch table
24. Objective-C's protocols are really about communicating _____ _______
developer intent
precedence
strong
encapsulation
25. Square bracket syntax for calling a method
[receiver message];
dynamic typing
precedence
protocol
26. In Objective-C floats are more commonly used than ______
procedural programming language
@implementation
doubles
dynamic allocation
27. Symbol used to denote a placeholder in a format string
value
adopt
nil
%
28. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
synchronous message
readonly
double
class
29. A method that can operate on class objects rather than instances of the class.
class method
NSObject
dispatch table
+
30. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
procedures
nil
NSString
31. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
developer intent
value
instance
weak
32. Property attribute that synthesizes both a getter and setter for the property
designated initializer
namespace
subclass
readwrite
33. _____ operators take 2 operands
Binary
deprecated
-
runtime
34. An object of unknown class. Interface is published through protocol declaration.
compile time
heap
Enumerations
anonymous object
35. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
9
[receiver message];
procedures
36. 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.
namespace
formal protocol
unitary
outlet
37. 3 Common Float data types: float - _____ - CGFloat
double
Interface Builder
anonymous object
init
38. 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
superclass
null
double
39. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
class
subclass
Smalltalk
superclass
40. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
properties
adopt
encapsulation
41. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
static typing
Binary
asterisk (*)
Signed
42. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
informal protocol
namespace
value
Smalltalk
43. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
copy
procedural programming language
framework
compile time
44. 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
adopt
nil
structures
45. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
synchronous message
Product>Profile>Leaks>Profile
Interface Builder
46. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
namespace
assignment
developer intent
deprecated
47. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
weak
message
implementation
48. 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.
reference counting
instance
instance
class
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.
class object
class
asynchronous message
instance
50. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
method
Smalltalk
@interface
cannot
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