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. Instance variables are optional in iOS if ________ are used
properties
heap
runtime
init
2. To destroy an object set the variable that points to it to _____
nil
AppKit
interface
namespace
3. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
structures
square brackets
ARC
superclass
4. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
distributed objects
@interface
Cocoa
selector
5. 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.
inheritance hierarchy
Encapsulation
precedence
memory leak
6. A ____ _____ is where you forget to free up memory
memory leak
Product>Profile>Leaks>Profile
cannot
@implementation
7. 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.
struct
@interface
comma-separated
selector
8. Objective-C binds methods and arguments at _____ instead of compile time
dynamic binding
static typing
%
runtime
9. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
designated initializer
unitary
inheritance
dispatch table
10. Any class that's one step below another class in the inheritance hierarchy.
subclass
AppKit
inheritance hierarchy
readwrite
11. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
instance
%
chars
class
12. A variable that points to the memory address of another value
procedures
developer intent
pointer
ampersand (&)
13. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
null
nil
precedence
AppKit
14. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
remote message
cannot
class method
nil
15. 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.
floating-point
Signed
formal protocol
event
16. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
mutex
%
interface
17. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
remote message
readonly
Signed
18. 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
namespace
designated initializer
weak
polymorphism
19. Property attribute that synthesizes both a getter and setter for the property
polymorphism
procedures
message
readwrite
20. In object-oriented programming the object that is sent a message.
message
dynamic allocation
receiver
procedural programming language
21. 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.
Smalltalk
protocol
instance
dynamic allocation
22. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
asterisk (*)
subclass
polymorphism
Protocols
23. Property attribute that causes the setter to store a strong reference to the assigned value
strong
fields
cycles
long long
24. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
class object
compile time
Product>Profile>Leaks>Profile
informal protocol
25. 3 Common Float data types: float - _____ - CGFloat
null
readonly
double
static typing
26. a+b; is an example of using a _____ operator
comma-separated
nil
binary
Categories
27. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
instance method
@implementation
comma-separated
class
28. There are ____ fundamental building blocks in Objective-C
asynchronous message
Protocols
fields
9
29. Finding the method implementation to invoke in response to the message
delegate
Product>Profile>Leaks>Profile
dynamic binding
instance
30. C-style strings are stored in an array of _____
chars
floating-point
double
NSObject
31. C-style strings always end with a ____ character
zero
null
precedence
value
32. _____ allow indirect access and modification of a variable's value.
remote message
Smalltalk
abstract superclass
Pointers
33. A compiler feature that provides automated memory management
Categories
receiver
heap
ARC
34. In a format string the place holder for an object is ______
%@
@implementation
class object
binary
35. Property attribute that causes the setter to store a copy of the assigned value
dangling pointer
ampersand (&)
copy
class method
36. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
object
procedural programming language
pointer
-
37. 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.
static typing
C operators
Product>Profile>Leaks>Profile
abstract class
38. Placing a ____ before a normal variable name gives it's address
implementation
ampersand (&)
anonymous object
long long
39. 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.
cycles
polymorphism
instance
link time
40. 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.
instance
conform
runtime
distributed objects
41. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
asynchronous message
abstract class
deprecated
42. 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.
encapsulation
assign
dynamic allocation
instance
43. A message sent from one application to an object in another application.
instance
C operators
event
remote message
44. Xcode sequence to convert non-ARC apps to ARC
Encapsulation
Edit>Refactor>Convert to Objective-C ARC
anonymous object
encapsulation
45. The most flexible C data type: ______
event
9
value
struct
46. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
cycles
comma-separated
deprecated
conform
47. 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.
id
9
@interface
ARC
48. Symbol used to denote a placeholder in a format string
%
static typing
formal protocol
Enumerations
49. All objects are created on the _____
heap
static typing
framework
synchronous message
50. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).
remote message
nil
message expression
runtime
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