Logo 
Search:

c programming Interview FAQs

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

Write an algorithm for Quick Sort in dfs (data file structure).

1. [Initialization]
g key
Decrement s by 1.

[Check whether s is pointing to lower position]
if g < s
[Exchange values of g and s]
else
flag = 1
[Exchange the s with key position]

Call quicksort (sortarray,lb,s-1)
Ca...
Posted By:Ballard Schmidt      Posted On: Nov 03

C++ Programming
Comments: 0

Select true option for A friend function

A friend function

I. Can be invoked similar to other functions without using objects
II. Cannot access to other member functions directly
III. Cannot be called using the object of the class to which it has been declared as friend
IV. Can be dec...
Posted By:Maria Hughes      Posted On: Nov 03

C++ Programming
Comments: 0

What is the general format of calling a static member function using a class name?

Options

a) class-name :: function-name
b) function-name :: class-name
c) class-name :: function-name;
d) function-name :: class-name;

Answer : c) class-name :: function-name;
Posted By:Klarissa Schmidt      Posted On: Nov 02

C++ Programming
Comments: 0

Which statement(s) is true regarding the above code? - Select option

Options

Consider the following code segment:
class B : public A
{
int a;
public:
int b;
void a_inp();
void a_out();
}
class C : public A
{
private:
float x;
public:
double get_calc();
double put_calc();
}
Which of the following...
Posted By:Varick Fischer      Posted On: Nov 02

C++ Programming
Comments: 0

Which of the following is true about code in description? - Select option

Consider the following code segment:
template
void sample(temp &x)
{
…….//code
};

Which of the following is true about the above code?

Options

I. Declares a sample() class template that receives the given data type for a single value a...
Posted By:Adalrik Fischer      Posted On: Nov 01

Assembly Language
Comments: 0

What is the use of bi-directional buffers?

It is used to increase the driving capacity of the data bus. The data bus of a microcomputer system is bi-directional, so it requires a buffer that allows the data to flow in both directions.
Posted By:Blaze Fischer      Posted On: Oct 30

C++ Programming
Comments: 0

Write an algorithm for Quick Sort in dfs (data file structure).

1. [Initialization]
g key
Decrement s by 1.

[Check whether s is pointing to lower position]
if g < s
[Exchange values of g and s]
else
flag = 1
[Exchange the s with key position]

Call quicksort (sortarray,lb,s-1)
Ca...
Posted By:Ballard Schmidt      Posted On: Nov 03

C++ Programming
Comments: 0

Select true option for A friend function

A friend function

I. Can be invoked similar to other functions without using objects
II. Cannot access to other member functions directly
III. Cannot be called using the object of the class to which it has been declared as friend
IV. Can be dec...
Posted By:Maria Hughes      Posted On: Nov 03

C++ Programming
Comments: 0

What is the general format of calling a static member function using a class name?

Options

a) class-name :: function-name
b) function-name :: class-name
c) class-name :: function-name;
d) function-name :: class-name;

Answer : c) class-name :: function-name;
Posted By:Klarissa Schmidt      Posted On: Nov 02

C++ Programming
Comments: 0

Which statement(s) is true regarding the above code? - Select option

Options

Consider the following code segment:
class B : public A
{
int a;
public:
int b;
void a_inp();
void a_out();
}
class C : public A
{
private:
float x;
public:
double get_calc();
double put_calc();
}
Which of the following...
Posted By:Varick Fischer      Posted On: Nov 02

C++ Programming
Comments: 0

Which of the following is true about code in description? - Select option

Consider the following code segment:
template
void sample(temp &x)
{
…….//code
};

Which of the following is true about the above code?

Options

I. Declares a sample() class template that receives the given data type for a single value a...
Posted By:Adalrik Fischer      Posted On: Nov 01

Assembly Language
Comments: 0

What is the use of bi-directional buffers?

It is used to increase the driving capacity of the data bus. The data bus of a microcomputer system is bi-directional, so it requires a buffer that allows the data to flow in both directions.
Posted By:Blaze Fischer      Posted On: Oct 30

  24  25  26  27  28  29  30  31  32  33  34