Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  The following is comment written for a C func... Start Learning for Free
The following is comment written for a C function /* This function computes the roots of a quadratic equation  a.x^2+b.x+c=0. The function stores two real roots in *root1 and *root2 and returns the status of validity of roots. It handles four different kinds of cases.
(i) When coefficient a is zero irrespective of discriminant
(ii) When discriminant is positive
(iii) When discrimanant is zero
(iv) When discrimanant is negative
Only in cases ii and iii , the stored roots are valid.
Otherwise 0 is stored in the roots. the function returns 0 when the roots are valid and -1 otherwise.
The functin also ensures root1>=root2. int get_QuadRoots ( float a, float b, float c, float *root1, float *root2) ; * /
A software test engineer is assigned the job of doing black box testing. He comes up with the following test cases, many of which are redundant.
 
Q. Which one of the following options provide the set of non-redundant tests using equivalence class partitioning approach from input perspective for black box testing?
  • a)
    T1,T2,T3,T6
  • b)
    T1,T3,T4,T5
  • c)
    T2,T4,T5,T6 
  • d)
    T2,T3,T4,T5
Correct answer is option 'C'. Can you explain this answer?
Verified Answer
The following is comment written for a C function /* This function com...
View all questions of this test
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

The following is comment written for a C function /* This function computes the roots of a quadratic equation a.x^2+b.x+c=0. The function stores two real roots in *root1 and *root2 and returns the status of validity ofroots. It handles four differentkinds of cases.(i) When coefficient a is zero irrespective of discriminant(ii) When discriminant is positive(iii) When discrimanant is zero(iv) When discrimanant is negativeOnly in cases ii and iii , the stored roots are valid.Otherwise 0 is stored in the roots. the function returns 0 when the roots are valid and -1 otherwise.The functin also ensures root1>=root2. int get_QuadRoots ( float a, float b, float c, float *root1, float *root2) ;* /A software test engineer is assigned the job of doing black box testing. He comes up with the following test cases, many of which are redundant.Q.Which one of the following options provide the set of non-redundant tests using equivalence class partitioning approach from input perspective for black box testing?a)T1,T2,T3,T6b)T1,T3,T4,T5c)T2,T4,T5,T6d)T2,T3,T4,T5Correct answer is option 'C'. Can you explain this answer?
Question Description
The following is comment written for a C function /* This function computes the roots of a quadratic equation a.x^2+b.x+c=0. The function stores two real roots in *root1 and *root2 and returns the status of validity ofroots. It handles four differentkinds of cases.(i) When coefficient a is zero irrespective of discriminant(ii) When discriminant is positive(iii) When discrimanant is zero(iv) When discrimanant is negativeOnly in cases ii and iii , the stored roots are valid.Otherwise 0 is stored in the roots. the function returns 0 when the roots are valid and -1 otherwise.The functin also ensures root1>=root2. int get_QuadRoots ( float a, float b, float c, float *root1, float *root2) ;* /A software test engineer is assigned the job of doing black box testing. He comes up with the following test cases, many of which are redundant.Q.Which one of the following options provide the set of non-redundant tests using equivalence class partitioning approach from input perspective for black box testing?a)T1,T2,T3,T6b)T1,T3,T4,T5c)T2,T4,T5,T6d)T2,T3,T4,T5Correct answer is option 'C'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about The following is comment written for a C function /* This function computes the roots of a quadratic equation a.x^2+b.x+c=0. The function stores two real roots in *root1 and *root2 and returns the status of validity ofroots. It handles four differentkinds of cases.(i) When coefficient a is zero irrespective of discriminant(ii) When discriminant is positive(iii) When discrimanant is zero(iv) When discrimanant is negativeOnly in cases ii and iii , the stored roots are valid.Otherwise 0 is stored in the roots. the function returns 0 when the roots are valid and -1 otherwise.The functin also ensures root1>=root2. int get_QuadRoots ( float a, float b, float c, float *root1, float *root2) ;* /A software test engineer is assigned the job of doing black box testing. He comes up with the following test cases, many of which are redundant.Q.Which one of the following options provide the set of non-redundant tests using equivalence class partitioning approach from input perspective for black box testing?a)T1,T2,T3,T6b)T1,T3,T4,T5c)T2,T4,T5,T6d)T2,T3,T4,T5Correct answer is option 'C'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for The following is comment written for a C function /* This function computes the roots of a quadratic equation a.x^2+b.x+c=0. The function stores two real roots in *root1 and *root2 and returns the status of validity ofroots. It handles four differentkinds of cases.(i) When coefficient a is zero irrespective of discriminant(ii) When discriminant is positive(iii) When discrimanant is zero(iv) When discrimanant is negativeOnly in cases ii and iii , the stored roots are valid.Otherwise 0 is stored in the roots. the function returns 0 when the roots are valid and -1 otherwise.The functin also ensures root1>=root2. int get_QuadRoots ( float a, float b, float c, float *root1, float *root2) ;* /A software test engineer is assigned the job of doing black box testing. He comes up with the following test cases, many of which are redundant.Q.Which one of the following options provide the set of non-redundant tests using equivalence class partitioning approach from input perspective for black box testing?a)T1,T2,T3,T6b)T1,T3,T4,T5c)T2,T4,T5,T6d)T2,T3,T4,T5Correct answer is option 'C'. Can you explain this answer?.
Solutions for The following is comment written for a C function /* This function computes the roots of a quadratic equation a.x^2+b.x+c=0. The function stores two real roots in *root1 and *root2 and returns the status of validity ofroots. It handles four differentkinds of cases.(i) When coefficient a is zero irrespective of discriminant(ii) When discriminant is positive(iii) When discrimanant is zero(iv) When discrimanant is negativeOnly in cases ii and iii , the stored roots are valid.Otherwise 0 is stored in the roots. the function returns 0 when the roots are valid and -1 otherwise.The functin also ensures root1>=root2. int get_QuadRoots ( float a, float b, float c, float *root1, float *root2) ;* /A software test engineer is assigned the job of doing black box testing. He comes up with the following test cases, many of which are redundant.Q.Which one of the following options provide the set of non-redundant tests using equivalence class partitioning approach from input perspective for black box testing?a)T1,T2,T3,T6b)T1,T3,T4,T5c)T2,T4,T5,T6d)T2,T3,T4,T5Correct answer is option 'C'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of The following is comment written for a C function /* This function computes the roots of a quadratic equation a.x^2+b.x+c=0. The function stores two real roots in *root1 and *root2 and returns the status of validity ofroots. It handles four differentkinds of cases.(i) When coefficient a is zero irrespective of discriminant(ii) When discriminant is positive(iii) When discrimanant is zero(iv) When discrimanant is negativeOnly in cases ii and iii , the stored roots are valid.Otherwise 0 is stored in the roots. the function returns 0 when the roots are valid and -1 otherwise.The functin also ensures root1>=root2. int get_QuadRoots ( float a, float b, float c, float *root1, float *root2) ;* /A software test engineer is assigned the job of doing black box testing. He comes up with the following test cases, many of which are redundant.Q.Which one of the following options provide the set of non-redundant tests using equivalence class partitioning approach from input perspective for black box testing?a)T1,T2,T3,T6b)T1,T3,T4,T5c)T2,T4,T5,T6d)T2,T3,T4,T5Correct answer is option 'C'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of The following is comment written for a C function /* This function computes the roots of a quadratic equation a.x^2+b.x+c=0. The function stores two real roots in *root1 and *root2 and returns the status of validity ofroots. It handles four differentkinds of cases.(i) When coefficient a is zero irrespective of discriminant(ii) When discriminant is positive(iii) When discrimanant is zero(iv) When discrimanant is negativeOnly in cases ii and iii , the stored roots are valid.Otherwise 0 is stored in the roots. the function returns 0 when the roots are valid and -1 otherwise.The functin also ensures root1>=root2. int get_QuadRoots ( float a, float b, float c, float *root1, float *root2) ;* /A software test engineer is assigned the job of doing black box testing. He comes up with the following test cases, many of which are redundant.Q.Which one of the following options provide the set of non-redundant tests using equivalence class partitioning approach from input perspective for black box testing?a)T1,T2,T3,T6b)T1,T3,T4,T5c)T2,T4,T5,T6d)T2,T3,T4,T5Correct answer is option 'C'. Can you explain this answer?, a detailed solution for The following is comment written for a C function /* This function computes the roots of a quadratic equation a.x^2+b.x+c=0. The function stores two real roots in *root1 and *root2 and returns the status of validity ofroots. It handles four differentkinds of cases.(i) When coefficient a is zero irrespective of discriminant(ii) When discriminant is positive(iii) When discrimanant is zero(iv) When discrimanant is negativeOnly in cases ii and iii , the stored roots are valid.Otherwise 0 is stored in the roots. the function returns 0 when the roots are valid and -1 otherwise.The functin also ensures root1>=root2. int get_QuadRoots ( float a, float b, float c, float *root1, float *root2) ;* /A software test engineer is assigned the job of doing black box testing. He comes up with the following test cases, many of which are redundant.Q.Which one of the following options provide the set of non-redundant tests using equivalence class partitioning approach from input perspective for black box testing?a)T1,T2,T3,T6b)T1,T3,T4,T5c)T2,T4,T5,T6d)T2,T3,T4,T5Correct answer is option 'C'. Can you explain this answer? has been provided alongside types of The following is comment written for a C function /* This function computes the roots of a quadratic equation a.x^2+b.x+c=0. The function stores two real roots in *root1 and *root2 and returns the status of validity ofroots. It handles four differentkinds of cases.(i) When coefficient a is zero irrespective of discriminant(ii) When discriminant is positive(iii) When discrimanant is zero(iv) When discrimanant is negativeOnly in cases ii and iii , the stored roots are valid.Otherwise 0 is stored in the roots. the function returns 0 when the roots are valid and -1 otherwise.The functin also ensures root1>=root2. int get_QuadRoots ( float a, float b, float c, float *root1, float *root2) ;* /A software test engineer is assigned the job of doing black box testing. He comes up with the following test cases, many of which are redundant.Q.Which one of the following options provide the set of non-redundant tests using equivalence class partitioning approach from input perspective for black box testing?a)T1,T2,T3,T6b)T1,T3,T4,T5c)T2,T4,T5,T6d)T2,T3,T4,T5Correct answer is option 'C'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice The following is comment written for a C function /* This function computes the roots of a quadratic equation a.x^2+b.x+c=0. The function stores two real roots in *root1 and *root2 and returns the status of validity ofroots. It handles four differentkinds of cases.(i) When coefficient a is zero irrespective of discriminant(ii) When discriminant is positive(iii) When discrimanant is zero(iv) When discrimanant is negativeOnly in cases ii and iii , the stored roots are valid.Otherwise 0 is stored in the roots. the function returns 0 when the roots are valid and -1 otherwise.The functin also ensures root1>=root2. int get_QuadRoots ( float a, float b, float c, float *root1, float *root2) ;* /A software test engineer is assigned the job of doing black box testing. He comes up with the following test cases, many of which are redundant.Q.Which one of the following options provide the set of non-redundant tests using equivalence class partitioning approach from input perspective for black box testing?a)T1,T2,T3,T6b)T1,T3,T4,T5c)T2,T4,T5,T6d)T2,T3,T4,T5Correct answer is option 'C'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev