.Net/C Interview Questions
- 0of 0 votes
AnswersWin a Cricket ID and Enjoy Online Cricket Games!
- singhheena764 June 03, 2023 in India| Report Duplicate | Flag | PURGE
SEO - 0of 0 votes
AnswersGet World777 Login and Join the Raffle Now!
- singhheena764 June 03, 2023 in India| Report Duplicate | Flag | PURGE
SEO - 0of 0 votes
AnswersGet an Online Cricket ID and Experience the Fun!
- singhheena764 June 03, 2023 in India| Report Duplicate | Flag | PURGE
SEO - 0of 0 votes
AnswersMy code is:
- Rising star June 03, 2023 in United States
#include <iostream>
using namespace std;
struct field{
string f;
string s;
int num;
};
//Function that stores all fiends and foes in altenate manner into single array
//and stores the groups of fiends and foe together in seperate array.
void storesInSingleArr(field arr[], int n, string p[], string q[], string l[], string m[], string b[]){
int ind =0;
for(int i =0;i<n;i++){
//If both are fiends then store first person in array p and and second person store in array q
//and also store both persons in array b
if(arr[i].num == 1){
p[i] = arr[i%n].f;
q[i] = arr[i%n].s;
}
else if(arr[i].num ==0){
l[i] = arr[i%n].f;
m[i] = arr[i%n].s;
}
//if person are not a friend and foe then all person store in all array.
else if(arr[i].f!= "\0"&&arr[i].s!= "\0"){
p[i] = arr[i%n].f;
q[i] = arr[i%n].s;
l[i] = arr[i%n].f;
m[i] = arr[i%n].s;
}
else {
p[i] = arr[i%n].f;
q[i] = arr[i%n].f;
l[i] = arr[i%n].f;
m[i] = arr[i%n].f;
}
}
//finally store altenate of friends and foes in array b.
for(int i =0;i<n;i++){
b[ind++] = p[i];
b[ind++] = l[i];
b[ind++] = q[i];
b[ind++] = m[i];
}
}
void lower(char C){
int asc = C;
if(C>='A' && C<='Z'){
asc = asc+32;
char clower;
clower = asc;
cout<<clower;
}
else if(C>='a' && C<='z')
cout<<C;
}
void lowerIntoUpp(char c){
if(c>='a'&&c<='z'){
c = c-32;
cout<<c;
}
else if(c>='A'&&c<='Z'){
cout<<c;
}
}
void convert(string str){
lowerIntoUpp(str[0]);
for(int i = 1;i<str.length();i++){
lower((str[i]));
}
}
void converToUppLower(field arr[], int n){
string p[n], q[n], l[n], m[n],b[4*n];
storesInSingleArr(arr, n, p, q, l, m, b);
int ind = 0;
for(int i =0;i<n;i++){
b[ind++] = p[i];
b[ind++] =q[i];
b[ind++] =l[i];
b[ind++] = m[i];
}
for(int i =0;i<4*n;i++){
convert(b[i]);
cout<<" ";
}
}
void sort(field arr[], int n) {
string p[n], q[n], l[n], m[n], b[4*n];
//store all friends and foes into single array.
storesInSingleArr(arr, n, p, q, l, m, b);
int i = 0;
bool swapped = true;
while (i < 4*(n - 1) && swapped) {
swapped = false;
for (int j = 0; j < 4*(n - i - 1); j++) {
int k = 0;
while (b[j][k] == b[j + 1][k]) {
k++;
}
if (b[j][k] > b[j + 1][k]) {
string temp = b[j];
b[j] = b[j + 1];
b[j + 1] = temp;
swapped = true;
}
}
i++;
}
for(int i =0;i<4*n;i++){
if(i!= 0){
cout<<" ";
}
cout<<b[i];
}
}
void removeDuplicates(field arr[], int n){
string p[n], q[n], l[n], m[n], b[4*n];
storesInSingleArr(arr, n, p, q, l, m, b);
string r[4*n];
for(int i = 0;i<4*n;i++){
for(int j = i+1;j<4*n;j++){
if(b[i]==b[j]){
b[i] = "remove";
}
}
}
for(int i = 0;i<4*n;i++){
if(b[i]!= "remove")
r[i]= b[i];
}
for(int i =0;i<4*n;i++)
cout<<r[i]<<" ";
}
int main() {
int n;
cin>>n;
field arr[n];
for(int i =0;i<n;i++){
cin>>arr[i].f>>arr[i].s>>arr[i].num;
}
//If input size is greater then 50 then print invalid input.
if(n>50){
cout<<"Invalid Input:";
}
converToUppLower(arr,n);
//cout<<endl;
removeDuplicates(arr, n);
cout<<endl;
sort(arr,n);
return 0;
}
for the input
Jo4e Ma,ry 1
ElizaBet5h June 1
Joe John 0
Joe, JuNe 0
John JUne 1
Margaret
it producing output:
Joe Mary Elizabeth June Joe John Joe June John June Margaret Margaret Margaret Margaret Jo4e Ma,ry ElizaBet5h June Joe Joe, JuNe John JUne Margaret
ElizaBet5h Jo4e Joe Joe, John JuNe John June JUne Ma,ry Margaret Margaret Margaret Margaret
but i want output as:
Diplomats: Elizabeth, Joe, John, June, Margaret, Mary.
Joe, Mary, Elizabeth, June, John, Margaret.
What i am doing mistake in code| Report Duplicate | Flag | PURGE
N/A None C++ - 0of 0 votes
AnswersSrilankan Airlines Sydney Office
- Tracy Smith May 30, 2023 in United States| Report Duplicate | Flag | PURGE
Travel Traveler - 0of 0 votes
Answersbssbs
- rksrhemddj6 May 27, 2023 in United States| Report Duplicate | Flag | PURGE
ABC TECH SUPPORT Abortion Pills In doha ++256700847622 Abortion Pills For Sale In al rayyan +256700847622 )][(ABORTION PILLS FOR SALE IN AL WAKRAH - 0of 0 votes
Answersbsbss
- rksrhemddj6 May 27, 2023 in United States| Report Duplicate | Flag | PURGE
ABC TECH SUPPORT Abortion Pills In doha ++256700847622 Abortion Pills For Sale In al rayyan Brain Teasers - 0of 0 votes
Answersbsssb
- rksrhemddj6 May 27, 2023 in United States| Report Duplicate | Flag | PURGE
ABC TECH SUPPORT Abortion Pills In doha ++256700847622 Abortion Pills For Sale In al rayyan Computer Architecture & Low Level - 0of 0 votes
AnswerCan you please help me by giving the code for the following:
- baul.isro May 15, 2023 in India
An array is given which is initially in increasing order and then it is in decreasing order. how to search an element more efficiently?| Report Duplicate | Flag | PURGE
StartUp Applications Developer - 0of 0 votes
AnswersCreate Q.1 Create table employee, add atleast 6 rows.
- dahuleroshni May 09, 2023 in United States
Employee(deptno,empno,ename,salary,joiningdate) | Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersWhat do you hope to accomplish in your senior role for our company?
- hr@exhaletech.com February 15, 2023 in India| Report Duplicate | Flag | PURGE
Exhale Tech Systems Senior Software Engineer - 0of 0 votes
AnswersDescribe your strengths relating to software architecture.
- hr@exhaletech.com February 15, 2023 in India| Report Duplicate | Flag | PURGE
Exhale Tech Systems Senior Software Engineer - 0of 0 votes
AnswersHow do your qualifications support your success as a senior developer?
- hr@exhaletech.com February 15, 2023 in India| Report Duplicate | Flag | PURGE
Exhale Tech Systems Senior Software Engineer - 0of 0 votes
AnswersWhat do you know about our firm's technology services?
- hr@exhaletech.com February 15, 2023 in India| Report Duplicate | Flag | PURGE
Exhale Tech Systems Senior Software Engineer - 0of 0 votes
AnswerTell me about your interests in current development trends.
- hr@exhaletech.com February 15, 2023 in India| Report Duplicate | Flag | PURGE
Exhale Tech Systems Senior Software Engineer - 0of 0 votes
AnswersWhat are the differences between quality assurance, quality control, and software testing?
- hr@exhaletech.com February 15, 2023 in India| Report Duplicate | Flag | PURGE
Exhale Tech Systems Senior Test Engineer - 0of 0 votes
AnswersIf proper documentation is unavailable for a given test, how might you proceed?
- hr@exhaletech.com February 15, 2023 in India| Report Duplicate | Flag | PURGE
Exhale Tech Systems Senior Test Engineer - 0of 0 votes
AnswersWhat defines the key elements of a bug report?
- hr@exhaletech.com February 15, 2023 in India| Report Duplicate | Flag | PURGE
Exhale Tech Systems Senior Test Engineer - 0of 0 votes
AnswersWhat are the steps one should follow to create a test script?
- hr@exhaletech.com February 15, 2023 in India| Report Duplicate | Flag | PURGE
Exhale Tech Systems Senior Test Engineer - 0of 0 votes
Answers9. What is the expected period of an average call while dealing with the customers?
- Abax Techno Solutions February 14, 2023 in India
The expected period of an average call would be around 2-3 minutes, sometimes less or more depending on the problem complexity.| Report Duplicate | Flag | PURGE
Abax Techno Solutions IT Services - 0of 0 votes
Answers7. What does it mean by interrupt?
- Abax Techno Solutions February 14, 2023 in India
To perform a particular task, interrupt is a signal send by external device to the processor.| Report Duplicate | Flag | PURGE
Abax Techno Solutions IT Services C - 0of 0 votes
Answer6. What are the tools that will be helpful to you in identifying the problems and solving them?
- Abax Techno Solutions February 14, 2023 in India
Manuals, Knowledge, team-members and experience are the tools that will be helpful to trouble shoot the problem and solving them.| Report Duplicate | Flag | PURGE
Abax Techno Solutions IT Services - 0of 0 votes
AnswersHow many members were on the largest development team under your management?
- hr@exhaletech.com February 13, 2023 in India| Report Duplicate | Flag | PURGE
Exhale Tech Systems Senior Software Engineer - 0of 0 votes
AnswersHow will your experience help you contribute to this firm's goals?
- hr@exhaletech.com February 13, 2023 in India| Report Duplicate | Flag | PURGE
Exhale Tech Systems Senior Software Engineer Senior Software Engineer - 0of 0 votes
AnswersWhat do you hope to accomplish in your senior role for our company?
- hr@exhaletech.com February 13, 2023 in India| Report Duplicate | Flag | PURGE
Exhale Tech Systems Senior Software Engineer Senior Software Engineer - 0of 0 votes
AnswersHow have you overcome industry challenges in your career?
- hr@exhaletech.com February 13, 2023 in India| Report Duplicate | Flag | PURGE
Exhale Tech Systems Senior Software Engineer Senior Software Engineer - 0of 0 votes
AnswersWhat kind of time management strategies do you feel help keep you on track of completing objectives?
- hr@exhaletech.com February 07, 2023 in India| Report Duplicate | Flag | PURGE
Exhale Tech Systems Junior Software Engineer - 0of 0 votes
AnswersWhat aspects of software development do you find the most challenging?
- hr@exhaletech.com February 07, 2023 in India| Report Duplicate | Flag | PURGE
Exhale Tech Systems Junior Software Engineer