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. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
cycles
class
dispatch table
event
2. In the Objective-C language the declaration of a group of methods not associated with any particular class.
%
protocol
class object
framework
3. C-style strings always end with a ____ character
+
zero
null
class object
4. ______ operators take a single operand
receiver
Unitary
%@
chars
5. 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
superclass
cannot
pointers
6. _____ allow indirect access and modification of a variable's value.
readwrite
namespace
inheritance hierarchy
Pointers
7. 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.
properties
Categories
interface
runtime
8. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
class method
value
selector
@implementation
9. 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.
Binary
id
Protocols
cannot
10. When creating a class header file you begin with the _____ keyword and close with the @end keyword
instance method
@interface
delegate
init
11. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
dynamic typing
subclass
mutex
readwrite
12. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
category
null
nonatomic
13. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
polymorphism
formal protocol
%@
delegates
14. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
reference counting
dynamic allocation
interface
nil
15. The process of setting or reading the value at an address pointed to by a pointer
comma-separated
dereference (dereferencing)
Interface Builder
nonatomic
16. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
inheritance hierarchy
init
runtime
deprecated
17. a+b; is an example of using a _____ operator
binary
class object
mutex
zero
18. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
delegate
superclass
long long
pointer
19. The most flexible C data type: ______
asynchronous message
struct
message expression
comma-separated
20. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
id
compile time
remote message
comma-separated
21. 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.
zero
Interface Builder
instance
factory
22. All objects are created on the _____
distributed objects
heap
precedence
protocol
23. Symbol used to denote a placeholder in a format string
%
copy
message expression
nil
24. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
remote object
nil
static typing
conform
25. To destroy an object set the variable that points to it to _____
nil
polymorphism
message expression
delegates
26. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
binary
class
NSObject
id
27. ______ data types are always zero or greate
Unsigned
method
heap
subclass
28. 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.
cannot
Signed
AppKit
formal protocol
29. This symbol denotes a method as being an instance method
-
dangling pointer
nonatomic
assignment
30. Discovering the class of an object at runtime rather than at compile time.
cannot
dynamic typing
class object
instance
31. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
attributes
assignment
method
%
32. Property attribute that causes the setter to store a copy of the assigned value
class
adopt
weak
copy
33. An object that acts on behalf of another object.
conform
class
delegate
AppKit
34. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
dereference (dereferencing)
Unsigned
mutex
procedures
35. An architecture that facilitates communication between objects in different address spaces.
interface
informal protocol
distributed objects
readonly
36. 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.
dangling pointer
outlet
Edit>Refactor>Convert to Objective-C ARC
Pointers
37. A message sent from one application to an object in another application.
Signed
remote message
deprecated
assign
38. A ____ _____ is where you forget to free up memory
superset
memory leak
-
method
39. 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.
factory
unitary
message
namespace
40. _____ operators take 2 operands
outlet
Binary
category
NSObject
41. 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.
attributes
readonly
reference counting
AppKit
42. An object id with a value of 0.
implementation
long long
nil
Product>Profile>Leaks>Profile
43. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
developer intent
event
instance
long long
44. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
selector
remote object
comma-separated
Pointers
45. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
floating-point
init
conform
46. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
runtime
remote object
inheritance
outlet
47. Objective-C's protocols are really about communicating _____ _______
compile time
+
developer intent
id
48. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
comma-separated
@implementation
instance
delegate
49. Initializer method traditionally begin with the _____ prefix
Signed
runtime
procedural programming language
init
50. Property attribute that synthesizes only a getter for the property
floating-point
readonly
struct
conform
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