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 statement(s) is used to rethrow an exception? - Select option

Options

a) throw(exception);
b) throw exception;
c) throw;
d) None of the above


Answer : c) throw;
Posted By:Helga Miller      Posted On: Nov 18

C++ Programming
Comments: 0

Write an algorithm for deleting an element from stack using array in dfs (data file structure).

PROCEDURE DELETE(ITEM, STACK, TOP)
[Deletes ‘item’ from the ‘stack’, top is the number of elements currently in ‘stack’.]

1. [Underflow ?]

if (TOP <= 0)
write Stack is empty.
return.

2. [Deleting Element]

item <-- stack[top]

...
Posted By:Binge Fischer      Posted On: Nov 17

Assembly Language
Comments: 0

What is the use of stepper motor?

A stepper motor is a device used to obtain an accurate position control of rotating shafts. A stepper motor employs rotation of its shaft in terms of steps, rather than continuous rotation as in case of AC or DC motor.
Posted By:Helga Miller      Posted On: Nov 14

C++ Programming
Comments: 0

Name the library that must be included while using cin

Options

a)
b)
c)
d)


Answer : b)
Posted By:Katie Brown      Posted On: Nov 13

C++ Programming
Comments: 0

Write an algorithm for Inserting an element into the queue using array in dfs

PROCEDURE ADD(QUEUE, F, R, N, item)
[This will inserts ‘item’ in the ‘queue’ after ‘R (rare)’ where ‘n’ is size of array.]

1. [Overflow ?]

if (R >= N)
write Stack is full.
return.

2. [Increment R]

R <-- R + 1

3. [Insert Eleme...
Posted By:Lujza Fischer      Posted On: Nov 08

Assembly Language
Comments: 0

Compare RET and POP

RET

1.RET transfers the contents of the top two locations of the stack to
the PC

2.When RET is executed the SP is incremented by two

3.Has 8 conditional RETURN instructions



POP

1.POP transfers the contents of the top two locatio...
Posted By:Bourke Fischer      Posted On: Nov 04

C++ Programming
Comments: 0

Which statement(s) is used to rethrow an exception? - Select option

Options

a) throw(exception);
b) throw exception;
c) throw;
d) None of the above


Answer : c) throw;
Posted By:Helga Miller      Posted On: Nov 18

C++ Programming
Comments: 0

Write an algorithm for deleting an element from stack using array in dfs (data file structure).

PROCEDURE DELETE(ITEM, STACK, TOP)
[Deletes ‘item’ from the ‘stack’, top is the number of elements currently in ‘stack’.]

1. [Underflow ?]

if (TOP <= 0)
write Stack is empty.
return.

2. [Deleting Element]

item <-- stack[top]

...
Posted By:Binge Fischer      Posted On: Nov 17

Assembly Language
Comments: 0

What is the use of stepper motor?

A stepper motor is a device used to obtain an accurate position control of rotating shafts. A stepper motor employs rotation of its shaft in terms of steps, rather than continuous rotation as in case of AC or DC motor.
Posted By:Helga Miller      Posted On: Nov 14

C++ Programming
Comments: 0

Name the library that must be included while using cin

Options

a)
b)
c)
d)


Answer : b)
Posted By:Katie Brown      Posted On: Nov 13

C++ Programming
Comments: 0

Write an algorithm for Inserting an element into the queue using array in dfs

PROCEDURE ADD(QUEUE, F, R, N, item)
[This will inserts ‘item’ in the ‘queue’ after ‘R (rare)’ where ‘n’ is size of array.]

1. [Overflow ?]

if (R >= N)
write Stack is full.
return.

2. [Increment R]

R <-- R + 1

3. [Insert Eleme...
Posted By:Lujza Fischer      Posted On: Nov 08

Assembly Language
Comments: 0

Compare RET and POP

RET

1.RET transfers the contents of the top two locations of the stack to
the PC

2.When RET is executed the SP is incremented by two

3.Has 8 conditional RETURN instructions



POP

1.POP transfers the contents of the top two locatio...
Posted By:Bourke Fischer      Posted On: Nov 04

  92  93  94  95  96  97  98  99  100  101  102