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. When creating a class header file you begin with the _____ keyword and close with the @end keyword
cannot
encapsulation
@interface
factory
2. 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.
dereference (dereferencing)
link time
outlet
mutex
3. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
assignment
cannot
designated initializer
namespace
4. Property attribute that causes the setter to store a strong reference to the assigned value
distributed objects
long long
nonatomic
strong
5. A set of method definitions that is segregated from the rest of the class definition.
category
copy
@implementation
class
6. a++; is an example of using a _____ operator
NSString
memory leak
unitary
square brackets
7. 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
link time
attributes
remote object
8. 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
attributes
dynamic allocation
runtime
9. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
conform
nil
inheritance hierarchy
10. 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.
strong
reference counting
factory
instance variable
11. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
doubles
delegates
Categories
12. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
developer intent
Signed
inheritance hierarchy
13. 3 Common Float data types: float - _____ - CGFloat
ampersand (&)
inheritance
pointer
double
14. 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.
instance method
encapsulation
distributed objects
informal protocol
15. Objective-C binds methods and arguments at _____ instead of compile time
runtime
Smalltalk
struct
inheritance hierarchy
16. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
nonatomic
runtime
instance
precedence
17. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.
dangling pointer
distributed objects
printf( )
reference counting
18. 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
cannot
null
adopt
19. Objective-C methods are called using ____ _____
dereference (dereferencing)
static typing
square brackets
namespace
20. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
%@
static typing
init
Edit>Refactor>Convert to Objective-C ARC
21. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
remote message
@interface
nil
22. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
procedural programming language
subclass
class
dereference (dereferencing)
23. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
dynamic typing
factory
long long
printf( )
24. ARC is susceptible to retain _____
inheritance
Edit>Refactor>Convert to Objective-C ARC
properties
cycles
25. A ____ ____ is a situation where you free memory and then accidentally continue to use it
reference counting
designated initializer
Cocoa
dangling pointer
26. 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
message
runtime
structures
dynamic allocation
27. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
inheritance
instance
adopt
28. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
fields
delegate
instance method
29. Property attribute that synthesizes both a getter and setter for the property
square brackets
readwrite
outlet
polymorphism
30. C-style strings are stored in an array of _____
outlet
compile time
anonymous object
chars
31. Data types are divided into two main categories: integer and ______
Cocoa
floating-point
synchronous message
factory
32. Xcode sequence to examine an app for memory leaks or retain cycles
Enumerations
dispatch table
Product>Profile>Leaks>Profile
chars
33. Instance variables are optional in iOS if ________ are used
strong
properties
class method
factory
34. Three main categories of more complicated data structures:_______ - arrays and structs
Interface Builder
pointers
nil
cycles
35. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
object
runtime
pointers
36. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
doubles
instance
init
precedence
37. 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.
message expression
id
subclass
long long
38. 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).
static typing
ARC
nil
message expression
39. Objective-C's protocols are really about communicating _____ _______
link time
developer intent
pointers
category
40. The most flexible C data type: ______
struct
abstract superclass
AppKit
message
41. The root class in Objective-C
NSObject
subclass
instance method
inheritance
42. Finding the method implementation to invoke in response to the message
Categories
dynamic binding
id
@interface
43. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
chars
inheritance
interface
Binary
44. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
abstract superclass
conform
long long
@implementation
45. A message sent from one application to an object in another application.
%@
%
remote message
Categories
46. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
outlet
Cocoa
remote message
47. Any method that can be used by an instance of a class rather than by the class object.
abstract class
anonymous object
instance method
9
48. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
chars
dangling pointer
polymorphism
49. There are ____ fundamental building blocks in Objective-C
-
fields
9
C operators
50. 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.
square brackets
Interface Builder
nonatomic
dereference (dereferencing)
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