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. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
structures
instance
remote object
comma-separated
2. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
pointer
mutex
interface
value
3. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
C operators
asterisk (*)
dispatch table
@implementation
4. Same as class object. (first way to say it.)
-
factory
message expression
dispatch table
5. Placing a ____ before a normal variable name gives it's address
ampersand (&)
zero
asterisk (*)
dereference (dereferencing)
6. Objective-C binds methods and arguments at _____ instead of compile time
category
+
runtime
interface
7. C-style strings always end with a ____ character
null
dangling pointer
dynamic typing
value
8. 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
designated initializer
dangling pointer
class
procedural programming language
9. Another name for a class that's defined solely so that other classes can inherit from it.
null
interface
abstract superclass
Product>Profile>Leaks>Profile
10. Property attribute where the setter stores the assigned value but does not perform any memory management.
delegates
factory object
assign
Smalltalk
11. Property attribute that synthesizes only a getter for the property
Unitary
receiver
remote message
readonly
12. Xcode sequence to examine an app for memory leaks or retain cycles
superset
zero
Product>Profile>Leaks>Profile
dynamic typing
13. An object in another application - one that's a potential receiver for a remote message.
compile time
delegates
designated initializer
remote object
14. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
class
instance
protocol
C operators
15. A struct may contain multiple ____ consisting of different data types
message expression
fields
%
dynamic typing
16. In a format string the place holder for an object is ______
object
selector
%@
developer intent
17. To destroy an object set the variable that points to it to _____
inheritance
nil
%
[receiver message];
18. An object that acts on behalf of another object.
@implementation
Cocoa
delegate
init
19. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
struct
NSObject
mutex
static typing
20. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
developer intent
double
comma-separated
21. 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
weak
pointers
factory object
conform
22. In object-oriented programming the object that is sent a message.
subclass
receiver
-
Cocoa
23. A method that can operate on class objects rather than instances of the class.
fields
deprecated
class method
adopt
24. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
compile time
designated
floating-point
-
25. Same as class object. (second way to say it.)
factory object
ARC
procedural programming language
assign
26. Property attribute that synthesizes accessors that are not thread safe
binary
link time
nonatomic
inheritance hierarchy
27. ______ data types are always zero or greate
comma-separated
NSString
Edit>Refactor>Convert to Objective-C ARC
Unsigned
28. Discovering the class of an object at runtime rather than at compile time.
class object
dynamic typing
designated
implementation
29. 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.
outlet
dispatch table
selector
Smalltalk
30. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
remote object
procedural programming language
printf( )
superset
31. Objective-C's protocols are really about communicating _____ _______
precedence
developer intent
-
dispatch table
32. The first index in an array is valued at ____
-
Pointers
zero
category
33. Three main categories of more complicated data structures:_______ - arrays and structs
readonly
fields
pointers
class object
34. A set of method definitions that is segregated from the rest of the class definition.
category
printf( )
runtime
message expression
35. The root class in Objective-C
Encapsulation
strong
init
NSObject
36. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
abstract class
informal protocol
long long
@implementation
37. A ____ ____ is a situation where you free memory and then accidentally continue to use it
nil
floating-point
dynamic allocation
dangling pointer
38. This symbol denotes a method as being an instance method
Encapsulation
message
anonymous object
-
39. 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.
procedural programming language
Unitary
encapsulation
init
40. Instance variables are optional in iOS if ________ are used
precedence
instance variable
properties
abstract class
41. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
delegates
inheritance
%
receiver
42. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
printf( )
Smalltalk
pointers
cannot
43. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
namespace
delegates
dangling pointer
synchronous message
44. Square bracket syntax for calling a method
informal protocol
synchronous message
runtime
[receiver message];
45. This symbol denotes a method as being a class method
assignment
mutex
+
link time
46. A protocol declared as a category usually as a category of the NSObject class.
synchronous message
binary
encapsulation
informal protocol
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.
C operators
init
id
deprecated
48. Objective-C methods are called using ____ _____
C operators
%@
square brackets
cycles
49. 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.
interface
dynamic typing
chars
runtime
50. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
instance
Edit>Refactor>Convert to Objective-C ARC
factory object
procedures
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