hpTechnical Questions with Answers

 1. How many such pairs of letters are there in the word DISTURB, each one has as many letters between its two letters in the word as there are between them in the English alphabet?

a) 4
b) 5
c) 3
d) 2
e) None of these
2. What are the types of linkages?

a) Internal and External
b) External, Internal and None
c) External and None
d) Internal

3. Which of the following is not a type of constructor?

a) Copy constructor
b) Friend constructor
c) Default constructor
d) Parameterized constructor

4. If C and G interchange their positions, which of the following will indicate A’s position?

a) To the immediate right of G
b) 4th to the right of C
c) 2nd to the left of G
d) to the immediate left of C
e) none of these

5. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1?

a) rem = 3.14 % 2.1;
b) rem = modf(3.14, 2.1);
c) rem = fmod(3.14, 2.1);
d) Remainder cannot be obtain in floating point division.

6. main( )
unsigned int i=3; freshersworld.com
while( i >=0)
printf( “%d”, i–);
how many times will the printf stmt be executed?

a) 0




7.  Which of the following type of class allows only one object of it to be created?

a) Virtual class
b) Abstract class
c) Singleton class
d) Friend class

You may also like

Leave a Comment