Logo 
Search:

cpp Interview FAQs

Submit Interview FAQ
No Records Found!!!
Go Ahead and Post your Interview FAQ
Home » Interview FAQs » cppRSS Feeds
C++ Programming
Comments: 0

Which of the following functions allow you clear the specified flags? - Select option

Options

a) fill()
b) unsetf()
c) cflag()
d) None of the above

Answer : b) unsetf()
Posted By:Vida Fischer      Posted On: Oct 19

C++ Programming
Comments: 0

Identify the equivalent ios function for the manipulator ‘setw’.

Options

a) width()
b) setwidth()
c) swidth()
d) None of the above

Answer : a) width()
Posted By:William Bouchard      Posted On: Oct 19

C++ Programming
Comments: 0

Which of the following statements do incorrectly describe the characteristics of destructors?

I. A destructor is a member function, which has the same name as class name
II. A destructor receives only one argument
III. A destructor does not return any value
IV. Usage of destructors in a program clean up memory space that is not used

Opt...
Posted By:David Evans      Posted On: Oct 18

C++ Programming
Comments: 0

Write an algorithm for Inserting a node from a Binary Tree in dfs (data file structure).

PROCEDURE TREE_INSERT(HEAD,X,Y)
[Given a binary tree whose root node address is given by the pointer value HEAD and the information value (X) of the node marked for insertion, this procedure inserts the node (Y) whose information field is equal to X...
Posted By:Lurleen Fischer      Posted On: Oct 17

C++ Programming
Comments: 0

List Properties of Stack in dfs (data file structure).

- Insertion or Deletion of new node can be performed at one side of list.
- Top of stack points to last in element.
- Stack is dynamic using linked list and static using array.
- The indexing of particular element of stack depends on the basic...
Posted By:Max Evans      Posted On: Oct 16

C++ Programming
Comments: 0

What will be the output of the following code segment? - Select option

void function();
int main()
{
try
{
function();
}
catch (char)
{
cout<<"Caught a Char<}
return 0;
}
void function()
{
throw 2;
}
}

Options

a) Error in execution
b) Caught a Char
c) Abort() function is invoked
d) ...
Posted By:Luisa Fischer      Posted On: Oct 15

C++ Programming
Comments: 0

Which of the following functions allow you clear the specified flags? - Select option

Options

a) fill()
b) unsetf()
c) cflag()
d) None of the above

Answer : b) unsetf()
Posted By:Vida Fischer      Posted On: Oct 19

C++ Programming
Comments: 0

Identify the equivalent ios function for the manipulator ‘setw’.

Options

a) width()
b) setwidth()
c) swidth()
d) None of the above

Answer : a) width()
Posted By:William Bouchard      Posted On: Oct 19

C++ Programming
Comments: 0

Which of the following statements do incorrectly describe the characteristics of destructors?

I. A destructor is a member function, which has the same name as class name
II. A destructor receives only one argument
III. A destructor does not return any value
IV. Usage of destructors in a program clean up memory space that is not used

Opt...
Posted By:David Evans      Posted On: Oct 18

C++ Programming
Comments: 0

Write an algorithm for Inserting a node from a Binary Tree in dfs (data file structure).

PROCEDURE TREE_INSERT(HEAD,X,Y)
[Given a binary tree whose root node address is given by the pointer value HEAD and the information value (X) of the node marked for insertion, this procedure inserts the node (Y) whose information field is equal to X...
Posted By:Lurleen Fischer      Posted On: Oct 17

C++ Programming
Comments: 0

List Properties of Stack in dfs (data file structure).

- Insertion or Deletion of new node can be performed at one side of list.
- Top of stack points to last in element.
- Stack is dynamic using linked list and static using array.
- The indexing of particular element of stack depends on the basic...
Posted By:Max Evans      Posted On: Oct 16

C++ Programming
Comments: 0

What will be the output of the following code segment? - Select option

void function();
int main()
{
try
{
function();
}
catch (char)
{
cout<<"Caught a Char<}
return 0;
}
void function()
{
throw 2;
}
}

Options

a) Error in execution
b) Caught a Char
c) Abort() function is invoked
d) ...
Posted By:Luisa Fischer      Posted On: Oct 15

  26  27  28  29  30  31  32  33  34  35  36