This Objective C & OOP Examination 2 assesses knowledge in Objective C syntax, memory management, and OOP principles. It tests skills in function pointers, NSString manipulations, memory address behaviors, array operations, type conversions, and protocol conformances, suitable for learners aiming to enhance their programming expertise.
The returned object is retained
The returned object is released
The returned object is auto-released
Rate this question:
Each address will be different
Addresses 1 and 2 will be the same
Addresses 1, 2 and 3 will be the same
All addresses will be the same
Rate this question:
6
7
8
9
10
Rate this question:
The floating point value is truncated
The floating point value is rounded, then assigned as an integer
The assignment is not done, as it's invalid
Rate this question:
@interface ClassName [ ProtocolName ]
@interface ClassName < ProtocolName >
@interface ClassName < ProtocolName
@interface ClassName < ProtocolName
@interface ClassName( ProtocolName )
Rate this question:
@private
@protected
@public
@package
None of the above
Rate this question:
S1: 0
S1: 1
S1: 2
S1: 3
S1: 4
Rate this question:
Categories
Protocols
Classes
None of the above
Rate this question:
@raise e
@throw e
RAISE( e )
THROW( e )
None of the above
Rate this question:
@final
@static
@fast
@iterative
@enumeration
@singleton
There is no class specifier in Objective-C
Rate this question:
( int ) ^ foo( char * );
Int( ^ foo )( char * );
__block int( foo( char * ) );
^ ( int foo( char * ) );
__block ( int foo( char * ) );
The Objective-C compiler does not support blocks
Static
Auto
Const
Volatile
Extern
None of the above
Rate this question:
A namespace
A way to add instance variables to a class which already exists
A collection of classes
A way to add methods to a class which already exists
None of the above
Rate this question:
Instance variables
Class variables
Static variables
Variable arguments
Private methods
Protected methods
Class methods
Rate this question:
Quiz Review Timeline (Updated): Mar 21, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.