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. A struct may contain multiple ____ consisting of different data types
NSObject
@implementation
fields
framework
2. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
+
distributed objects
ampersand (&)
superclass
3. Three main categories of more complicated data structures:_______ - arrays and structs
properties
pointers
event
selector
4. Property attribute that causes the setter to store a copy of the assigned value
Enumerations
procedures
copy
reference counting
5. _____ operators take 2 operands
Binary
-
nonatomic
Interface Builder
6. Xcode sequence to examine an app for memory leaks or retain cycles
attributes
Product>Profile>Leaks>Profile
selector
Unsigned
7. 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
comma-separated
Protocols
Product>Profile>Leaks>Profile
designated initializer
8. Objective-C objects should use strong or weak ______
+
attributes
factory
static typing
9. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
superset
asynchronous message
Cocoa
10. All objects are created on the _____
heap
init
abstract superclass
procedures
11. 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
cannot
method
Cocoa
12. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
struct
dispatch table
nonatomic
runtime
13. The _____ function can be used to print a message to the console
event
compile time
printf( )
null
14. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
distributed objects
anonymous object
mutex
value
15. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
Categories
developer intent
procedures
@interface
16. _____ allow you to add new methods to existing classes
Categories
cannot
-
Product>Profile>Leaks>Profile
17. In object-oriented programming a procedure that can be executed by an object.
procedural programming language
method
compile time
nil
18. C-style strings are stored in an array of _____
remote object
double
Smalltalk
chars
19. 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
value
structures
doubles
pointer
20. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
dangling pointer
message
heap
Product>Profile>Leaks>Profile
21. 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.
Smalltalk
namespace
superclass
dynamic allocation
22. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
Smalltalk
init
Enumerations
asterisk (*)
23. Property attribute that synthesizes accessors that are not thread safe
inheritance
nonatomic
static typing
informal protocol
24. _____ allow indirect access and modification of a variable's value.
Interface Builder
ARC
@implementation
Pointers
25. Property attribute that synthesizes both a getter and setter for the property
readwrite
null
dereference (dereferencing)
dispatch table
26. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
dynamic allocation
abstract class
formal protocol
27. Any method that can be used by an instance of a class rather than by the class object.
attributes
printf( )
delegates
instance method
28. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
Enumerations
-
selector
mutex
29. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
procedures
static typing
dereference (dereferencing)
30. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
instance
attributes
precedence
static typing
31. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
class
Smalltalk
protocol
structures
32. In a format string the place holder for an object is ______
dynamic allocation
pointer
%@
mutex
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'.
Pointers
category
superclass
Encapsulation
34. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
remote message
instance method
delegates
interface
35. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica
synchronous message
nonatomic
class
memory leak
36. 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).
Encapsulation
synchronous message
message expression
dispatch table
37. The most flexible C data type: ______
event
dynamic binding
struct
instance method
38. An object of unknown class. Interface is published through protocol declaration.
anonymous object
[receiver message];
precedence
synchronous message
39. 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.
instance method
runtime
implementation
conform
40. 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.
dynamic binding
%
reference counting
dynamic typing
41. A set of method definitions that is segregated from the rest of the class definition.
attributes
asterisk (*)
category
properties
42. 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.
framework
comma-separated
Interface Builder
Enumerations
43. ARC is susceptible to retain _____
class object
delegates
cycles
subclass
44. a++; is an example of using a _____ operator
Encapsulation
unitary
-
conform
45. _____ data types can be both positive and negative
dereference (dereferencing)
Edit>Refactor>Convert to Objective-C ARC
Signed
long long
46. 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.
cycles
deprecated
AppKit
procedures
47. An object that acts on behalf of another object.
delegate
formal protocol
Signed
cannot
48. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
comma-separated
inheritance
nonatomic
weak
49. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
event
@implementation
instance variable
50. A ____ _____ is where you forget to free up memory
floating-point
inheritance hierarchy
memory leak
@interface
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