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 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
informal protocol
readonly
link time
2. _____ data types can be both positive and negative
dispatch table
Signed
link time
synchronous message
3. 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).
instance
dynamic binding
implementation
superclass
4. Property attribute that causes the setter to store a copy of the assigned value
dispatch table
struct
copy
object
5. A variable that points to the memory address of another value
[receiver message];
9
pointer
Binary
6. C-style strings always end with a ____ character
protocol
inheritance
null
square brackets
7. ______ data types are always zero or greate
receiver
pointers
cycles
Unsigned
8. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
protocol
link time
abstract class
9. Discovering the class of an object at runtime rather than at compile time.
Unsigned
unitary
dynamic typing
weak
10. 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.
Unsigned
outlet
unitary
id
11. 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.
class
inheritance hierarchy
strong
comma-separated
12. A message sent from one application to an object in another application.
floating-point
formal protocol
Interface Builder
remote message
13. This symbol denotes a method as being a class method
+
properties
remote message
inheritance hierarchy
14. An architecture that facilitates communication between objects in different address spaces.
zero
%
distributed objects
AppKit
15. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
delegate
binary
inheritance
16. a+b; is an example of using a _____ operator
binary
@implementation
long long
message expression
17. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
attributes
printf( )
nil
18. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
class method
delegate
C operators
precedence
19. In a format string the place holder for an object is ______
asterisk (*)
instance variable
%@
dynamic allocation
20. Property attribute that causes the setter to store a strong reference to the assigned value
strong
heap
-
readonly
21. ARC is susceptible to retain _____
cycles
procedural programming language
category
selector
22. Finding the method implementation to invoke in response to the message
dynamic binding
assignment
procedures
floating-point
23. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
[receiver message];
properties
comma-separated
24. 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.
C operators
superset
AppKit
delegate
25. ____ provide a concise & elegant method for defining a discrete set of values
Smalltalk
@interface
factory object
Enumerations
26. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
Categories
class
message
dynamic typing
27. _____ operators take 2 operands
%
Binary
@implementation
9
28. Any method that can be used by an instance of a class rather than by the class object.
null
%
Protocols
instance method
29. 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
class object
cycles
factory object
conform
30. 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).
message expression
NSObject
anonymous object
instance variable
31. The process of setting or reading the value at an address pointed to by a pointer
struct
dereference (dereferencing)
nil
init
32. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
namespace
developer intent
class
Cocoa
33. 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.
+
strong
runtime
cycles
34. 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
Smalltalk
NSString
outlet
%
35. 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
namespace
structures
runtime
NSObject
36. Xcode sequence to convert non-ARC apps to ARC
abstract superclass
Edit>Refactor>Convert to Objective-C ARC
%@
selector
37. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
id
factory
category
38. 3 Common Float data types: float - _____ - CGFloat
double
developer intent
attributes
framework
39. a++; is an example of using a _____ operator
C operators
[receiver message];
conform
unitary
40. 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.
formal protocol
-
developer intent
runtime
41. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
instance method
receiver
@implementation
42. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
Protocols
Enumerations
dynamic typing
delegates
43. In Objective-C floats are more commonly used than ______
+
mutex
remote object
doubles
44. Property attribute where the setter stores the assigned value but does not perform any memory management.
NSString
[receiver message];
readwrite
assign
45. _____ allow indirect access and modification of a variable's value.
memory leak
inheritance
abstract class
Pointers
46. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
category
message expression
assignment
procedural programming language
47. Instance variables are optional in iOS if ________ are used
protocol
properties
AppKit
readonly
48. Objective-C methods are called using ____ _____
inheritance hierarchy
AppKit
square brackets
dereference (dereferencing)
49. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
readwrite
developer intent
selector
comma-separated
50. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
C operators
weak
category
encapsulation
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