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. The _____ function can be used to print a message to the console
informal protocol
NSString
printf( )
polymorphism
2. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
strong
object
delegate
message
3. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
Pointers
readonly
assignment
instance
4. An object of unknown class. Interface is published through protocol declaration.
Protocols
Product>Profile>Leaks>Profile
anonymous object
readwrite
5. Objective-C is a _____ of the C language
heap
strong
superset
instance
6. 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
printf( )
zero
factory
7. 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.
copy
formal protocol
Cocoa
id
8. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
assign
long long
message expression
instance
9. Finding the method implementation to invoke in response to the message
dynamic binding
asterisk (*)
abstract superclass
assignment
10. A message sent from one application to an object in another application.
remote message
Unitary
comma-separated
floating-point
11. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
memory leak
fields
designated
12. In object-oriented programming a procedure that can be executed by an object.
method
designated
fields
factory object
13. A set of method definitions that is segregated from the rest of the class definition.
heap
init
@interface
category
14. An architecture that facilitates communication between objects in different address spaces.
distributed objects
dynamic allocation
attributes
encapsulation
15. Objective-C binds methods and arguments at _____ instead of compile time
Signed
square brackets
runtime
nil
16. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
dynamic binding
implementation
precedence
17. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
-
runtime
delegates
18. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
NSObject
id
+
19. 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
instance
Unitary
nonatomic
20. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
%
inheritance
Product>Profile>Leaks>Profile
factory
21. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
chars
fields
designated initializer
22. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
null
Cocoa
nil
23. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
instance
delegates
dispatch table
cycles
24. In the Objective-C language the declaration of a group of methods not associated with any particular class.
double
%
protocol
remote object
25. A variable that points to the memory address of another value
pointer
framework
abstract superclass
dispatch table
26. C-style strings always end with a ____ character
Edit>Refactor>Convert to Objective-C ARC
structures
null
@implementation
27. Initializer method traditionally begin with the _____ prefix
superset
Protocols
asterisk (*)
init
28. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
superset
%
selector
29. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
AppKit
precedence
[receiver message];
instance
30. A ____ _____ is where you forget to free up memory
memory leak
instance
ARC
runtime
31. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
formal protocol
object
polymorphism
32. A compiler feature that provides automated memory management
ARC
protocol
instance
Enumerations
33. 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.
C operators
class
formal protocol
reference counting
34. In object-oriented programming the object that is sent a message.
cannot
Edit>Refactor>Convert to Objective-C ARC
factory object
receiver
35. 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
asynchronous message
NSString
framework
Interface Builder
36. 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.
category
properties
distributed objects
instance variable
37. 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).
link time
dispatch table
dereference (dereferencing)
message expression
38. Three main categories of more complicated data structures:_______ - arrays and structs
unitary
[receiver message];
pointers
conform
39. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
mutex
Binary
@implementation
long long
40. Same as class object. (second way to say it.)
outlet
namespace
factory object
cycles
41. ARC is susceptible to retain _____
developer intent
Binary
Signed
cycles
42. 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
[receiver message];
message expression
dynamic typing
structures
43. 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.
heap
link time
instance
conform
44. _____ allow indirect access and modification of a variable's value.
reference counting
implementation
deprecated
Pointers
45. ______ operators take a single operand
structures
Unitary
value
weak
46. Objective-C methods are called using ____ _____
Encapsulation
category
square brackets
pointer
47. In a format string the place holder for an object is ______
struct
deprecated
%@
cycles
48. In Objective-C floats are more commonly used than ______
doubles
framework
strong
designated initializer
49. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
nil
factory object
9
50. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
square brackets
compile time
protocol
designated initializer
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