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. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
Encapsulation
null
abstract superclass
2. An object id with a value of 0.
procedures
nil
double
Enumerations
3. A protocol declared as a category usually as a category of the NSObject class.
class
superclass
informal protocol
floating-point
4. Property attribute that synthesizes accessors that are not thread safe
mutex
nonatomic
designated initializer
Protocols
5. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
9
inheritance hierarchy
struct
interface
6. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
Categories
dangling pointer
floating-point
7. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
superset
framework
init
method
8. An object of unknown class. Interface is published through protocol declaration.
Product>Profile>Leaks>Profile
anonymous object
+
strong
9. Same as class object. (second way to say it.)
factory object
weak
comma-separated
method
10. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
assignment
ARC
instance
fields
11. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
framework
asynchronous message
dispatch table
procedures
12. In a home building analogy a ____ is the blueprint and the object is the house
delegate
class
abstract superclass
cannot
13. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
abstract class
runtime
superclass
+
14. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
factory
value
polymorphism
mutex
15. 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.
unitary
instance
inheritance hierarchy
namespace
16. 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.
message
assignment
abstract class
static typing
17. This symbol denotes a method as being a class method
Unsigned
value
+
assignment
18. A struct may contain multiple ____ consisting of different data types
asterisk (*)
synchronous message
copy
fields
19. The _____ function can be used to print a message to the console
9
remote object
printf( )
selector
20. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
static typing
NSString
attributes
21. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
assignment
dangling pointer
Pointers
22. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
pointers
anonymous object
method
Smalltalk
23. 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.
attributes
@interface
deprecated
asynchronous message
24. 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.
binary
+
class method
runtime
25. Initializer method traditionally begin with the _____ prefix
framework
init
factory object
message
26. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects
structures
mutex
synchronous message
id
27. Symbol used to denote a placeholder in a format string
long long
properties
%
designated initializer
28. 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).
Enumerations
designated
message expression
category
29. A set of method definitions that is segregated from the rest of the class definition.
category
message expression
init
procedural programming language
30. ______ operators take a single operand
asynchronous message
namespace
instance
Unitary
31. _____ operators take 2 operands
Binary
dangling pointer
procedural programming language
pointers
32. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
interface
formal protocol
procedures
informal protocol
33. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
+
dynamic typing
developer intent
34. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
square brackets
comma-separated
factory object
35. 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.
adopt
procedural programming language
formal protocol
pointer
36. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
superclass
factory object
9
37. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
NSString
nil
reference counting
category
38. 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.
Unsigned
namespace
@implementation
distributed objects
39. Instance variables are optional in iOS if ________ are used
conform
dereference (dereferencing)
assignment
properties
40. The root class in Objective-C
subclass
Product>Profile>Leaks>Profile
NSObject
Enumerations
41. A variable that points to the memory address of another value
pointer
event
zero
Binary
42. There are ____ fundamental building blocks in Objective-C
[receiver message];
9
Unsigned
dangling pointer
43. C-style strings always end with a ____ character
object
null
Encapsulation
compile time
44. 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).
implementation
assignment
attributes
Interface Builder
45. Data types are divided into two main categories: integer and ______
[receiver message];
floating-point
@implementation
implementation
46. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
dangling pointer
dynamic allocation
unitary
event
47. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
Product>Profile>Leaks>Profile
pointer
interface
object
48. An object in another application - one that's a potential receiver for a remote message.
class object
-
mutex
remote object
49. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
reference counting
instance method
@implementation
Pointers
50. Any class that's one step below another class in the inheritance hierarchy.
subclass
Unitary
Encapsulation
designated initializer
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