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. In a home building analogy a ____ is the blueprint and the object is the house
formal protocol
class
object
designated initializer
2. 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
double
message expression
remote object
3. Objective-C is a _____ of the C language
superset
link time
Pointers
NSObject
4. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
binary
precedence
heap
Enumerations
5. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
cannot
superclass
asynchronous message
asterisk (*)
6. Property attribute that synthesizes accessors that are not thread safe
delegate
nonatomic
structures
Enumerations
7. Property attribute that synthesizes only a getter for the property
developer intent
readonly
long long
dereference (dereferencing)
8. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
AppKit
Smalltalk
message expression
message
9. _____ data types can be both positive and negative
properties
class method
9
Signed
10. In object-oriented programming the object that is sent a message.
class object
readwrite
receiver
inheritance
11. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
delegate
binary
reference counting
12. C-style strings always end with a ____ character
null
@implementation
binary
chars
13. Square bracket syntax for calling a method
designated initializer
dynamic binding
[receiver message];
message expression
14. 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.
factory object
runtime
Cocoa
selector
15. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
Product>Profile>Leaks>Profile
nil
asterisk (*)
deprecated
16. Initializer method traditionally begin with the _____ prefix
factory object
id
object
init
17. Three main categories of more complicated data structures:_______ - arrays and structs
dereference (dereferencing)
Interface Builder
pointers
object
18. The most flexible C data type: ______
struct
anonymous object
ampersand (&)
zero
19. A variable that points to the memory address of another value
protocol
readonly
remote message
pointer
20. ____ provide a concise & elegant method for defining a discrete set of values
instance method
9
printf( )
Enumerations
21. Objective-C's protocols are really about communicating _____ _______
assign
class object
memory leak
developer intent
22. 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.
inheritance
outlet
dynamic allocation
namespace
23. A method that can operate on class objects rather than instances of the class.
deprecated
memory leak
nil
class method
24. 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.
attributes
namespace
pointers
runtime
25. Objective-C binds methods and arguments at _____ instead of compile time
anonymous object
readonly
heap
runtime
26. ARC is susceptible to retain _____
unitary
nonatomic
cycles
C operators
27. Xcode sequence to convert non-ARC apps to ARC
outlet
readwrite
Edit>Refactor>Convert to Objective-C ARC
C operators
28. Finding the method implementation to invoke in response to the message
reference counting
dynamic binding
informal protocol
binary
29. In a format string the place holder for an object is ______
NSString
heap
init
%@
30. An object in another application - one that's a potential receiver for a remote message.
instance
remote object
inheritance hierarchy
id
31. 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).
reference counting
class
remote message
message expression
32. 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.
nil
remote object
Interface Builder
link time
33. Property attribute that synthesizes both a getter and setter for the property
NSString
precedence
Interface Builder
readwrite
34. 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
designated initializer
dynamic binding
link time
instance variable
35. Discovering the class of an object at runtime rather than at compile time.
adopt
dynamic typing
dispatch table
long long
36. _____ allow indirect access and modification of a variable's value.
pointer
Pointers
runtime
square brackets
37. 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
namespace
+
38. 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.
precedence
readwrite
asynchronous message
link time
39. The process of setting or reading the value at an address pointed to by a pointer
remote message
dereference (dereferencing)
delegate
synchronous message
40. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
weak
@implementation
delegates
compile time
41. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
distributed objects
-
dispatch table
message
42. A message sent from one application to an object in another application.
Product>Profile>Leaks>Profile
doubles
remote message
dangling pointer
43. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
runtime
Protocols
Binary
null
44. 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.
designated
class object
class
delegate
45. The _____ function can be used to print a message to the console
printf( )
memory leak
event
init
46. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
anonymous object
init
C operators
class
47. 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
readonly
procedures
message
48. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
factory
delegate
Cocoa
Pointers
49. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
assignment
receiver
namespace
long long
50. Objective-C methods are called using ____ _____
factory object
mutex
square brackets
distributed objects
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