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. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
doubles
selector
square brackets
delegates
2. 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).
method
dispatch table
implementation
double
3. 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.
readwrite
encapsulation
printf( )
runtime
4. Square bracket syntax for calling a method
superclass
designated initializer
conform
[receiver message];
5. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
adopt
class
inheritance hierarchy
id
6. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
init
Encapsulation
asynchronous message
interface
7. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
dynamic typing
static typing
instance
delegate
8. Any class that's one step below another class in the inheritance hierarchy.
delegate
category
subclass
runtime
9. 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.
nil
pointers
dynamic allocation
class object
10. Data types are divided into two main categories: integer and ______
formal protocol
class
floating-point
pointers
11. A struct may contain multiple ____ consisting of different data types
dynamic typing
assign
printf( )
fields
12. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
abstract class
selector
properties
procedures
13. In object-oriented programming a procedure that can be executed by an object.
dynamic typing
method
delegate
dynamic binding
14. This symbol denotes a method as being an instance method
-
square brackets
Edit>Refactor>Convert to Objective-C ARC
chars
15. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
link time
inheritance
framework
16. A compiler feature that provides automated memory management
ARC
namespace
assign
remote object
17. 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
nonatomic
nil
compile time
18. Xcode sequence to convert non-ARC apps to ARC
class
fields
Edit>Refactor>Convert to Objective-C ARC
abstract superclass
19. 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.
encapsulation
ampersand (&)
Interface Builder
readonly
20. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
precedence
square brackets
deprecated
compile time
21. In Objective-C floats are more commonly used than ______
superclass
delegate
doubles
binary
22. This symbol denotes a method as being a class method
namespace
+
instance
runtime
23. A protocol declared as a category usually as a category of the NSObject class.
method
runtime
informal protocol
printf( )
24. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
id
inheritance hierarchy
framework
precedence
25. Any method that can be used by an instance of a class rather than by the class object.
instance method
link time
cannot
cycles
26. Objective-C is a _____ of the C language
+
binary
[receiver message];
superset
27. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
comma-separated
cannot
@implementation
long long
28. Finding the method implementation to invoke in response to the message
nonatomic
designated
dynamic binding
delegates
29. ______ data types are always zero or greate
Pointers
Unsigned
factory object
message expression
30. 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.
object
message expression
id
structures
31. A variable that points to the memory address of another value
@implementation
delegate
pointer
anonymous object
32. Property attribute that causes the setter to store a copy of the assigned value
delegate
pointers
ampersand (&)
copy
33. _____ 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'.
superset
cycles
object
Encapsulation
34. 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.
pointers
class method
adopt
outlet
35. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
class
designated
Product>Profile>Leaks>Profile
9
36. An object that acts on behalf of another object.
delegate
message
readonly
factory object
37. All objects are created on the _____
delegate
dynamic allocation
heap
dangling pointer
38. 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.
instance variable
interface
comma-separated
ARC
39. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
structures
Smalltalk
value
ampersand (&)
40. Property attribute that synthesizes only a getter for the property
NSObject
polymorphism
link time
readonly
41. _____ operators take 2 operands
[receiver message];
class object
distributed objects
Binary
42. In object-oriented programming the object that is sent a message.
AppKit
+
receiver
dynamic typing
43. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
Cocoa
polymorphism
Product>Profile>Leaks>Profile
Signed
44. Objective-C objects should use strong or weak ______
dynamic typing
unitary
dispatch table
attributes
45. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
AppKit
polymorphism
link time
copy
46. A ____ ____ is a situation where you free memory and then accidentally continue to use it
framework
dangling pointer
ampersand (&)
Enumerations
47. a+b; is an example of using a _____ operator
nil
binary
C operators
value
48. The process of setting or reading the value at an address pointed to by a pointer
Cocoa
dereference (dereferencing)
instance
readwrite
49. Property attribute that causes the setter to store a strong reference to the assigned value
weak
category
strong
abstract class
50. _____ data types can be both positive and negative
weak
id
Signed
9
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