***************** C **********************
1
The read-only values are declared by
2
char occupies ____ bytes
3
Two strings can be compared by using
4
String parsing can be done by
5
The statement const char * q = p; indicates
6
char *MyTest::GetScore( ) const; Which is NOT valid in the following?
7
void swap ( int &a, int &b ) { int temp = a; a = b; b = temp; } Which is correct in the
following?
8
Choose the correct answer. int X = 1, Y, Z; Y = ++X; Z = X++;
9
Which is NOT true in the following for local variables?
10
Is the following valid? void test_function ( int *tests, int q_number, int score_flag = FALSE
);
11
Which of the following is used for exception handling?
12
The operator >> means
13
int& GetX( ) { return m_x; } anObject.GetX( ) = 5; Is it correct?
14
Select the one that best fits for a pointer.
15
Which is a valid statement in the following? int * p; int *p;
16
A class is a
17
One class inherits data member and methods from another class using
18
Choose the one that best fits for a 'friend'.
19
The practice of defining multiple methods which have the same name but different return
types or argument lists is called as
20
Is new creates objects on stack?
21
malloc returns
22
Data members or member functions of the class that are not visible to the world outside this
class's member functions and friends.
23
Member functions that are not visible to the world outside their class but are visible to
derived classes, derived member functions and friends.
24
Which is not correct in the following?
25
Will destructors be called for an object when it goes out of scope because of an exception?
26
Can new and delete operators be overloaded?
27
class exam { public: void score( ); }; class test : public exam { public: void score( int ); }; Is
function score overloaded?
28
class exam { public: void score( ); }; class test : public exam { public: void score( int ); };
void main ( ) { test cTest; cTest.score( ); } Is it correct?
1
On a 16-bit processor, integers are ____ bytes
2
char occupies ____ bytes
3
The read-only values are declared by
4
On a 32-bit processor, integers are ____ bytes.
5
When using 32-bit mode for Windows 95 or Windows NT programs, integers are ____
bytes.
6
Two strings can be compared by using
7
String parsing can be done by
8
On an Intel Pentium, for DOS and Windows 3.1, integers are ____ bytes.
9
The statement const char * q = p; indicates
10
The statement const char * const q = p; indicates
11
Is the following two statements same? char *MyTest::GetScore( ) const; const char
*MyTest::GetScore( );
12
char *MyTest::GetScore( ) const; Which is NOT valid in the following?
13
const char *MyTest::GetScore( ); Which is NOT valid in the following?
14
void swap ( int &a, int &b ) { int temp = a; a = b; b = temp; } Which is correct in the
following?
15
Is C++ supports default arguments?
16
Out of following which is NOT an Unary operator?
17
Choose the correct answer. int X = 1, Y, Z; Y = ++X; Z = X++;
18
Which is NOT true in the following for local variables?
19
Which of the following is used for exception handling?
20
The operator >> means
21
Which of the following is true for inline functions?
22
Can two functions have the same name?
23
Select the one that best fits for a pointer.
24
Which is a valid statement in the following? int * p; int *p;
25
malloc returns
1
Is the following valid? void test_function ( int *tests, int q_number, int score_flag = FALSE
);
2
A pure virtual function
3
Data members or member functions of the class that are visible to any part of the application
that has a valid identifier for an object of this class.
4
Data members or member functions of the class that are not visible to the world outside this
class's member functions and friends.
5
Member functions that are not visible to the world outside their class, but are visible to
derived classes, derived member functions and friends.
6
Select the one that best fits: a class is a
7
A class can have any number of constructors.
8
A class can have any number of destructors
9
A constructor is a special member function that is used to initialize objects when they are
first created.
10
class Test { public: static int SetScore ( int s ) { return m_Score = s; } private: int m_Score;
}; Is it correct?
11
class Test { public: static int SetScore ( int s ) { return m_Score = s; } private: static int
m_Score; }; Is it correct?
12
Can a constructor return a value?
13
Which of the following is NOT correct?
14
The practice of defining multiple methods which have the same name but different return
types or argument lists is called
15
Is operator overloading allowed?
16
Can new and delete operators be overloaded?
17
class exam { public: void score( ); }; class test : public exam { public: void score( int ); }; Is
function score overloaded?
18
class exam { public: void score( ); }; class test : public exam { public: void score( int ); };
void main ( ) { test cTest; cTest.score( ); } Is it correct?
19
Can a destructor be declared as a pure virtual?
20
Constructor(s) and destructor functions need not have the same name as the class to which
they belong.
21
One class inherits data member and methods from another class using
22
Can two methods can have the same name?
23
Which of the following is NOT correct for an interface?
24
Choose the one that best fits for a 'friend'.
25
MFC stands for
26
API stands for
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment