.Net/C Interview Questions
- 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 - 0of 0 votes
Answers15.Explain how DevOps is helpful to developers?
- tktsoftsolutions April 01, 2022 in India
1.DevOps can be helpful to developers to fix the bug and implement new features quickly. It also helps for
2.clearer communication between the team members| Report Duplicate | Flag | PURGE
Developer - 0of 0 votes
Answers13.Explain how “Infrastructure code” is processed or
- tktsoftsolutions April 01, 2022 in India
executed in AWS?
In AWS,
1.The code for infrastructure will be in simple JSON format
2. This JSON code will be organized into files
called templates
3. This templates can be deployed on AWS devops and then managed as stacks| Report Duplicate | Flag | PURGE
Developer - 0of 0 votes
Answers12.What is the role of AWS in Devops?
- tktsoftsolutions April 01, 2022 in India
AWS in Devops works as a cloud provider, and it
has the following role in Devops:
1.Flexible services: AWS provides us with ready-to-use resources for implementation.
Scaling purpose: We can deploy thousands of machines on AWS, depending on the requirement.
2.Automation: AWS helps us automate tasks using various services.
3.Security: Using its security options (IAM), we can secure our deployments and build| Report Duplicate | Flag | PURGE
Developer