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

What is the output of the code mentioned below? - select option

Consider the following code segment:
#include
template
int powerofTwo(temp &x)
{
return(!(x-1)&x);
}
void main()
{
int b=powerofTwo(100);
cout<}

What is the output of the above code?

Options

a) 0
b) 1
c) 100
d) None of t...
Posted By:Billy Evans      Posted On: Mar 05

C++ Programming
Comments: 0

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

PROCEDURE TREE_DELETE(HEAD,X)
[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 deletion, this procedure deletes the node whose information field is equal to X].

...
Posted By:Idelia Miller      Posted On: Mar 05

C++ Programming
Comments: 0

Assume that there is no logic error. Identify if there is any declaration error: - Select optio

Consider the following code segment:
1: template
2: void show(temp1 a, temp2 b)
3: {
4: cout<<”a”;
5: }
Assume that there is no logic error. Identify if there is any declaration error:

Options

a) Line1
b) Line 4
c) Both a and b
d) No...
Posted By:Giovanna Silva      Posted On: Mar 03

Assembly Language
Comments: 0

How many operations are there in the instruction set of 8085 microprocessor?

There are 74 operations in the 8085 microprocessor.
Posted By:Reuben Brown      Posted On: Mar 03

Assembly Language
Comments: 0

What is swapping?

The procedure of fetching the chosen program segments or data from the secondary storage into the physical memory is called ‘swapping’.
Posted By:Verena Fischer      Posted On: Mar 02

C++ Programming
Comments: 0

Which of the following function calls is correct while providing default arguments?

I. double calc(int a, float b=12.0);
II. double calc(int a=3, float b=12.0, int c);
III. double calc(int a=3, float b, int c=8);
IV. double calc(int a, float b=12.0, int c=8);


Options

a) I only
b) II only
c) Both I and IV
d) Both II, a...
Posted By:Aidan Campbell      Posted On: Feb 25

C++ Programming
Comments: 0

What is the output of the code mentioned below? - select option

Consider the following code segment:
#include
template
int powerofTwo(temp &x)
{
return(!(x-1)&x);
}
void main()
{
int b=powerofTwo(100);
cout<}

What is the output of the above code?

Options

a) 0
b) 1
c) 100
d) None of t...
Posted By:Billy Evans      Posted On: Mar 05

C++ Programming
Comments: 0

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

PROCEDURE TREE_DELETE(HEAD,X)
[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 deletion, this procedure deletes the node whose information field is equal to X].

...
Posted By:Idelia Miller      Posted On: Mar 05

C++ Programming
Comments: 0

Assume that there is no logic error. Identify if there is any declaration error: - Select optio

Consider the following code segment:
1: template
2: void show(temp1 a, temp2 b)
3: {
4: cout<<”a”;
5: }
Assume that there is no logic error. Identify if there is any declaration error:

Options

a) Line1
b) Line 4
c) Both a and b
d) No...
Posted By:Giovanna Silva      Posted On: Mar 03

Assembly Language
Comments: 0

How many operations are there in the instruction set of 8085 microprocessor?

There are 74 operations in the 8085 microprocessor.
Posted By:Reuben Brown      Posted On: Mar 03

Assembly Language
Comments: 0

What is swapping?

The procedure of fetching the chosen program segments or data from the secondary storage into the physical memory is called ‘swapping’.
Posted By:Verena Fischer      Posted On: Mar 02

C++ Programming
Comments: 0

Which of the following function calls is correct while providing default arguments?

I. double calc(int a, float b=12.0);
II. double calc(int a=3, float b=12.0, int c);
III. double calc(int a=3, float b, int c=8);
IV. double calc(int a, float b=12.0, int c=8);


Options

a) I only
b) II only
c) Both I and IV
d) Both II, a...
Posted By:Aidan Campbell      Posted On: Feb 25

  77  78  79  80  81  82  83  84  85  86  87