.Net/C Interview Questions
- 0of 0 votes
AnswersWrite a C++ Program to find Factorial of a Number using for loop.
- hr@ziitech.com April 08, 2022 in India| Report Duplicate | Flag | PURGE
Ziisoft Nano Technologies Software Developer C++ - 0of 0 votes
AnswersWhat will be the output of the following program?
- hr@ziitech.com April 08, 2022 in India
#include<iostream.h>
class TestDrive
{
int x;
public:
TestDrive(int xx)
{
x = xx;
}
int DriveIt(void);
};
int TestDrive::DriveIt(void)
{
static int value = 0;
int m;
m = x % 2;
x = x / 2;
if((x / 2)) DriveIt();
value = value + m * 10;
return value;
}
int main()
{
TestDrive TD(1234);
cout<< TD.DriveIt() * 10 << endl;
return 0;
}| Report Duplicate | Flag | PURGE
Ziisoft Nano Technologies Software Developer C++ - 0of 0 votes
AnswersWhat will be the output of the following program?
- hr@ziitech.com April 08, 2022 in India
#include<iostream.h>
class IndiaBix
{
int K;
public:
void BixFunction(float, int , char);
void BixFunction(float, char, char);
};
int main()
{
IndiaBix objIB;
objIB.BixFunction(15.09, ‘A’, char(‘A’ + ‘A’));
return 0;
}
void IndiaBix::BixFunction(float, char y, char z)
{
K = int(z);
K = int(y);
K = y + z;
cout<< “K = “ << K << endl;
}| Report Duplicate | Flag | PURGE
Ziisoft Nano Technologies Software Developer C++ - 0of 0 votes
AnswersWhat will be the output of the following program?
- hr@ziitech.com April 08, 2022 in India
#include<iostream.h>
class Bix
{
int x, y;
public:
void show(void);
void main(void);
};
void Bix::show(void)
{
Bix b;
b.x = 2;
b.y = 4;
cout<< x << " " << y;
}
void Bix::main(void)
{
Bix b;
b.x = 6;
b.y = 8;
b.show();
}
int main(int argc, char *argv[])
{
Bix run;
run.main();
return 0;
}| Report Duplicate | Flag | PURGE
Ziisoft Nano Technologies Software Developer C++ - 0of 0 votes
AnswerWhat will be the output of the following program?
- hr@ziitech.com April 08, 2022 in India
#include<iostream.h>
int main()
{
float Amount;
float Calculate(float P = 5.0, int N = 2, float R = 2.0);
Amount = Calculate();
cout<< Amount << endl;
return 0;
}
float Calculate(float P, int N, float R)
{
int Year = 1;
float Sum = 1 ;
Sum = Sum * (1 + P * ++N * R);
Year = (int)(Year + Sum);
return Year;
}| Report Duplicate | Flag | PURGE
Ziisoft Nano Technologies Software Developer C++ - 0of 0 votes
AnswersWhat will be the output of the following program?
- hr@ziitech.com April 08, 2022 in India
#include<iostream.h>
class IndiabixSample
{
public:
int a;
float b;
void BixFunction(int a, float b, float c = 100.0f)
{
cout<< a % 20 + c * --b;
}
};
int main()
{ IndiabixSample objBix;
objBix.BixFunction(20, 2.000000f, 5.0f);
return 0;
}| Report Duplicate | Flag | PURGE
Ziisoft Nano Technologies Software Developer C++ - 0of 0 votes
AnswersWrite a program to print out all Armstrong numbers between 1 and 500. If sum of cubes of each digit of the number is equal to the number itself, then the number is called an Armstrong number.
- hr@ziitech.com April 08, 2022 in India
For example, 153 = ( 1 * 1 * 1 ) + ( 5 * 5 * 5 ) + ( 3 * 3 * 3 )| Report Duplicate | Flag | PURGE
Ziisoft Nano Technologies Software Developer C++ - 0of 0 votes
AnswersWrite a program to calculate HCF of Two given number
- hr@ziitech.com April 08, 2022 in India| Report Duplicate | Flag | PURGE
Ziisoft Nano Technologies Software Developer C++ - 0of 0 votes
AnswersWrite a program to check given number is prime or not
- hr@ziitech.com April 08, 2022 in India| Report Duplicate | Flag | PURGE
Ziisoft Nano Technologies Software Developer C++ - 0of 0 votes
AnswerWrite a program to sum of digits of given integer number
- hr@ziitech.com April 08, 2022 in India| Report Duplicate | Flag | PURGE
Ziisoft Nano Technologies Software Developer C++ - 0of 0 votes
AnswersWrite a program to reveres any given integer number
- hr@ziitech.com April 08, 2022 in India| Report Duplicate | Flag | PURGE
Ziisoft Nano Technologies Software Developer C++ - 0of 0 votes
AnswersWrite a program to calculate the sum of first 10 natural number.
- hr@ziitech.com April 08, 2022 in India| Report Duplicate | Flag | PURGE
Ziisoft Nano Technologies Software Developer C++ - 0of 0 votes
AnswersWrite a program to print number from 1 to 10.
- hr@ziitech.com April 08, 2022 in India| Report Duplicate | Flag | PURGE
Ziisoft Nano Technologies Software Developer C++ - 0of 0 votes
AnswerWhat will the following code output
- hr@patelsoft.com April 06, 2022 in India
var hero = {
_name: 'John Doe',
getSecretIdentity: function (){
return this._name;
}
};
var stoleSecretIdentity = hero.getSecretIdentity;
console.log(stoleSecretIdentity());
console.log(hero.getSecretIdentity());| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer JavaScript - 0of 0 votes
AnswersWhat will the code below output to the console
- hr@patelsoft.com April 06, 2022 in India
var arr1 = "john".split('');
var arr2 = arr1.reverse();
var arr3 = "jones".split('');
arr2.push(arr3);
console.log("array 1: length=" + arr1.length + " last=" + arr1.slice(-1));
console.log("array 2: length=" + arr2.length + " last=" + arr2.slice(-1));| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer JavaScript - 0of 0 votes
AnswersWhat is the output of the following code?
- hr@patelsoft.com April 06, 2022 in India
var length = 10;
function fn() {
console.log(this.length);
}
var obj = {
length: 5,
method: function(fn) {
fn();
arguments[0]();
}
};
obj.method(fn, 1);| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer JavaScript - 0of 0 votes
AnswersWhat is the output of below code.
- hr@patelsoft.com April 06, 2022 in India
function checkType(num = 1) {
console.log(typeof num);
}
checkType();
checkType(undefined);
checkType('');
checkType(null);| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer JavaScript - 0of 0 votes
Answerswrite a code for lucky sevens using javascript
- hr@patelsoft.com April 06, 2022 in India| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer JavaScript - 0of 0 votes
AnswersGive an example of JavaScript Multiplication Table
- hr@patelsoft.com April 06, 2022 in India| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer JavaScript - 0of 0 votes
AnswersWhat is the output of below code
- hr@patelsoft.com April 06, 2022 in India
function delay() {
return new Promise(resolve => setTimeout(resolve, 2000));
}
async function delayedLog(item) {
await delay();
console.log(item);
}
async function process(array) {
array.forEach(async (item) => {
await delayedLog(item);
});
console.log('Process completed!');
}
process([1, 2, 3, 5]);| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer - 0of 0 votes
AnswersGive an example of JavaScript Multiplication Table
- hr@patelsoft.com April 06, 2022 in India| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer JavaScript - 0of 0 votes
AnswersWhat is the output of below code
- hr@patelsoft.com April 06, 2022 in India
const USER = {'age': 30};
USER.age = 25;
console.log(USER.age);| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer JavaScript - 0of 0 votes
AnswersWhat are asynchronous thunks
- hr@patelsoft.com April 06, 2022 in India| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer JavaScript - 0of 0 votes
AnswersDoes JavaScript supports namespace
- hr@patelsoft.com April 06, 2022 in India| Report Duplicate | Flag | PURGE
patel soft technologies Software Engineer / Developer JavaScript - 0of 0 votes
AnswerReal Meet Call Girls in Gk 1-2 9599646485 In/Outcall With Room ☆☆TIMINGS 24 HOURS OPENS☆☆ Delhi Escorts Doorstep.
- puspasharma511 April 04, 2022 in India for Club| Report Duplicate | Flag | PURGE
Real Meet Call Girls in Gk 1-2 9599646485 In/Outcall With Room ☆☆TIMINGS 24 HOURS OPENS☆☆ Delhi Escorts Doorstep. women seeking men - 0of 0 votes
AnswersReal Meet Call Girls in Mahipalpur 9599646485 In/Outcall With Room ☆☆TIMINGS 24 HOURS OPENS☆☆ Delhi Escorts Doorstep.
- puspasharma511 April 04, 2022 in India for Club| Report Duplicate | Flag | PURGE
8x8 women seeking men