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. Same as class object. (second way to say it.)
class
factory object
nil
inheritance hierarchy
2. The most flexible C data type: ______
fields
Unsigned
readonly
struct
3. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
null
cycles
Protocols
mutex
4. Objective-C binds methods and arguments at _____ instead of compile time
adopt
runtime
polymorphism
conform
5. An object of unknown class. Interface is published through protocol declaration.
anonymous object
factory object
compile time
readonly
6. There are ____ fundamental building blocks in Objective-C
9
conform
distributed objects
superset
7. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
runtime
Product>Profile>Leaks>Profile
compile time
distributed objects
8. A message sent from one application to an object in another application.
%
factory
selector
remote message
9. 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
superset
instance method
Unsigned
10. The root class in Objective-C
NSObject
class method
delegate
%@
11. _____ allow you to add new methods to existing classes
Categories
AppKit
readonly
assign
12. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
zero
link time
message
13. 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.
Edit>Refactor>Convert to Objective-C ARC
link time
reference counting
encapsulation
14. ______ data types are always zero or greate
Unsigned
+
Product>Profile>Leaks>Profile
dangling pointer
15. C-style strings are stored in an array of _____
chars
binary
Unsigned
Enumerations
16. 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.
id
%
runtime
class
17. 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.
asynchronous message
dynamic binding
inheritance hierarchy
runtime
18. ARC is susceptible to retain _____
cycles
delegates
structures
link time
19. Xcode sequence to convert non-ARC apps to ARC
superset
value
procedures
Edit>Refactor>Convert to Objective-C ARC
20. To destroy an object set the variable that points to it to _____
receiver
nil
procedures
C operators
21. A method that can operate on class objects rather than instances of the class.
Categories
Edit>Refactor>Convert to Objective-C ARC
class method
properties
22. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
framework
Pointers
procedures
Protocols
23. A variable that points to the memory address of another value
pointer
structures
instance
dispatch table
24. Objective-C methods are called using ____ _____
dynamic allocation
link time
square brackets
class
25. 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
synchronous message
message
class
26. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
asterisk (*)
dangling pointer
procedural programming language
comma-separated
27. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met
unitary
conform
NSString
AppKit
28. A ____ _____ is where you forget to free up memory
class
memory leak
Protocols
precedence
29. 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.
init
cannot
memory leak
dynamic allocation
30. _____ operators take 2 operands
designated
Binary
remote message
distributed objects
31. A set of method definitions that is segregated from the rest of the class definition.
method
implementation
category
doubles
32. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
dereference (dereferencing)
static typing
9
id
33. Finding the method implementation to invoke in response to the message
C operators
binary
class object
dynamic binding
34. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@implementation
Cocoa
message expression
@interface
35. _____ data types can be both positive and negative
Signed
cannot
zero
remote object
36. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
Cocoa
precedence
fields
37. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
class
C operators
factory object
weak
38. An architecture that facilitates communication between objects in different address spaces.
distributed objects
dereference (dereferencing)
delegates
square brackets
39. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
instance
message
synchronous message
40. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
inheritance hierarchy
fields
9
@implementation
41. Objective-C is a _____ of the C language
superset
category
ARC
runtime
42. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
namespace
event
fields
43. C-style strings always end with a ____ character
null
Product>Profile>Leaks>Profile
AppKit
cycles
44. All objects are created on the _____
runtime
link time
AppKit
heap
45. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
remote message
receiver
+
46. Property attribute where the setter stores the assigned value but does not perform any memory management.
struct
factory object
assign
class object
47. In object-oriented programming the object that is sent a message.
nonatomic
receiver
runtime
9
48. _____ allow indirect access and modification of a variable's value.
cannot
link time
Pointers
readwrite
49. Objective-C's protocols are really about communicating _____ _______
developer intent
link time
long long
NSObject
50. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
message
factory
precedence
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