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. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
cycles
cannot
delegates
strong
2. A class is said to do this when it declares that it implements all the methods in the protocol.
null
adopt
long long
Smalltalk
3. Any class that's one step below another class in the inheritance hierarchy.
@interface
dynamic typing
subclass
readwrite
4. Objective-C is a _____ of the C language
superset
value
dispatch table
@interface
5. The root class in Objective-C
NSObject
object
informal protocol
cannot
6. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
protocol
static typing
pointers
dynamic typing
7. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
AppKit
Cocoa
binary
zero
8. 3 Common Float data types: float - _____ - CGFloat
double
dangling pointer
structures
attributes
9. 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.
id
@interface
link time
C operators
10. An architecture that facilitates communication between objects in different address spaces.
dangling pointer
Cocoa
distributed objects
interface
11. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
procedures
inheritance
pointers
unitary
12. 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.
selector
Edit>Refactor>Convert to Objective-C ARC
abstract superclass
C operators
13. In a home building analogy a ____ is the blueprint and the object is the house
selector
class
doubles
message
14. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
superset
message
doubles
%
15. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
dangling pointer
cannot
-
dynamic binding
16. C-style strings always end with a ____ character
null
factory
@implementation
abstract superclass
17. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
dynamic typing
pointer
event
instance method
18. This symbol denotes a method as being a class method
dangling pointer
+
inheritance
strong
19. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
dangling pointer
compile time
object
class
20. 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).
dangling pointer
instance
implementation
Product>Profile>Leaks>Profile
21. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
method
Protocols
@interface
Encapsulation
22. When creating a class header file you begin with the _____ keyword and close with the @end keyword
asterisk (*)
conform
binary
@interface
23. Same as class object. (second way to say it.)
factory object
Pointers
method
dangling pointer
24. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
precedence
%
dynamic allocation
factory object
25. 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.
namespace
encapsulation
floating-point
Interface Builder
26. _____ allow you to add new methods to existing classes
copy
properties
Categories
superset
27. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
readonly
procedural programming language
value
asynchronous message
28. a++; is an example of using a _____ operator
unitary
pointers
instance variable
weak
29. Instance variables are optional in iOS if ________ are used
[receiver message];
properties
adopt
synchronous message
30. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.
delegate
class method
nil
instance
31. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
factory
formal protocol
@implementation
cycles
32. a+b; is an example of using a _____ operator
readwrite
class
binary
assign
33. A method that can operate on class objects rather than instances of the class.
designated
class method
binary
class object
34. 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.
doubles
inheritance hierarchy
procedures
NSObject
35. Property attribute that causes the setter to store a strong reference to the assigned value
strong
inheritance hierarchy
+
designated initializer
36. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
printf( )
designated
deprecated
factory
37. Any method that can be used by an instance of a class rather than by the class object.
Cocoa
static typing
instance method
[receiver message];
38. _____ data types can be both positive and negative
%
protocol
subclass
Signed
39. ______ operators take a single operand
attributes
Unitary
printf( )
remote object
40. A struct may contain multiple ____ consisting of different data types
fields
remote object
class
unitary
41. In a format string the place holder for an object is ______
%@
runtime
factory
event
42. 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
informal protocol
protocol
unitary
43. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
message
unitary
asterisk (*)
procedural programming language
44. The _____ function can be used to print a message to the console
remote object
printf( )
AppKit
superset
45. ARC is susceptible to retain _____
cycles
class
assign
implementation
46. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
dynamic allocation
instance variable
Edit>Refactor>Convert to Objective-C ARC
47. In Objective-C floats are more commonly used than ______
doubles
method
delegates
superclass
48. In object-oriented programming a procedure that can be executed by an object.
implementation
dynamic typing
anonymous object
method
49. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
strong
dispatch table
reference counting
structures
50. Discovering the class of an object at runtime rather than at compile time.
outlet
dynamic typing
inheritance
comma-separated
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