Testing Interview Questions

4,199 testing interview questions shared by candidates

question number 3] , Code it using , C , C plus plus , java Get the details of N number of students , Name , ID number , marks in 5 subjects , find the average marks for each student ? Find number of subjects a student score more than 75 marks ? #include <stdio.h> struct student { char name ; float mat , phy , chem , bot , comp , sum , avg ; }s[100]; void main() { int n , x; printf(" Enter the number of students "); scanf("%d", &n); for(x=0;x<n;x++) { printf(" Enter the name of the students"); scanf("%s", s[x].name); printf("Enter the MATHS marks of students "); scanf("%f", &s[x].mat); printf("Enter the PHYSICS marks of students "); scanf("%f", &s[x].phy); printf("Enter the CHEMISTRY marks of students "); scanf("%f",& s[x].chem); printf("Enter the BOTANY marks of students "); scanf("%f", &s[x].bot); printf("Enter the COMPUTER SCIENCE marks of students "); scanf("%f", &s[x].comp); s[x].sum= (s[x].mat+s[x].phy+s[x].chem+s[x].bot+s[x].comp); s[x].avg=(s[x].sum/5); printf(" sum of marks of %s = %f" , s[x].name , s[x].sum ); printf(" sum of marks of %s = %f" , s[x].name , s[x].avg ); if( s[x].mat<40) { printf( " %s is FAIL in MATHS " , s[x].name); } else { printf( "%s is FIRST CLASS in MATHS " , s[x].name); } if( s[x].phy<40) { printf( " %s is FAIL in PHYSICS " , s[x].name); } else { printf( "%s is FIRST CLASS in PHYSICS " , s[x].name); } if( s[x].chem<40) { printf( " %s is FAIL in CHEMISTRY " , s[x].name); } else { printf( "%s is FIRST CLASS in CHEMISTRY " , s[x].name ) ; } if( s[x].bot<40) { printf( " %s is FAIL in BOTANY " , s[x].name); } else { printf( "%s is FIRST CLASS in BOTANY " , s[x].name); } if( s[x].mat<40) { printf( " %s is FAIL in COMPUTER SCIENCE ", s[x].name); } else { printf( "%s is FIRST CLASS in COMPUTER SCIENCE " , s[x].name); } } }
Mar 8, 2018

question number 3] , Code it using , C , C plus plus , java Get the details of N number of students , Name , ID number , marks in 5 subjects , find the average marks for each student ? Find number of subjects a student score more than 75 marks ? #include <stdio.h> struct student { char name ; float mat , phy , chem , bot , comp , sum , avg ; }s[100]; void main() { int n , x; printf(" Enter the number of students "); scanf("%d", &n); for(x=0;x<n;x++) { printf(" Enter the name of the students"); scanf("%s", s[x].name); printf("Enter the MATHS marks of students "); scanf("%f", &s[x].mat); printf("Enter the PHYSICS marks of students "); scanf("%f", &s[x].phy); printf("Enter the CHEMISTRY marks of students "); scanf("%f",& s[x].chem); printf("Enter the BOTANY marks of students "); scanf("%f", &s[x].bot); printf("Enter the COMPUTER SCIENCE marks of students "); scanf("%f", &s[x].comp); s[x].sum= (s[x].mat+s[x].phy+s[x].chem+s[x].bot+s[x].comp); s[x].avg=(s[x].sum/5); printf(" sum of marks of %s = %f" , s[x].name , s[x].sum ); printf(" sum of marks of %s = %f" , s[x].name , s[x].avg ); if( s[x].mat<40) { printf( " %s is FAIL in MATHS " , s[x].name); } else { printf( "%s is FIRST CLASS in MATHS " , s[x].name); } if( s[x].phy<40) { printf( " %s is FAIL in PHYSICS " , s[x].name); } else { printf( "%s is FIRST CLASS in PHYSICS " , s[x].name); } if( s[x].chem<40) { printf( " %s is FAIL in CHEMISTRY " , s[x].name); } else { printf( "%s is FIRST CLASS in CHEMISTRY " , s[x].name ) ; } if( s[x].bot<40) { printf( " %s is FAIL in BOTANY " , s[x].name); } else { printf( "%s is FIRST CLASS in BOTANY " , s[x].name); } if( s[x].mat<40) { printf( " %s is FAIL in COMPUTER SCIENCE ", s[x].name); } else { printf( "%s is FIRST CLASS in COMPUTER SCIENCE " , s[x].name); } } }

question number 2] , A car travelling to a place. total volume of petrol is 10 l. there are three types of roads, smooth medium hard and get the mileage are 40, 30, 20 mpl respectively. Get the number of distance travelled in each road. Find the average mileage of the travel and the remaining petrol. . OR Find the Average mileage and Remaining fuel , distance travelled in the smooth , medium and hard roads are given . and also the mileage in smooth , medium and hard roads are given . OR A car travelling to a place. total volume of petrol is 10 l. there are three types of roads, smooth medium hard and get the number of distance travelled in each road are 40, 30, 20 miles respectively. Get the mileage of each road. Find the average mileage of the travel and the remaining petrol. [i'm not sure, which one they asked]
Mar 8, 2018

question number 2] , A car travelling to a place. total volume of petrol is 10 l. there are three types of roads, smooth medium hard and get the mileage are 40, 30, 20 mpl respectively. Get the number of distance travelled in each road. Find the average mileage of the travel and the remaining petrol. . OR Find the Average mileage and Remaining fuel , distance travelled in the smooth , medium and hard roads are given . and also the mileage in smooth , medium and hard roads are given . OR A car travelling to a place. total volume of petrol is 10 l. there are three types of roads, smooth medium hard and get the number of distance travelled in each road are 40, 30, 20 miles respectively. Get the mileage of each road. Find the average mileage of the travel and the remaining petrol. [i'm not sure, which one they asked]

Mam , Asked me to write a Code in any language Problem , Their are 2 countries nameley country A and country B . Current population of the 2 countries should be get from user or client . The rate at which the population is increasing, that should be also get from user or client in % format . Get the number of years for which the comparision between the 2 countries to be done . Result to be displayed in this format , YEAR 1 , A greater than B YEAR 2 , A lesser than B Up to YEAR n [ OUTPUT VERIFIED ] In Technical interview , Write a code in , C or C++ or java .
avatar

Testing Engineer ( Fresher Role )

Interviewed at Temenos

3.4
Apr 11, 2018

Mam , Asked me to write a Code in any language Problem , Their are 2 countries nameley country A and country B . Current population of the 2 countries should be get from user or client . The rate at which the population is increasing, that should be also get from user or client in % format . Get the number of years for which the comparision between the 2 countries to be done . Result to be displayed in this format , YEAR 1 , A greater than B YEAR 2 , A lesser than B Up to YEAR n [ OUTPUT VERIFIED ] In Technical interview , Write a code in , C or C++ or java .

Viewing 3421 - 3430 interview questions

Glassdoor has 4,199 interview questions and reports from Testing interviews. Prepare for your interview. Get hired. Love your job.