Software Testing Interview Questions

4,202 software 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); } } }

Viewing 3391 - 3400 interview questions

Glassdoor has 4,202 interview questions and reports from Software testing interviews. Prepare for your interview. Get hired. Love your job.