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. Square bracket syntax for calling a method
AppKit
message
[receiver message];
implementation
2. Objective-C's protocols are really about communicating _____ _______
precedence
developer intent
Categories
remote message
3. There are ____ fundamental building blocks in Objective-C
9
synchronous message
distributed objects
memory leak
4. 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).
double
static typing
message expression
synchronous message
5. An architecture that facilitates communication between objects in different address spaces.
distributed objects
-
NSString
procedures
6. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
event
Protocols
abstract superclass
zero
7. 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
message
synchronous message
abstract superclass
remote object
8. Three main categories of more complicated data structures:_______ - arrays and structs
delegates
pointers
namespace
selector
9. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
dangling pointer
procedures
NSObject
event
10. A compiler feature that provides automated memory management
ARC
inheritance
informal protocol
zero
11. An object id with a value of 0.
NSString
-
nil
abstract superclass
12. ____ provide a concise & elegant method for defining a discrete set of values
chars
class method
Enumerations
delegates
13. The _____ function can be used to print a message to the console
class method
framework
printf( )
dynamic binding
14. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
adopt
class
assign
long long
15. The most flexible C data type: ______
struct
message
pointers
asterisk (*)
16. All objects are created on the _____
heap
nil
class
ampersand (&)
17. To destroy an object set the variable that points to it to _____
runtime
%@
@interface
nil
18. Same as class object. (first way to say it.)
comma-separated
Protocols
factory
attributes
19. In object-oriented programming the object that is sent a message.
structures
receiver
init
9
20. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
id
synchronous message
message
abstract class
21. 3 Common Float data types: float - _____ - CGFloat
double
structures
object
weak
22. In a home building analogy a ____ is the blueprint and the object is the house
framework
Smalltalk
class
fields
23. 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.
reference counting
superset
comma-separated
outlet
24. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
class method
class object
C operators
subclass
25. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
remote object
binary
conform
26. A struct may contain multiple ____ consisting of different data types
anonymous object
namespace
fields
null
27. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
[receiver message];
category
adopt
28. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
link time
floating-point
assignment
synchronous message
29. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
outlet
C operators
instance method
dangling pointer
30. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
abstract class
delegates
Pointers
designated
31. A message sent from one application to an object in another application.
message
C operators
nonatomic
remote message
32. An object that acts on behalf of another object.
long long
Unsigned
delegate
designated
33. _____ allow you to add new methods to existing classes
Categories
factory object
dynamic binding
structures
34. _____ 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'.
Encapsulation
Binary
class method
Signed
35. The first index in an array is valued at ____
@interface
zero
Edit>Refactor>Convert to Objective-C ARC
dynamic typing
36. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
abstract superclass
cycles
class object
37. Objective-C methods are called using ____ _____
nil
ampersand (&)
instance method
square brackets
38. Xcode sequence to examine an app for memory leaks or retain cycles
class method
abstract superclass
adopt
Product>Profile>Leaks>Profile
39. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
dynamic typing
interface
fields
40. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
link time
deprecated
informal protocol
runtime
41. a+b; is an example of using a _____ operator
binary
cannot
[receiver message];
nonatomic
42. 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.
runtime
instance method
AppKit
dynamic binding
43. This symbol denotes a method as being an instance method
long long
formal protocol
-
dangling pointer
44. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
polymorphism
Signed
link time
static typing
45. 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.
class method
copy
namespace
AppKit
46. 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.
informal protocol
instance method
dynamic allocation
instance variable
47. Symbol used to denote a placeholder in a format string
copy
Unsigned
%
asynchronous message
48. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
abstract class
init
selector
49. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
remote message
asterisk (*)
null
assign
50. Objective-C is a _____ of the C language
delegates
Enumerations
superset
class method
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